Is it necessary to open level after creating session?
Hi i wanted to know that can creating session and finding session work without opening a level with listen parameter? I wanted players to join the level currently i am in. How it is done in a MMO RPG type game where there is a single level or level streaming and players keep joining and leaving the same level? Also i am not able to understand how the find session works? What happens if I open a level with listen parameter and then create a session? I found that i am unable to find that session when i tried where as when a create a session first and then open a level with listen parameter i can find that session and join it, i wonder why? Is there any documentation on how this create session and find session works? Best regards Atin
asked Jan 05 '19 at 02:39 AM in Using UE4
Think of sessions of a game in progress on the server - whatever state the server is in, that's the one that will (theoretically) be used to run the game. A level has to be initiated with listen so that the server knows it should expect connections. Don't think of levels as physical worlds, but a contained state that holds objects (whether those objects be maps, actors, etc.) that the server and clients use as a focus at that time.
When you change a level, the session is updated that the server is using that level. All clients that join the server's session look at the level use it so they remain in "sync".
As an analogy, a session is an instance of a game. Just like a copy of any game you play - you click to run it, it loads and plays as a session. Clients remotely do the same, but to sync up, join the session in progress on the server. Not sure if that makes sense.
answered Feb 07 '19 at 05:40 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here