Network Lobby changing play scene level to the next play scene

I’m using the Network Lobby asset from the Asset Store. I’ve created a game that I want to rotate around a list of levels that are selected from the initial hosting screen.

I set the playScene to the first level in the list then when the Start Server is clicked and all players sign in to the Lobby and press ready the count down happens. When the level loads/start the players are there and everything is fine.

However when the current level is completed i.e. the number of Frags has been reached by a player or the Time limit has run out and I need the game to go to the next level in the list. I set the playScene to the name of the next level call the function ServerChangeScene() and the level loads fine but there are no players. There are no player prefabs in the scene list.

I would of thought that this kind of functionality was a fairly standard/common thing for a game to rotate around a set of levels.

Anyone got some suggestions on how to resolve this?

I’ve read that you need to use mini exe’s. Can some one point me at a resource or tutorial for that.

Does you second level have all the stuff in it? Like spawn points. Too test I would copy my first level (that is working) and just rename it to something else and see if that works.

Hi Kobaltic

Yes everything is in place. The levels are separate scenes and all the spawn points, walls, barrels, weapons which are part of the scene are there. The players that are not part of the scene and spawned by the ‘Network Lobby’ code are the only thing missing. The player prefabs are not in the list of scene game objects.

I found if you add a don’t destroy on load to the player prefab it works. However it moves all the players to the new scene.

Hi Kobaltic

Thanks I’ll give that go see if that works out.

Hi Kobaltic

That worked like a charm, just need to reset the player positions when the scene loads.