Hi nakama devs,
To maintain a healthy online multiplayer server, authoritative server is a must to prevent any possible cheater to destroy the game we build. However, the structure/architect is completely different between online and offline game. I have a few question to ask about it.
Authoritative server should not only apply in multiplayer environment, but also in single play. If either one loses the proper management, it will cause catastrophic problems (game ecosystem , real money trade etc.). How do you setup a proper authoritative server single play mode code logic?
How does authoritative server actually work? How does the server know which information are to be compared with the information that player have sent to the server, and which one is correct?
In PvE, player can do various buff, skill, attack, move, dodge, animation, and collision between boxes, If I need to authorize those things, what can I do to minimize server cost? Is there have something not necessary to authorize and why?
Authoritative server mainly focuses on player decision. However, in PvE environment, authoritative server need to check the minions and the boss as well, otherwise, if the player cheats and set the boss dead immediately, or sets the boss and minion’s stat to be in incredibly low health and one shot, the server will not be able to deal with the cheater successfully. Also, having proper management of the player goal is important, otherwise, player can send a win or even in the reward stage message to server directly, which will skip the battle completely and receive the reward. To deal with these kind of problems, how should I build up a proper, high security authoritative server in PvE without causing a major internet latency or delay?
Thanks in advance for the answer, have a great day.