How can I avoid cheating with a server?

Hi! I wanna build a multiplayer tycoon game with pvp involved.

I know that the only way to avoid cheating is by having a server database.

But how can I do it?

Also, if you have any tutorials for the idle tycoon, that would be amazing!
I have down the pvp part and the basic mechanics. for now!

It is more about having a server-authoritative design, of which a server database is most likely a part. How you do this, however, is very big subject.

1 Like

You can find some

I agree. If you just use a database, it is still a client task to update it. You should rely on a fully authoritative server solution (you can find some listed here ) which receives the client requests, uses your custom logic to validate them, and dispatches commands to the other clients.

1 Like

This

Reducing cheating using an authoritative server comes from the server vetting and not trusting any input from the client, and the server basically running the entire simulation. Having your own server side database can be part of that.

I doubt you’ll be able to find a beginner friendly tutorial on the topic.

Where can I find someone that can help me with this? A course, edX program, or anything like this?

(Watch on youtube to see the full playlist)

https://www.youtube.com/watch?v=4Mf81GdEDU8