Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Authoritative server example / demo?

Discussion in 'Multiplayer' started by msleeper, Nov 19, 2011.

  1. msleeper

    msleeper

    Joined:
    Feb 14, 2011
    Posts:
    86
    Is there any example or demo project that makes use of an authoritative server? I'm trying to familiarize myself with Unity's networking, and I'd like to go the route of an authoritative server to eliminate the possibility cheating/hacking like in peer-to-peer games. There doesn't seem to be much information or documentation on the subject, other than that it's possible to have an authoritative server.

    Also, do any of the networking services (Photon, etc.) that have authoritative server capabilities have example projects?

    Note, this is NOT for an MMO type project.

    Thanks a lot.
     
  2. hound0999

    hound0999

    Joined:
    Jun 30, 2009
    Posts:
    124
    Yes the majority of the network backends like photon have an example project. Unity's networking will have nothing to do with your network programming if you choose a backend like photon. You will have to use the photon library. So its really about choosing one and learning it. Or you could just make a unity master server depending on how many connections you need and how many packets need to be sent.
     
  3. appels

    appels

    Joined:
    Jun 25, 2010
    Posts:
    2,687
    The masterserver has nothing to do with authoritative networking in the game. It only lists the games that have been registered on it.
     
  4. fholm

    fholm

    Joined:
    Aug 20, 2011
    Posts:
    2,049
  5. msleeper

    msleeper

    Joined:
    Feb 14, 2011
    Posts:
    86
    Let me simplify my question - Can anyone provide links to examples of multiplayer games that use an authoritative server?
     
  6. Dreamora

    Dreamora

    Joined:
    Apr 5, 2008
    Posts:
    26,601
    the unity networking example linked in resources - examples at the top contains an authorative example

    and Reign of Steel for example at least used to be authorative
     
unityunity