So the replication troubles you had were:
1) client to server replication stops after 20-30 minutes
2) client to server replication is broken on reconnections? FIXED
3) in the client to server replication example, when a second client disconnects, on the first client the replicated entities of the second client do not get despawned. This can be solved by adding a ControlledBy component on the server entity. However maybe we should add a ControlledBy component automatically for entities that were replicated from a remote client? (Maybe not though, if a client is simulating/replicating entities that it doesn't control directly..)
Yea i agree with the sentiment in 3. rather have this as a user responsibility. But making this more clear wouldnt hurt ig (section in the book abt this maybe?)
So the replication troubles you had were: 1) client to server replication stops after 20-30 minutes 2)
client to server replication is broken on reconnections?FIXED 3) in the client to server replication example, when a second client disconnects, on the first client the replicated entities of the second client do not get despawned. This can be solved by adding aControlledBy
component on the server entity. However maybe we should add aControlledBy
component automatically for entities that were replicated from a remote client? (Maybe not though, if a client is simulating/replicating entities that it doesn't control directly..)