Epic Online Services (EOS)

Hosting and Joining multiplayer game



Set a Main BP called Available Session:


Open following folders called Blueprint, Maps, Widgets

create a BP actor, name as AvailableSession, in BP folder
Add follow nodes as the components:
image.png
From local host network, connect to steam online subsystem, to other person home internet

Add Advanced Session Plugin to give extra parameters:

Create different BP for map, widget and game:


Create a Gamemode BP, name GM_MainMenu, and a Player Controller BP, name PC_MainMenu

Create PC_MainMenu graph as below:
image.png

Create folder Gameplay in Blueprint folder, create game mode base BP called GM_Gameplay,
and Player Controller BP called PC_Gameplay

In Map, create Gameplay level and mainmenu level

In Widget, create the following 5 widgets:
image.png

Open CreateSession Widget:
Create the following widget:
image.png
Create 3 nodes from create button, LAN checkbox and Editable Textbox
(2 dots nodes: pull out from the editable text box, type ‘to string’, then put that text to Set public connections)
image.png
For emained 2 nodes:
image.png
Gamemode settings for following 2 maps:
Mainmenu level:
image.png
Gameplay level:
image.png

Change to New Editor Window preview, play as listen server, 2 players: test the game

Get Stuck! main menu page not work


Open FindSession widget:
image.png
Open Join Session Widget:
image.png

Problem finishing event graphs on those 2 widgets, as some variables and nodes not sure where and how to make them

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.