Setting up a client server interaction

Hi guys,

I have a very simple first person shooter game atm that I would like to network. I have run the game in the editor with more than one players and I have checked that all my replication works fine, which is great. However I would like to further this, and create client server interaction for my application.

I’m not planning on having a dedicated server of any sort, just a running version of the application that will serve as a host, or server. I’ve been reading through some of the session documentation, as well the shootergame example. I’ve got a few questions however that have stumped my progress, and my lack of answer to them has me afraid to try and integrate the session stuff for fear of getting things completely wrong and not able then to find my potential mistakes.

  • Would creating a session be as simple as as defining a AGameSession object, and calling mySession::CreateSession()?

  • The documentation online says that this function requires a set of parameters to help set the session up, however I’ve not been able to find out what these parameters actually are, or how I’d actually go about finding them.

  • My plan is to have an application that searches for a session with certain predefined parameters to join, which if it doesnt find it would then create. Would this be an all right approach? Again I’m not completely sure it would, as I’m not certain what the parameters are, or if they are the exact same for the CreateSession, FindSession(), and JoinSession() functions.

I’m just having a load of trouble wrapping my head around all the session stuff. At the moment I’m thinking it’s as easy as creating, finding and joining a session, but I’m worried there’s a whole layer of stuff I’ve just not investigated as there’s a mountain of information to take in from the shooter example. And I do apologise if questions similar to these have been answered, or if there is a simple solution I should have looked at or have missed somewhere. I just literally have no idea where to start this, aside from copying the code from the shooter example, half of which I’m not even sure as to how it works.

Thanks!