I’m using steam online subsystem. I could get information and hold the lobby correctly, but when I want to travel the map from lobby to game, all the clients will disconnect from the server. I know that the command “server travel” firstly disconnect all the clients and reconnect them when the new map is loaded. It seems the clients didn’t rejoin to the server. What’s the problem?
(I’m most likely wrong)
But if clients are connected to your lobby, attempt to just ‘Open Level’ and see how that fares.
Yes, this is wrong. OpenLevel is not for moving the Server and the Clients.
The problem that OP has is, that Steam wants ServerTravel to be a SeamlessTravel. Otherwise the Clients get disconnected in the process.
You want to check your LobbyGameMode and set the “bSeamlessTravel” boolean to true.
I‘ve heard that seamless travel requires two maps have same gamemode class, playerstate, ect. I’m using different gamemodes between two maps. Does it mean I have to use the same gamemode on steam system?
No idea actually. SeamlessTravel keeps the GameMode, but I think only if the GameMode are actually the same. If you new map has a different one it should work.
But there are other things that aren’t called, such as “OnPostLogin” on the new map is not called anymore iirc.