Getting very confused here…
I have a simple game that I am trying to adapt so that it works over the network…
My game has 16 actors in it that are the “game pieces” that I want each networked player to be aware of (so I’ve set these actors to be replicated).
So I spin up a dedicated server (using some helpful command line params that I found somewhere). Whilst this is running, I am logging information about the number of actor “game pieces” in the world. It is 16 and never changes from this.
Then… I spin up 1 client, to join the game. The problem I have is that once the client starts, it is telling me that it has 32 “game pieces”, not 16 as I’m expecting.
So, if I turn off the “Replicates” flag on the game piece actor, I will end up with the correct number of actors in my client game, but then the actor is not replicated to other clients (which is the whole point of networking).
Why does the engine seem to be duplicating actors in this way?
Hope this makes sense.