Inspired by @tyridge77’s custom character replication system in The Wild West, I wanted to create such a system for myself as it would have countless advantages and can be used in nearly any game. The concept is self-explanatory: the client sends the server replication information regarding their character, the server validates the data to rule out foul play, the server saves the validated information and updates the player’s location/actions depending on how you choose to use the information. First, let me explain the why behind this.
The advantages are clear. Unlike the vanilla replicator, you have actual control over the replication and can change how it interprets data while blocking any character-related cheating without it even having a chance of occurring (teleporting, speed, noclip, flying, etc). It also has other uses like making it easy to spectate the player’s camera/mouse movements, like in The Wild West. Another consequence of the custom replicator is that cheaters will be completely stumped. They cannot use standard cheats that abuse the vanilla replicator (like the ones mentioned above) and will likely leave; they have little motivation to work on a complex tool that works on only this one game, which I don’t think is even possible due to the server validation.
This all sounds well and good, but the problem lies with the how. Before tackling such a project, I would need lots of information about best practices in sending massive amounts of data through the client-server barrier.
Should you send JSON or just the table straight-up? How important is it to keep the JSON compressed? How should you establish the client-server connection, through ordinary remote events or is there some more sophisticated method I’m not aware of? What is the cap that I should respect when it comes to remote spamming?
Although Tyridge can answer most of these, he has not been active lately and isn’t available, hence this post. Be sure to let me know of what you think of this kind of system, aside from the questions above. Obviously it works well judging off of The Wild West, but could there be hidden downsides?