With the right configuration, you can make your Project Zomboid game server exactly what you have in mind: its own name in the server list, open to everyone or just your group, with or without PvP, and with gameplay rules that suit you. In this guide, we’ll show you which settings are available, where to find them in ZapX, and what you can adjust directly in the servertest.ini and servertest_SandboxVars.lua files.
Project Zomboid stores its settings in two files in the Server folder:
servertest.ini: Server settings such as name, password, player count, PvP, whitelist, mods, and RCON.servertest_SandboxVars.lua: Your world's gameplay rules, such as zombies and loot.
You don’t need to change the most important values in servertest.ini by hand: you can find them in ZapX under Configuration in the Startup parameters tab. Each time your server starts, it writes the values from the startup parameters to the corresponding lines in servertest.ini. All other lines and the entire servertest_SandboxVars.lua file are left unchanged. You can edit both files in the Configuration tab or in the Files tab under the Server folder.
Always change values that are available as startup parameters in the Startup parameters, not directly in servertest.ini. Any changes made to the file will be overwritten with the startup parameter values the next time the server starts.
After you save, ZapX will prompt you to restart the server. Your changes will only take effect after the restart.
| Startup parameter | Meaning |
|---|---|
| Displayed server name | The name of your server in the server list (PublicName). Default: ZAP Project Zomboid |
| Server description | A short description of your server in the server list (PublicDescription). Default: Project Zomboid server powered by ZapX |
| Server password | The password required to join (Password). Leave blank for a server without a password (default). |
| Publicly visible | Shows your server in the public server list (Public). Default: enabled |
| Open server | Enabled: players can join without being added to the whitelist. Disabled: only players with an account created by an admin can join (Open). Default: enabled |
| Max. players | How many players can play on your server at the same time (MaxPlayers). Default: 10 |
| PvP | Allows players to fight each other (PVP). Default: enabled |
| Pause without players | Game time stops while nobody is online (PauseEmpty). Default: enabled |
| Enable VAC | Enables or disables Steam's anti-cheat protection (VAC) (SteamVAC). Default: enabled |
| Enable RCON | Enables or disables the remote console (RCON) (RCONEnabled). Default: enabled |
| Profile name | The name of the server profile. It determines the file names and the world; see below. Default: servertest |
You don’t configure Steam Workshop mods in the startup parameters, but in the Workshop tab. See Install Mods to learn how.
Project Zomboid uses two different names:
- Displayed server name: The name players see in the server list. You can change this at any time.
- Profile name: The internal name of your server profile. It determines the file names and the world.
With the default profile name servertest, your server uses these files and folders:
| File or folder | Contents |
|---|---|
Server/servertest.ini | Server settings |
Server/servertest_SandboxVars.lua | The world's gameplay rules |
Saves/Multiplayer/servertest | The world, including all buildings, items, and player progress |
db/servertest.db | Player accounts and whitelist |
If you change the Profile name, your server will start with default settings and a new world. The previous profile and all its files will remain under its name and will be available again as soon as you enter the old name. If you only want to change the name shown in the server list, use Displayed server name.
A slash (/) is not allowed in the profile name. If you chose a different profile name, the file names will match it, for example Server/MyServer.ini and Server/MyServer_SandboxVars.lua. In the following sections, we use the default name servertest.
See Manage Savegames to learn how to back up or download your world, or upload your own.
The servertest_SandboxVars.lua file contains your world's sandbox settings, such as how many zombies there are and how much loot you find. Project Zomboid creates the file with its default values the very first time your server starts. ZapX does not overwrite anything in it, so any changes you make there will be preserved.
To change the gameplay rules:
- Stop your server.
- Open the
Server/servertest_SandboxVars.luafile in the Configuration tab or the Files tab. - Change the values you want and save the file.
- Start your server again.
Project Zomboid only uses the world's start date (StartYear, StartMonth, StartDay, and StartTime) when a new world is created. An existing world keeps its date, even after a restart. For a new start date to take effect, you need a new world: back up the old world, remove the Saves/Multiplayer/servertest folder while the server is stopped, and restart the server, or choose a new Profile name.
Download the servertest_SandboxVars.lua file in the Files tab before making major changes. That way, you can always restore the previous version.
Your server overwrites these lines every time it starts, so making manual changes to them won’t have any effect:
- All values from the startup parameters:
PublicName,PublicDescription,Password,Public,Open,MaxPlayers,PVP,PauseEmpty,SteamVAC, andRCONEnabled - The ports
DefaultPort,UDPPort, andRCONPortassigned to your server by ZapX RCONPasswordWorkshopItemswith the list from the Workshop tab
You can freely edit all other lines in servertest.ini, such as GlobalChat (turn global chat on or off) or VoiceEnable (turn in-game voice chat on or off). Your server will preserve them each time it starts.
The Mods line determines which mods Project Zomboid loads and in what order. Many Workshop items include multiple mods, for example, different variants. Here’s how your server handles the line:
- If you add an item in the Workshop tab, your server appends its mod IDs to the end of
Modsthe next time it starts. - If you remove an item, your server removes its mod IDs from
Mods. - As long as the Workshop list doesn’t change,
Modsstays exactly as you entered it. You can remove variants you don’t need or change the loading order there.
Put any mods you upload yourself in the mods folder and add their mod IDs (from the mod's mod.info) to the Mods line yourself, separated by semicolons.
Your server generates an RCON password at random on the first start and saves it in the generated-secrets/rcon_password file. Each time it starts, it writes the password to servertest.ini as RCONPassword. If you want to use your own password, replace the contents of this file while the server is stopped, then start the server again. See RCON to learn how to connect using an RCON program. You can find the RCON port in your server's Overview.
Your server also creates an internal admin account named admin on the first start. See Become an Admin to learn how to give your own player account admin rights. To learn how to set up a whitelist using Open server and accounts, see Whitelist.
In the Console tab, the showoptions command displays the current server options. Use changeoption <option> <new_value> to change an option at runtime, or reloadoptions to have your server reload the options from servertest.ini. Startup parameter values work the same way here: the next time your server starts, it will restore the values from the startup parameters.
Your Project Zomboid server is now set up just the way you want it. See Become an Admin to learn how to give yourself admin rights. If something isn’t working as it should, our guide Common Issues can help. If you have any other questions, our support team is available every day! 🙂
