Replication - Does it seems right?

Hello all,

I’m at the point of my project when I need to consider seriously the question of networking and replication.
So far, it’s the part that I have have the hardest time to warp my head around.
So, after reading and watching resources on the matter. I start, very slowly, to get a sense of it.
I’m here asking your opinion on it, does it seems right to you ?
A drawing speaking better than thousand words, here come one that show the way I picture the networking for my project.
It’s a game close to a windjammer (or any two player sport game, like a tennis game).

Thanks all.

Looks good. However, the playerstate isn’t relevant to one client only, as it’s replicated to all clients. Not sure if that’s what you meant by “relevant” tho.

Basic things to consider when doing network code:

  1. To avoid cheating, make EVERYTHING server authoritative
  2. Limit the amount of data being sent/received as much as possible for better performance
  3. For something to happen on any end (server or client), information is needed. This can either be passed directly through an event call, or replication.

Seems like you got it figured out

Thanks.
I guess it will become clearer as I put everything into place.
For the relevant I figured that indeed all player need to receive information about all other players in order to display everything as it should be.