Online Subsystem and Sessions WTF
I am trying to wrap my brain around the Online Subsystem and I thought Shooter Game would be a decent example. However all I seem to be doing is getting utterly lost. I've look around at a few tutorials and my game scenario is that you can play single player or join a dedicated server to play online. Your machine will never be the host.
Similar to the Shooter Game I created a new GameInstance and GameSession class. From what I assume a build dedicated server will call RegisterServer when it comes online. Within that function it will create the GameSession. The thing I do not understand is the GameSession never seems to be created on the client, and yet the GameInstance performs operations such as Searching and Joining through the GameSession object. The GameSession even has functions for Hosting, Finding, and Joining Sessions. In another tutorial I have found those same functions are on the GameInstance, which makes more since because GameSession object would not be created in a non dedicated server build.
I'm pretty sure you need to create a GameSession on the dedicated server, I'm not sure why the GameInstance on the client needs/uses the GameSession when one would not be created... am I missing something?
asked Nov 23 '18 at 07:33 AM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here