With the right configuration, you can make your Terraria game server exactly the way you want it: a custom world with the right size and difficulty, a password for your friends, and a welcome message for everyone who joins. In this guide, we’ll show you which settings are available, where to find them in ZapX, and how to switch worlds.
Terraria reads its settings from the serverconfig.txt file in your server’s config folder. You don’t need to edit this file manually: you can find all the settings in ZapX under Configuration > Startup parameters.
Your server completely rewrites serverconfig.txt from the startup parameters every time it starts. Any changes made directly to the file will be lost the next time the server starts. Always change your settings in the Startup Parameters.
After you save your changes, ZapX will offer to restart the server. Your changes will only take effect after the restart.
| Startup parameter | Description |
|---|---|
| World file name | Name of the world file in the worlds folder, without the folder path or .wld extension. Default: world |
| World name | Name of the world in the game. Only used when a new world is created. Default: ZapX Terraria World |
| Automatic world generation | Size of a new world if the world file doesn’t already exist: 1 = small, 2 = medium, 3 = large, 0 = disabled. Default: 2 |
| Max. players | The number of players who can play on your server at the same time. Terraria allows values from 1 to 255. Default: 10 |
| Message of the day (MOTD) | Message players see when they join. Default: A ZapX Terraria Server |
| Server password | Password required to join. Leave blank for an open server. |
| Difficulty | Difficulty of a new world: 0 = Classic, 1 = Expert, 2 = Master, 3 = Journey. Default: 0 |
| Language | Language used for server output in the console, such as en-US or de-DE. Default: en-US |
| Secure mode | 1 enables Terraria’s additional cheat protection; 0 disables it. Default: 1 |
| World seed | Seed for a new world. Leave blank for a random seed. |
| Additional startup parameters | Additional Terraria startup parameters that your server appends when it starts. Default: blank |
World name, Automatic world generation, Difficulty, and World seed only apply when a new world is created. An existing world keeps its size, difficulty, and seed, even after a restart.
You can only enter a Journey world (3) with a Journey character. Journey characters can only play in Journey worlds. You’ll need a regular character for Classic, Expert, and Master worlds.
The available Language values include en-US (English), de-DE (German), fr-FR (French), es-ES (Spanish), it-IT (Italian), pl-PL (Polish), pt-BR (Portuguese), ru-RU (Russian), and zh-Hans (Chinese).
ZapX sets the port, world folder, and ban list for your server, so you don’t need to change these values.
Your worlds are stored in the worlds folder. The World file name startup parameter determines which world your server loads. If you accidentally include a path or the .wld extension, ZapX automatically removes it when you save.
- Set Automatic world generation and Difficulty, and, if you want, set the World seed and World name.
- Enter a new name under World file name, for example
world2. - Save your changes and restart your server.
If your server can’t find a file with that name, it creates a new world. Your previous world remains in the worlds folder, and you can switch back to it at any time by entering its file name again.
If Automatic world generation is set to 0, your server won’t create a new world. Leave it set to 1, 2, or 3 if you want to create one. Depending on its size, world creation takes a few minutes. You can check its progress in the Console.
- On Windows, your local Terraria worlds are usually in the
Documents\My Games\Terraria\Worldsfolder. - Stop your server.
- In the Savegames tab, upload your world’s
.wldfile to theworldsfolder. - Under World file name, enter the file name without
.wld, for exampleMyWorldforMyWorld.wld. - Start your server.
For instructions on downloading and backing up worlds, see our guide Managing savegames.
You can also change some settings while the server is running in the Console tab, for example with password <new password> or motd <new message>. However, these changes only last until the next startup because your server then rewrites serverconfig.txt from the startup parameters. To change the password and message permanently, use the Server password and Message of the day (MOTD) fields.
Use save to save the world, or exit to save it and shut down the server. For more console commands, such as playing, kick, and ban, see Becoming a server admin (TShock).
Under Additional startup parameters, you can enter other Terraria server startup parameters that don’t have their own fields. For example:
-disableannouncementbox
This disables the text messages sent by an Announcement Box when it’s triggered by wires. Separate multiple parameters with spaces. You can’t pass values that contain spaces here.
Don’t enter values here that already have their own startup parameters, such as player count, password, or world. Only use this field if you know exactly what a parameter does.
You can’t permanently set options that are only available in serverconfig.txt, such as Journey permissions (journeypermission_…), because your server rewrites the file every time it starts.
The standard Terraria server doesn’t have admin accounts or its own whitelist. You can protect access with the Server password, and remove and ban unwanted players through the Console. For instructions, see the guide Whitelist.
If you need admin accounts with permissions or a proper whitelist, install TShock on your server. ZapX automatically detects a TShock installation in your server folder and starts TShock instead of the standard server. ZapX also uses the world, player count, and server password from the startup parameters with TShock. TShock settings are stored in the tshock folder. To learn how to install TShock and set yourself up as an admin, see Becoming a server admin (TShock).
You can send recurring messages to your players, such as rules or a Discord reminder, using a schedule. For instructions, see Automated server messages.
You can find every command for your Terraria server in our overview of Terraria server commands.
Your Terraria server is now set up just the way you want it. For instructions on connecting to your server, see Connecting to the server. If something isn’t working properly, our guide Common issues can help. If you have any other questions, our support team is available every day! 🙂