Steam Online Multiplayer in v4.13

Hey PDubulous,

Just to verify a couple things:

We, as in Epic Engine Support, doesn’t give support for third party plugins, such as “Advanced Sessions”. Also, the latest UE4 Steamworks verson is 1.32. I don’t foresee that 1.37 being a huge difference if you went through the steps of updating it and compiling it. As long as that succeeded, I supposed that it’ll be fine but it could be a factor to keep in mind.

With that said, here is are the steps that I go through to setup Steam multiplayer sessions:

DefaultEngine.ini:

[/Script/Engine.GameEngine]
!NetDriverDefinitions=ClearArray
+NetDriverDefinitions=(DefName="GameNetDriver",DriverClassName="/Script/OnlineSubsystemSteam.SteamNetDriver",DriverClassNameFallback="/Script/OnlineSubsystemUtils.IpNetDriver")

[OnlineSubsystem]
DefaultPlatformService=Steam
PollingIntervalInMs=20

[OnlineSubsystemSteam]
bEnabled=true
SteamDevAppId=480
GameServerQueryPort=27015
bRelaunchInSteam=false
GameVersion=1.0.0.0
bVACEnabled=1
bAllowP2PPacketRelay=true
P2PConnectionTimeout=90

[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName="/Script/OnlineSubsystemSteam.SteamNetConnection"

Secondly:

  • In UE4, go to Edit->Plugins
  • Select, Online Platform
  • Enable, Online Subsystem Steam
  • Restart Editor
  • Package Game / Run standalone

If running a C++ Project:

  • Source ->GAMENAME->GAMENAME.Build.cs

  • Uncomment out the PrivateDependencyModuleNames.Add( ) line:

    // Uncomment if you are using online features
    // PrivateDependencyModuleNames.Add(“OnlineSubsystem”);

To create and join session:

And lastly, when using Steam, you need to have the host be on one computer with one Steam account. The client joining the hosted game as to be on another computer with a different Steam account. You cannot test two clients on one machine when using Steam as the OnlineSubsystem.

Also, technically, you do not need to install the Steamworks SDK to create and join sessions with Steam. It is for things like achievements.

Please go through this and let me know if you are still having issues.