EOSCore:: Customizing the NetDriver

There are a couple of settings that you can set on the EOSCoreNetDriver to fine-tune your connection settings.

DefaultEngine.ini (pre v1.8.0)

[/Script/OnlineSubsystemEOSCore.EOSNetDriver]
NetConnectionClassName="OnlineSubsystemEOSCore.EOSNetConnection"
MaxNetTickRate=60
NetServerMaxTickRate=60
LanServerMaxTickRate=60
NetClientTicksPerSecond=60
bClampListenServerTickRates=true
MaxClientRate=100000
MaxInternetClientRate=100000

DefaultEngine.ini (v1.8.0+)

[/Script/OnlineSubsystemEOS.NetDriverEOS]
NetConnectionClassName="OnlineSubsystemEOS.NetConnectionEOS"
MaxNetTickRate=60
NetServerMaxTickRate=60
LanServerMaxTickRate=60
NetClientTicksPerSecond=60
bClampListenServerTickRates=true
MaxClientRate=100000
MaxInternetClientRate=100000

These settings will limit at what rates client and server talk to each other, because of very high framerates (FPS) sometimes the client will hammer the server with data, too much data that it will eventually get dropped.

The settings above will limit the send rate to “60 FPS” rather than spamming the server at the games FPS (100-200++ frames per second)

EOSCore:: Inviting your friends

You can now invite your friends to join your game from the Social Overlay!

Demonstration Video

Binding the event (Legacy, pre 1.8.0)

First we need to bind the invite accepted event, we do this in our PlayerController (in this example), like this:

Binding the event (1.8.0+)

The rest is handled by the EOSCore:: plugin in the background, that is all you need to do to get Invites working!

EOSCore:: DevTool

Authenticating the DevTool

Make sure you have added your Credentials in the DevTool and customized to your own needs, we’re going to use port 1111 in this example.

Authenticating the Example Project

You can use the Example Project to Authenticate with the DevTool

Authenticating via Commandline

As of version 1.6.7 you can also authenticate the DevTool via the Commandline.

"C:\UE4Editor.exe" "C:\EOSProject\EOSProject.uproject" -game -log -AUTH_TYPE=DEVTOOL -AUTH_LOGIN=localhost:1111 -AUTH_TOKEN=hulken

EOSCore:: Command line Arguments

Available Arguments

  • -AUTO_LOGIN
    Will attempt to Auto-Login if you have saved PersistentAuth credentails saved on your computer (previous successful authentication)
  • -AUTH_TYPE=DEVTOOL
    See supported list below
  • -AUTH_LOGIN=xxx
    Autentication ID for Auto-Login
  • -AUTH_TOKEN=xxx
    Authentication Token for Auto-Login
  • EOSConfig=configurationName (v1.8.0+)
    Override the default config name used in Project settings

Example Usage

Logging in to your instance of DevTool at localhost:1111

"C:\UE4Editor.exe" "C:\EOSProject\EOSProject.uproject" -game -log -AUTH_TYPE=DEVTOOL -AUTH_LOGIN=localhost:1111 -AUTH_TOKEN=MrX

Auto-Login with previously saved credentials

"C:\UE4Editor.exe" "C:\EOSProject\EOSProject.uproject" -game -log -AUTO_LOGIN

Supported AUTH_LOGIN types (v1.8.0+)

  • -AUTH_TYPE=devtool
    Login using the DevTool
  • -AUTH_TYPE=autologin
    Attempt to autologin using saved credentials from previous session
  • -AUTH_TYPE=portal
    Authenticate using the Browser (portal)
  • -AUTH_TYPE=deviceid
    Login using local device id