I suppose my question is not entirely specific, but I’ll get to the point:
I’ve followed the session-related nodes and setups from the Multiplayer Shootout Example. My buddy and I managed to get that example to connect to one another over the internet through Steam, so we’re replicating the behavior in our game to get the multiplayer off the ground.
Problem is, when Find Session is called, the array is filled with zero sessions and thus there are none to join, even though the blueprint is setup the same as the Shootout example, minus UMG-related things like a server browser (it’s purely for testing at this point so I figure just finding and joining the first session available would have sufficed).
Any ideas or any specific things I might be missing? We have done the tests with Standalone (no PIE). We have changed the DefaultEngine.ini to include the Steam network system, yet still no dice.
(and as I’m posting this, one thing I noticed is that Create Session has a public connections value of 0. But a session should still have been returned to the Results array, correct?)
Possible solutions…
Is Engine.ini set up for Steam?
Are you logged into Steam?
Is your firewall allowing the connection?
Is your APPID correct? (Steam application ID number for your game)
Try making the connection count be 5 or something.
Also, Online session do not work at all in the editor. You MUST run the game from the game.uproject menu Launch game.
If all else fails turn on detail logging on the Online module of UE4
(I think it’s LogOnline=VeryVerbose in the [Core.Log] section in Engine.ini)
from my game engine.ini a few sections of the file…
[OnlineSubsystem]
DefaultPlatformService=Steam
PollingIntervalInMs=20
bHasVoiceEnabled=true
[OnlineSubsystemSteam]
bEnabled=true
SteamDevAppId=(deleted this number here)
GameServerQueryPort=27015
bRelaunchInSteam=false
GameVersion=1.0.0.0
bVACEnabled=1
bAllowP2PPacketRelay=true
P2PConnectionTimeout=90
Achievement_0_Id="TEST_ACHIEVEMENT_ONE"
[Core.Log]
global=default
DSSLog=off
DSS_VOIP=off
DSS_STEAM=off
DSS_AI=off
LogOnline=VeryVerbose
1 Like
We did a handful of changes, along with your suggestions. I think what fixed it was expanding my search results and increasing the connection count (I actually had it at 0 by mistake!). After clicking the Join game button a couple times, it managed to find the single session and join it, so I will mark this as the answer! Thank you.