Epic Online Services (EOS)

Using EOS with UE Blueprints

Tutoiral 1 (T1)
Tutorial 2 (T2)

Create Product , name as My Product in

Add new Client Policy as Peer2Peer in Product Settings → Clients
image.png
image.png
Product ID also shows in Project Setting → SDK

Add Clients, name it and choose the policy created:
image.png

Link the client to the service:


Go to Epic Account Service → Permission:
image.png
Save changes to configure it:
image.png
P.S. T2 sets as this:
image.png
Choose Clients created on Linked Client tab, to configure it:
image.png


Create a third person template UE:


Move the download Advanced session plugin into the created Plugin folder in UE project
Plugin: Advanced Sessons, Online Subsysytem EOS, ticked

image.png
image.png


copy below codes:
[OnlineSubsystemEOS]
bEnabled=true

[OnlineSubsystem]
DefaultPlatformService=EOS

[/Script/Engine.GameEngine]
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="OnlineSubsystemEOS.NetDriverEOS",DriverClassNameFallback="OnlineSubsystemUtils.IpNetDriver")

[/Script/OnlineSubsystemEOS.NetDriverEOS]
bIsUsingP2PSockets=true
open this and replace the content at end
image.png
Configure EOS plugin in Project Setting (Artifact name depends on the project name made):
image.png
P.S. In T2, it sets Encryption key with 64 digits of 0, and several settings untick:
image.png

Reopen the UE project, test
Change to Stand Alone game mode, test if the game ok

Set Auto login by default:


Create a new map called MainMenu, set it as default map in Project Setting
Default game mode: ThirdPersonalGameMode
image.png

Create a Game Mode Base BP, name as MainMenuGameMode:
To Event graph, connect event begin to Login User node (for demo purpose, will change later in tutorial):
image.png
T2 modifies the graph as below:
image.png

Change Override gamemode:
image.png
Launch Stand Alone game preview
(Hold Shift+F3 should be able to open chat room)

Create a session for joining a server game:


Design a menu:
Create a Widget BP called WBP_MainMenu
Go to MainMenu and revise the graph with new widget in:
(node output to Event beginPlay, type Create Widget, then choose WBP_mainmenu widget in class)
image.png

Open WBP_MainMenu Widget and edit the graph (for login to EOS → remove main menu and open game map in listen mode):
image.png

Select the follow nodes (include a reroute) and create a marco, name as login
image.png
Open the Marco, rename the outputs node Output
image.png
Create a function nodes called Clear UI with follow nodes
image.png

For Join button graph (Login to EOS → look for dedicated servers without lobbies, find any session→ join session → remove main menu) :
image.png


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.