An Unturned server on a VPS: which plan to take and how not to drown in plugins
A vanilla Unturned server on a stock map is one of the lightest game servers around. An inexpensive plan handles it easily, and a powerful VPS can run several servers on different maps at once. Three things make it heavier: large maps from the Steam Workshop, plugins, and player bases that grow thousands of barricades over a month-long wipe. So choose the plan for what the server will look like at the end of the wipe, not on the first day.
Which plan you need
- A server for friends on a stock map. 2 cores at 3 GHz or more and 2 GB of memory. For a group of up to ten people that is more than enough.
- A public server for 24–50 players with plugins. 4 GB of memory and 2–4 fast cores. Every plugin takes memory, and a large base of hundreds of structures loads the processor during every raid.
- A big Workshop map. Check the map size: large custom maps weigh several times more than the stock ones, and the server keeps the whole map in memory. It's better to start with a 4 GB VPS or more than to move halfway through a wipe.
The Unturned server runs on Unity, and the main game logic runs in one thread. That makes core speed more important than core count: on a fast core zombies, vehicles and building physics are processed without delay. When the server lacks power, players see rubber-banding: cars jerk, shots don't register, and walking into a town full of zombies freezes the server for a second.
Installation, ports and the token
The dedicated server is released for Windows and Linux and is installed through SteamCMD as app 1110390 with an anonymous login. On a VPS Linux is more convenient, for example Ubuntu or Debian: the system uses almost no memory, which leaves more for the map. You start the server with the +InternetServer/name parameter, and on the first start it creates a Servers/name folder with settings and saves.
The server needs two adjacent UDP ports. By default these are 27015 for server list queries and 27016 for game traffic. If you change the port in the settings, the second one automatically becomes the next number up, and you need to open both in the firewall. If you run several servers on one machine, keep their ports at least a couple of numbers apart.
A server that should be visible on the internet needs a Steam Game Server Login Token (GSLT). You create one for free on Steam's game server management page by entering the Unturned app ID, 304930. The token goes into Commands.dat with the GSLT command, or into the server settings. Without it the server won't appear in the public list. The token also gives the server a permanent connection code that stays the same after restarts. One token is for one server; don't use it on two machines at once.
The main parameters live in Commands.dat: MaxPlayers (player limit), Map (the map), Perspective (first- or third-person view), plus the password and difficulty mode.
Workshop maps and plugins
Maps and mods from the Steam Workshop are added through the WorkshopDownloadConfig.json file: put the item IDs into the File_IDs list, and the server downloads them with their dependencies on startup. Players get the same files automatically when they connect.
Plugins run on one of two platforms. Rocket, in its LDM version, ships with the game and has a huge library of older plugins for economy, kits and teleports. OpenMod is newer and more actively developed. Pick one platform and don't install dozens of plugins just in case: each one takes memory, and plugins that haven't been updated in a long time often break after game patches and crash the server on startup.
Saves, wipes and backups
Everything that belongs to the server, including the world, buildings, player inventories and settings, sits in the Servers/name folder. Copy the whole folder off the VPS once a day and before every game or plugin update. With nothing to roll back to, one bad version of an economy plugin can erase a whole wipe's worth of player progress. A server wipe is really just deleting the saved world and player data from this folder, so only do it after taking a fresh copy.
Where to put the server and whether you need protection
Unturned involves a lot of shooting, and ping above 80–100 ms already makes it hard to hit anything. For players in Europe, Germany or the Netherlands is the natural choice; for North America, pick a data centre close to where most of your players live, such as the US East Coast. If your audience includes players from Russia or the CIS, Finland or Poland keeps their ping low while staying close to the rest of Europe. You can compare locations on the VPS in Europe and VPS in the USA pages. Public PvP servers listed with their address sometimes get attacked, and a disconnect in the middle of a raid drives players away faster than lag does. For an open server, take a plan with DDoS protection. If you plan to run several games on one machine, see VPS for Pterodactyl.