So, we're currently making a game, which should be hosted by a server. I have come to understand (Though i'm probably wrong), that i can make this purely with unity. So i have builded an .exe for the server to run. However, i am VERY inexperienced with servers, and as such i have no idea how to (if it's possible at all), to make the server run an exe file. I have also heard the term "Dedicated server" been used, and to be honest, i don't know what that is, does these two things relate?
asked Jul 15 '10 at 08:57 PM
Servers are just computers. If it runs Windows, it can run the game .exe file. Be sure your server has enough graphics power to handle running the game if you have 3D rendering enabled on the server.
Linux servers cannot be made with Unity (unless you run them with WINE, but that's probably not a great idea). And if, for some strange reason you have an OSX server, you can run the OSX-built binary (.app) that Unity creates as the server. Windows and OSX clients will be able to play on the same server.
A dedicated server typically utilizes a Client-Server architecture, where you have a (dedicated) server running somewhere that is NOT also a game. Other clients then connect to the server and play the game.
A Local server that still uses the Client-Serverarchitecture is when you run an instance of the game that doubles as the server for the game. A great example of this technology is the Source engine, which has the capability to run either a local server or a dedicated server.
The other way you can run a server is using a Peer-to-Peer architecture. In this instance, the game contains both "server" and "client" code, and two players can connect to one another and play against each other using exactly the same game code, without any real server.
answered Jul 16 '10 at 12:45 AM