Hello. I am trying to play with steam connection. I can create server, find it in other client, connect and play. So everything is fine. But every time i see in log: LogOnline:Warning: STEAM: No game present to join for session (Game)
On listen server i do:
-
Sessions->CreateSession
-
when session is created i call Sessions->StartSession
-
when session is started i call GetWorld()->ServerTravel(TravelURL); where TravelURL is “/Game/Maps/MapName?Listen” to travel on game map and start to play for server and also local player on this server.
After ServerTravel processed i see that local player controller is registered again with chain:
UE4Editor-OnlineSubsystemSteam.dll!FOnlineSessionSteam::RegisterPlayers
UE4Editor-OnlineSubsystemSteam.dll!FOnlineSessionSteam::RegisterPlayer
UE4Editor-Engine.dll!APlayerState::RegisterPlayerWithSession
UE4Editor-Engine.dll!AGameSession::RegisterPlayer
UE4Editor-Engine.dll!AGameMode::InitNewPlayer
UE4Editor-Engine.dll!AGameMode::Login
UE4Editor-Engine.dll!UWorld::SpawnPlayActor
UE4Editor-Engine.dll!ULocalPlayer::SpawnPlayActor
UE4Editor-Engine.dll!UEngine::LoadMap
UE4Editor-Engine.dll!UEngine::Browse
void APlayerState::RegisterPlayerWithSession calls *SessionInt->RegisterPlayer(PlayerState->SessionName, UniqueId, bWasFromInvite);
where PlayerState->SessionName is default session name “Game”, not the name i used to create session.
after that bool FOnlineSessionSteam::RegisterPlayers calls FNamedOnlineSession Session = GetNamedSession(SessionName);* and
Session here is NULL because sever has no session with default name “Game” and i get this error in log.
Also. If i change session name i create to default name “Game” then bool FOnlineSessionSteam::RegisterPlayers not get error LogOnline:Warning: STEAM: No game present to join for session (Game) any more, but it gets one another LogOnline:Warning: STEAM: Can’t start an online session (Game) in state InProgress
Look like map should not be reloaded for listen server, or what should i do, or is i a kind of bug where it should not be called for listen server?
Maybe for listen server, also as for dedicated server first i need to open map, and create session after that?
Or maybe for Listen server Lobby session is required?
Log file attached link text