Terraria: server config, worlds, and tModLoader mods
Set world name, difficulty, MOTD and password on the Startup tab, use serverconfig.txt for the rest, bring your own world, and add mods with tModLoader.
A Terraria server gets its main settings (world name, difficulty, MOTD, password) from the Startup tab, and everything else from serverconfig.txt in the Files tab. This guide shows which goes where, how to bring your own world, and how to add mods with tModLoader.
World name, difficulty, MOTD and password: use the Startup tab
Your server rewrites these settings from the Startup tab every time it starts. If you change them in serverconfig.txt instead, they jump back to the Startup values at the next restart, which can look like your world was reset.
- Open your server and click Startup.
- Change the values you want and save.
- Restart the server from the Console tab. The new values apply from the next start.
| Startup setting | What it does |
|---|---|
| World Name | The world to load. If no world with that name exists yet, a new one is created. Up to 20 characters. |
| World Size | Size of a newly created world: 1 small, 2 medium, 3 large. |
| Difficulty | 0 Classic, 1 Expert, 2 Master, 3 Journey. Applies when a new world is created. |
| MOTD | The message players see when they join. |
| Password | Set a value to make the server private. Leave it empty for an open server. |
| World Seed | Optional seed for a newly created world. |
The player limit and the game port come from your plan and allocation, so you don't need to set them.
tModLoader servers use the same Startup settings (the password is called Server Password there). TShock servers take the World Name from the Startup tab and keep their own settings, including the server password, in
tshock/config.jsonin the Files tab.
Everything else: serverconfig.txt in the Files tab
Settings that are not on the Startup tab stay as you set them in the file.
- Click Files and open
serverconfig.txtin the root folder. - Change values, save, then restart from the Console tab.
Useful ones include secure=1 (built-in cheat protection), banlist, priority and the Journey mode journeypermission_... lines. The lines for world name, world file, difficulty, size, seed, MOTD, password, player limit, port and npcstream are overwritten at every start, so change those on the Startup tab instead.
Worlds
Worlds are .wld files in saves/Worlds. On TShock the console shows the world path when the server boots.
- New world: set World Name, World Size, Difficulty and, if you like, World Seed on the Startup tab, then restart. The server creates the world on the first start.
- Upload an existing world: upload your
.wldfile (and its.twldcompanion on tModLoader) tosaves/Worldswith the Files tab or SFTP. Then set World Name on the Startup tab to the file name without.wldand restart. See File Manager & SFTP.
Add mods with tModLoader
Vanilla Terraria servers can't run mods. tModLoader is a separate server type for that.
- Make sure your server runs tModLoader. You can pick it when you order, or switch on the Change Runtime tab. Take a backup first: mods and worlds are not interchangeable with vanilla.
- Set up your mod list in single-player first, with mods from the in-game Mod Browser.
- Upload the mods (
.tmodfiles) andenabled.jsonto the server'smodsfolder, then restart. - Every player must have the same mods enabled to join.
Common issues
- Settings reset after a restart: you changed world name, difficulty, MOTD or password in
serverconfig.txt. Set them on the Startup tab instead. - My world is gone after a restart: the World Name on the Startup tab doesn't match your world, so a new one was created. Your old
.wldfile is still insaves/Worlds: set World Name to its name and restart. - Changes ignored: you didn't restart after saving.
- "Password incorrect": a password is set on the Startup tab. Share it, or clear it and restart.
- World won't load: the World Name doesn't match the uploaded
.wldfile name, or the.twldcompanion is missing on tModLoader. - Mods don't work: the server runs vanilla, not tModLoader, or players don't have the same mods enabled.
Still stuck? Open a support ticket and we'll take a look.