Client automatically loading level

Hello, I’m trying to create a multiplayer game but I’m having the following issue while testing in the editor:

  • When I create a session and open a level, using the listen command, the client automatically loads the default map.

I didn’t had this problem on another project I created some weeks ago… The code is all the same.

Am I missing something? Some important setting in the config or project?

Thanks.

Just to get this right the client is already connected and you go to a new level via the listen command?

Because as far as I’m aware that will open up a new listen server. You have to use ServerTravel instead.

What I was trying to do is:
to open a new level with the listen option when a player selected to create a new session. This level is a pre match lobby, simply just another menu which gathers all the players before starting a match.
This was actually resulting into another issue and that’s where the ServerTravel comes to help! Thanks for letting me know of it!

The problem I was having, was that the clients that were still in the main menu doing nothing, were automatically “teleported” to the project template default map when the server pressed the create new session button.

Really weird, because I created a new clean project and it’s now working properly, the clients only move to the pre match lobby on find match button press and everyone gets loaded to the game map when ready, using the ServerTravel command. Thanks again!

Any detailed answer on this issue ?

I was having the same problem
I set the map separately in the project setting and tried it again, and it worked well.