Terraria serverconfig.txt generator

Terraria's config file is simple to write and easy to have ignored, because the server does not look for it unless you tell it 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=SpawnlyWorld
world=
autocreate=2
difficulty=0
seed=
motd=Welcome!
password=
maxplayers=8
port=7777
secure=true
npcstream=60
priority=1

How serverconfig.txt syntax works

Plain key=value lines with no quotes. The values that matter most are the world path and the autocreate setting, and they interact: pointing at a world that does not exist combined with autocreate enabled quietly generates a new one instead of loading the save you meant.

The mistake that costs people hours

The server only reads this file if it is launched with an explicit config argument pointing at it. Started without that, it ignores the file completely and drops into its interactive setup prompts instead — which is why so many people edit the config, restart, and find nothing has changed.

Support & Help