authoritative server

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By TomShar

making a multiplayer game and I want an authoritative dedicated server.

trying to understand which keywords I want to be using to achieve this. at the moment from what I understand I should use puppet and master and ignore remote.

the server code would be marked as master and all nodes will be owned by the server (id 1). then server can make calls to puppet rpcs.

For example, player movement would work as follows:

client input is passed on to a master function which handles calculating the players position which then calls a puppet rpc with the new position of the player.

This seems like it would be authoritative?

This seems like it would be authoritative?

If that’s your question, the answer is yes.

njamster | 2020-09-23 20:49

Yeah, i was basically asking if what I proposed would work AND if it the ‘right’ way to do it

TomShar | 2020-09-23 20:51

:bust_in_silhouette: Reply From: njamster

Yes, what you described should work and is actually the default behavior as the server is automatically set to be the master node if you don’t change that manually.

However, you could easily achieve the same thing by just using the “remote”-key. That comes basically down to a matter of preference. There is no “right way” - just multiple solutions for the same problem. Just try it and see which fits you best!