Dedicated server.txt

From Cambo at: http://steamcommunity.com/app/277930/discussions/0/558752449778776580/#c558752449812135513

We changed some stuff but here is a rough guide on how the server config stuff. This will allow you to host both creative and survival dedicated servers on the same box.

Creative In the MapCycle (no longer the serverSave field) you can specify the save name of your creative map. It is highly recommended you have a unique name here to ensure you can run multiple servers on the same host.


 * Dedicated Server Config
 * workingDirectory = ""
 * fallbackDirectory = "Assets"
 * autoSaveTime = 0
 * gameMode = 0
 * tcpPort = 6600
 * maxClients = 20
 * worldRadius = 10
 * playersRequired = 2
 * MapCycle
 * ExampleSaveFile
 * }
 * }
 * ExampleSaveFile
 * }
 * }

Survival Random Simply set the gameMode to 1 and it will automatically generate a new map every round of the game.


 * Dedicated Server Config
 * workingDirectory = ""
 * fallbackDirectory = "Assets"
 * autoSaveTime = 0
 * gameMode = 1
 * tcpPort = 6600
 * maxClients = 20
 * worldRadius = 10
 * playersRequired = 2
 * }
 * }

Survival Custom If the survival game mode is selected you can choose to use one or more custom survival maps that were created in creative mode.

To create a custom survival map simply go into creative mode and place a world center as well as multiple spawn points. Then use that same world name in the MapCycle section.


 * Dedicated Server Config
 * workingDirectory = ""
 * fallbackDirectory = "Assets"
 * autoSaveTime = 0
 * gameMode = 1
 * tcpPort = 6600
 * maxClients = 20
 * worldRadius = 10
 * playersRequired = 2
 * MapCycle
 * CustomSurvival1
 * CustomSurvival2
 * }
 * }
 * CustomSurvival2
 * }
 * }
 * }

On a final note. If you are getting an issue where you can not host a survival map on the same host where a creative server has been hosted you will need to rename the creative save name.

Navigate to "%APPDATA%/Nerd Kingdom/TUG/Saves" and simply rename the folder Server World 1 to any other name. Then in your creative server's dedicated_config.txt set the mapcycle to point to the new name. This will prevent the survival server from conflicting with the creative name.