Online Sessions - "GameSessionName"
I'm doing some work with sessions at the moment, and I don't get how to use "GameSessionName" - It's const, but seems to be used all over the place for creating/joining sessions. Whenever I try to use different variables for named sessions, at some point or another, "GameSessionName" pops up and causes some errors.
Could someone please explain how I would be expected to use GameSessionName or get around the problem of it always appearing, since as far as I am aware, you need uniquely named sessions.
Any help/comments on this would be appreciated!
asked Oct 26 '15 at 04:19 PM in C++ Programming
Session names are just a simple way to implement a basic matchmaking system that handles two states: game and lobby. UE4 expects to have your Game session use an
Long story short, if you are not up to creating a full lobby/game system and you only want to use a simple find/join system just use the
answered Oct 31 '15 at 02:25 PM
hi for better understanding take a look to "Advanced Session Plugin" by mordentral (https://forums.unrealengine.com/showthread.php?69901-Advanced-Sessions-Plugin)
you get the gamesessionname by the onlinesubsystem when you create a session or as a sessionresult when you search for sessions. for steam it is equal the steamname..take a look at multiplayer shootout sample
so if you want to use custom servernames you have to add a custom session property (https://docs.unrealengine.com/latest/INT/Programming/Online/Types/index.html) and use that info in your server browser instead of using the gamesessionname
Follow this question
Once you sign in you will be able to subscribe for any updates here