How to Create a Hurtworld Dedicated Server Guide

From Survival Servers
Jump to navigation Jump to search

Rent a server from us

To get an instant Hurtworld server without using your own computer, order one from Survival Servers:

SurvivalServers-Hurtworld_840x140.png

Server requirements

Windows 7, 8, 8.1, Server 2008 or Server 2012, 64-bit

Quad-core processor: 2 GHz

Memory: 4 GB RAM

Graphics: not needed. The server runs with -nographics and opens no game window.

4 GB of free disk space

Step 1: Download the server files with SteamCMD

  1. Download SteamCMD: SteamCMD download.
  2. Create a folder for your Hurtworld server.
  3. Put the SteamCMD.exe file in that folder.
  4. Create a batch file named SteamCMD.bat in the same folder.
Put this in the bat file:
@echo off
steamcmd.exe +force_install_dir C:\servers\hurtworld +login anonymous +app_update 405100 validate +quit
  1. Change the path to where you want your server files to download.
  2. Save the bat file, then right-click it and run it as administrator.

SteamCMD then downloads the server files.

Step 2: Setting up your Hurtworld dedicated server

  1. Open the folder where you downloaded the files.
  2. Right-click the host.bat file, choose Edit, and make it look like this:
Hurtworld.exe -batchmode -nographics -exec "host 12871;queryport 12881;servername <color=#FF0000>SurvivalServers.com</color> HurtWorld;addadmin UID here " -logfile "gamelog.txt"

Save it, then run the bat file as administrator.

Step 3: Port forwarding

Open these ports:

12871 TCP/UDP
12881

You do this in your router or Windows Firewall, depending on how your network is set up. For help with your router: portforward.com.

Step 4: Joining your new server

In Hurtworld, press F1 to open the console, type connect followed by your server's IP address and port (for example connect 203.0.113.25:12871), then press Enter.

Server commands

host	<port>	Hosts a game on the default map, and specified port. Loads the autosave if there is one.	host 12871
host	<port> <map>	Hosts a game on the specified map (nullius is Diemen's Land), and specified port. Loads the autosave if there is one.	host 12871 nullius
host	<port> <map> <save>	Hosts a game on the specified map, and specified port. Loads the specified savegame (relative to the .exe and without an extension)	host 12871 nullius mysave
maxplayers	<num>	Specify the maximum number of players	maxplayers 20
servername	<name>	Set the name of the server, as visible in the server browser.	servername My Server
changelevel	<levelName>	Change, or reload the level.	changelevel nullius
creativemode	<val>	Turn creative mode on and off (free build). Value as 0 for off, 1 for on.	creativemode 1
kick	<steamid> <reason>	Kick a player, with a reason. Enter the player's Steam ID (you can see these with `serverstatus`) to identify them. It matches the start of the ID, so type the whole ID.	kick 76561190000000000 Being a jerk 
saveserver	<saveName>	Save the server state to file, in the .exe directory. Can be loaded (see loadserver)	saveserver mySave
loadserver	<saveName>	Additively load the server state from file, relative to the .exe directory.	loadserver mySave
addadmin	<playerid>	Adds a player as admin to the local server for the current session only	addadmin UID Here
queryport	<port>	Specifies the port to use for communication with the master server, this port must be publicly accessible for the server to show up in the game browser. Default is 12881.	queryport 12882
quit		Quits the game immediately.	quit
quit	<time>	Quits the game after <time> seconds. Will show a nice message to all clients every 30 seconds, for 5 minutes before the server shuts down.	quit 86400

Put any of these commands in autoexec.cfg to run them each time the server starts. Your autoexec file is called autoexec_default.cfg, so take out the _default. First delete its quit 86400 line, or the server shuts down 24 hours after every start.

Admin commands in your game console

itemlist	<name filter>	Shows a list of all items in game (some of them still in development) with item codes	itemlist bow
g	<code> <count>	Gives you an item based on item code. This can cause a great deal of lag. ( g 52 100 )
g	<name> <count>	Gives you <count> of every item thats name contains the string <name>	g ore 255
rcon	<command>	Executes a command on the server as if it was typed directly into its console	
spawn	<prefabname>	This will spawn any networked object 4 meters in front of you. Such as spawn sandstorm
refreshai		Destroys all creatures and resource nodes in the world	
teleport	<who> <toplayer>	Specified by full name, will take player A directly to player B	teleport spencer dazzler