Search Unity

Help Wanted How can I avoid cheating with a server?

Discussion in 'Multiplayer' started by apollo_wayne, Oct 20, 2021.

  1. apollo_wayne

    apollo_wayne

    Joined:
    Dec 26, 2020
    Posts:
    25
    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!
     
  2. nsxdavid

    nsxdavid

    Joined:
    Apr 6, 2009
    Posts:
    474
    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.
     
    Joe-Censored likes this.
  3. g_a_p

    g_a_p

    Joined:
    Mar 16, 2015
    Posts:
    252
    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.
     
    Joe-Censored likes this.
  4. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,736
    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.
     
  5. apollo_wayne

    apollo_wayne

    Joined:
    Dec 26, 2020
    Posts:
    25
    Where can I find someone that can help me with this? A course, edX program, or anything like this?
     
  6. TheGamery

    TheGamery

    Joined:
    Oct 14, 2013
    Posts:
    68
    (Watch on youtube to see the full playlist)

     
unityunity