Dedicated server

Taken from: http://forum.nerdkingdom.com/viewtopic.php?f=7&t=765 on 2/11/2014

With the latest update to TUG we have introduced the Survival Games and you can now run your own dedicated servers for this mode as well as creative mode.

Running a dedicated server is very easy, locate your install location for the game, typically under


 * \Program Files (x86)\Nerd Kingdom\TUG\Data

In this folder you will see the TUG.exe and a new file named DedicatedServer.exe. Clicking on this new file will automatically start up a dedicated server on your machine, also creating a new config file for that server in your \Config folder located within the same directory.

Once started the dedicated server will run in a cmd window on your desktop and hitting any key will automatically end the server.

In the new config file, dedicated_server.txt, you’ll notice a few configurable features for the dedicated server:

(See Dedicated server.txt)

serverSave is the name of a saved map you can have the server launch with. This can be any previously saved map you have in your main game but in order to make the map ready for a survival map you will need to add a couple of new game objects to your map and save it off.

Open up any map you wish to use as a survival map in creative mode. While in this mode you can search through the inventory for two new system game objects, the World Center and Spawn Point.

The World Center sets the center point for the survival map and determines at what distance from that center to start to add the edges of the survival map zone. You can currently use the F2 key to toggle the debug console which will let you know where your current map will be out of zone once it is converted to a survival map.

Finally you will need to add in Spawn Points for players. You can add as many or as few Spawn Points for your map as you want and during game start the system will use these to randomly spawn in players to your new survival map.

All you have to do to make this map your new survival map for your dedicated server is adjust the serverSave variable in the dedicated_server.txt to the name of your map and you're all set.

Have fun!