Configuring Your Terraria Server (serverconfig.txt)
One of the primary methods of configuring a Terraria server is using a config file called
serverconfig.txt. The Game Settings tab in Nodepanel here at Nodecraft will write directly to this file.
You also can manually edit this file within the File Manager, if that is your preference.
Configuring Your Server
The following is a list of the current setting the game allows as of the time of writing this article. You can always reference the Terraria Wiki for further information.
world=C:\Users\Defaults\My Documents\My Games\Terraria\Worlds\world1.wld - Loads a world and automatically starts the server.
autocreate=3 - Creates a new world if none is found.
World size is specified as:
and 3 (large)
seed=AwesomeSeed - Sets the world seed when using autocreate.
worldname=World - Sets the name of the world when using autocreate.
difficulty=0 - Sets world difficulty when using -autocreate.
maxplayers=8 - Sets the max number of players allowed on a server.
The value must be between 1 and 255.
port=7777 - Set the port number.
password=p@55w0rd* - Set the server password.
motd=Please don’t cut the purple trees! - Set the message of the day.
worldpath=C:\Users\Defaults\My Documents\My Games\Terraria\Worlds\ - Sets the folder where world files will be stored.
banlist=banlist.txt - The location of the banlist file.
Defaults to "banlist.txt" in the working directory.
secure=1 - Adds additional cheat protection.
language - Sets the server language from its language code.
upnp=1 - Automatically forward ports with uPNP.
npcstream=60 - Reduces enemy skipping but increases bandwidth usage. The lower the number, the less skipping will happen, but more data is sent.
0 is off.
priority=1 - Default system priority.
2: Above Normal
4: Below Normal
Journey Mode power permissions for every individual power.
0: Locked for everyone
1: Can only be changed by the host
2: Can be changed by everyone.
If you ever wish for the server to ignore a specific setting, you can add a comment character (this is an overall coding term) at the beginning of each line, and the server will ignore that line. For Terraria, it uses the number sign
Here’s a screenshot of an example file with a mixture of commented-out lines, and also some active. It’s pretty easy to tell which is which within the Nodepanel, as the commented-out lines are greyed out.