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.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Always on dedicated server

Discussion in 'Multiplayer' started by TripleDouble, Jun 6, 2015.

  1. TripleDouble

    TripleDouble

    Joined:
    Mar 18, 2014
    Posts:
    11
    Hello,
    Is there any solution, that would provide approx. 5 rooms, which will be always on and only care about spawning random items on a map and set leaderboard? Now i have solution with master server and unity networking, where one player have to host game and another can connect, but i would like to have always live rooms.

    I know there is some products like photon, but I would like to have this made only in unity networks. Is it possible?
     
  2. JakeLeB

    JakeLeB

    Joined:
    Apr 18, 2013
    Posts:
    25
    You could always code a separate Unity Application to be the Server, just don't give it a PlayerBody, Camera and let it deal with the code generation, you could then generate through RPCs and as long as you have scripts to catch them for the Clients it should all work.
     
  3. Brent_Farris

    Brent_Farris

    Joined:
    Jul 13, 2012
    Posts:
    881
    You can run Unity without graphics on either a linux server with a headless Linux Unity build or with -batchmode as a command line flag argument to running the application, this is like a "no graphics" mode.

    In this way you can leave the long running process on a machine for as long as you wish. Just make it so that particular instance is always treated as a server. You can do this with making your own command line arguments or by making a server only build.

    Otherwise you are better going with a third party networking solution like Forge or Photon which supports this kind of thing.