What class should I override to change session settings and how to add it?
for example I don't want anyone to be able to join the session if the game started, add some info like server/room name, current map and GameType/GameMode, stuff that's also set inside lobby (changed before game starts but after joining session) like game length and difficulty etc and you should be able to get all just from the session result without joining one
asked Dec 02 '16 at 05:16 PM in C++ Programming
There's no need to override a class. SessionSettings is something like a dictionary so you can add any key value pair you want. So when you find a Session with a client, you can check the SessionSettings and the info you added will be there, so then you can do whatever you want based on it.
You can see eXi does it in this part of his tutorial about sessions.
See the "SessionSettings->Set(SETTING_MAPNAME, FString("NewMap"), EOnlineDataAdvertisementType::ViaOnlineService);" line?
He is doing it right there. You could do the same with any other piece of info. Also SessionSettings already has a boolean that prevents people from joining if the game has already started.
Hope this helps
answered Dec 02 '16 at 05:25 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here