Advertisement

Generate a Terraria serverconfig.txt

Terraria's config file is easy to write and just as easy to have ignored, since the server will not go looking for it unless told to.

Visual Settings

key value Format
Identity

Message shown to players on join.

Game port. Note this is not the TShock REST port, which is separate and is what external status tools need.

Gameplay

0 classic, 1 expert, 2 master, 3 journey.

World

World name, used when autocreate generates a new one.

Full path to an existing .wld file. Pointing at a world that does not exist while autocreate is on quietly generates a new one instead.

World size to generate if none is found: 1 small, 2 medium, 3 large. Larger worlds are the main driver of memory use.

World generation seed. Only used when a world is created.

Players & Access

Join password.

Slot limit.

Enables basic cheat protection.

Performance

Limits NPC update broadcasts to reduce bandwidth.

Process priority, 0 highest. Leave at 1 unless the machine is doing other work.

serverconfig.txt

worldname=MyWorld
world=
autocreate=2
difficulty=0
seed=
motd=Welcome!
password=
maxplayers=8
port=7777
secure=true
npcstream=60
priority=1

Advertisement

The serverconfig.txt format

Nothing but key=value lines, unquoted. Two settings do most of the work — the path to the world and autocreate — and together they can bite: if the path names a world that is not there and autocreate is switched on, you get a newly generated world rather than your save, with no warning.

Advertisement

The mistake that wastes an evening

Unless the launch command explicitly passes a config argument naming this file, the server never opens it. Launched plainly, it walks you through its own interactive setup instead. That is the whole story behind 'I edited the config, restarted, and nothing changed'.

Rather not run the server yourself?

These tools are free and funded by the two hosting services we run. If you want a server that is already set up, here they are.

Advertisement