Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

masterserver to client to database for info

Discussion in 'Multiplayer' started by Mossrobes, Jun 22, 2010.

  1. Mossrobes

    Mossrobes

    Joined:
    Jun 22, 2010
    Posts:
    2
    Hi, long time reading first time posting and all that jazz.

    Setting up a multiplayer game with 4-6 players in a map.

    How would you go by it to have a server query a sql database for info? Like login, pass, email states(afk/ingame/free) and rank to track level and stuff of a player?

    planning to make it so that one player hosts the session after being peered against other player.

    Feel free to correct me as i am quite new at this.


    Mossrobes
     
  2. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    Hi, welcome to the forum!

    It is likely you will want to communicate with the database via a webserver. There is an example server side highscore system available on the Unify wiki that should give you a good starting point.
     
  3. Mossrobes

    Mossrobes

    Joined:
    Jun 22, 2010
    Posts:
    2
    thanks for the answer Andeeee.

    Will twist my brain around this later =)