Unable to Join Sessions in Packaged Game (Works in Editor) with Steam Advanced Sessions Online Subsystem

Just following up, I was able to make it work with UE 4.26.2, two computers and two Steam accounts, packaged for Shipping and “For Distribution” checked. Also, Game Instance derived from Advanced Friends Game Instance. Multiplayer related issue, make sure that your Game State class is derived from Game State, and Game Mode class Derived from Game Mode, otherwise, client will freeze after connecting to the host.

I believe the culprit was the node “extra settings” for both create and find advanced sessions. The template project developed with 4.27 was using “GameName”, but changing to “SessionName” and setting it as “GameSession” solved the issue for me.

→ Screenshot:

->Original Template:

->Packaging Settings:

->My Create Session node:

→ My Join Session node:

→ steam_appid.txt in the *.exe folder

->steam_appid.txt in the \WindowsNoEditor\YourGame\Binaries\Win64 folder also works.

->My Project Build.cs:

->My DefaultEngine.ini:

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

[OnlineSubsystem]
DefaultPlatformService=Steam

[OnlineSubsystemSteam]
bEnabled=true
SteamDevAppId=480
SteamAppId=480
bInitServerOnClient=true
GameServerQueryPort=27015

[PacketHandlerComponents]
+Components=OnlineSubsystemSteam.SteamAuthComponentModuleInterface

[/Script/OnlineSubsystemSteam.SteamNetDriver]
NetConnectionClassName=“OnlineSubsystemSteam.SteamNetConnection”

1 Like