Get started

Free trial Try any game free for 3 days. No card needed. Start a free trial Start a free trial

Game servers

All games

Guides / Project Zomboid / Server and sandbox settings

Project Zomboid Config Editor: change server settings

Open the Config Editor to change your Project Zomboid server ini and sandbox settings, search them and Save. Changes apply after a restart. Spawn files: Files.

Updated , checked on Project Zomboid Build 42.21

Open Config Editor on your server’s page. It shows the two settings files of a Project Zomboid server as rows you can change: the server ini and the sandbox file. Change a row, choose Save, then restart the server. Saved changes apply after a restart.

The two files

The Config Editor has one tab for each file. Both are named after the Server Name on the Startup page, which is servertest unless you changed it.

  • .cache/Server/<Server Name>.ini is the server ini. It holds the name, joining rules, chat, voice, safehouses, saving and anti-cheat. See the server ini explained.
  • .cache/Server/<Server Name>_SandboxVars.lua is the sandbox file. It holds the world rules: zombies, loot, weather, time and vehicles. See the sandbox settings.

PZwiki lists both files in the game’s Server folder. The game creates them the first time the server starts. Before that, the page says the file does not exist yet.

The Config Editor with the server ini tab chosen, the Search box, Discard, Save and the restart note
  1. Server ini tab
  2. Sandbox file tab
  3. Search
  4. Save
  5. Restart note

The tabs (1 and 2) are named after the files. Use Search (3) to find a row, Save (4) to keep your edits, and read the note under the tabs (5): saved changes apply after a restart.

Change a setting

  1. Open Config Editor.
  2. Choose the tab of the file you want.
  3. Find the row. Each row shows its label, the game’s key in small code type, and a line of help. Type in the Search box to narrow the rows. If nothing matches, the page says “No settings match your search.”
  4. Change the value. A switch turns an option on or off. A number box keeps to the range the game allows. A list shows the game’s own choice names.
  5. Choose Save. To throw your edits away, choose Discard.
  6. Restart the server. When the server is running, the page says “Saved. Restart the server to apply the changes.” and offers Restart now. When it is stopped, the changes apply when it starts.

You can edit both files in one visit, but Save saves the file you are looking at. You can change rows of several cards first. A card shows how many of its rows you changed.

If you leave the page with unsaved changes, the panel asks first.

The groups

In the server ini the rows with their own name sit in these groups: Server, Joining, Gameplay, Safehouses and factions, Saving and backups, Logs, Discord, Managed and Mods.

Every other key in the ini is there too. They wait in a card called Advanced, because most servers never change them. Choose Show them to open it. A search always shows them. At the bottom of the page, Edit the whole file as text opens the file as plain text.

The Advanced card found by a search, with the anti-cheat rows and Edit the whole file as text
  1. Advanced card
  2. Edit the whole file as text

In the sandbox file every option is grouped by the table it sits in. Options at the top of the file are in Sandbox. Others are in cards such as Zombie lore, Zombie config, Map, Basement and Multiplier config.

A row the panel has no special name for is labelled from its key, split into words: HoursForLootRespawn shows as Hours for loot respawn. Its help text is the comment the game writes above the key.

Rows you cannot change

Some rows are greyed out.

  • Game port, Direct connection port, UPnP, RCON port and RCON password (group Managed). The panel writes these every time the server starts, from the server’s own ports and password. A change would be overwritten.

  • Mods, Workshop items and Maps. They are written by the Mods page, which keeps the mod list, the Workshop items and the maps in step. A row has an Open Mods button.

  • Command channel (in Discord). The game runs every message in that channel as a console command, so anyone who could post there would control the server. The panel empties it at every start. The chat and log channels are fine.

The locked Mods, Workshop items and Maps rows with the Open Mods button
  1. Workshop items
  2. Maps
  3. Open Mods

What it does not edit

The Config Editor does not edit the spawn regions or the spawn points. They are separate files in the same Server folder: <Server Name>_spawnregions.lua and <Server Name>_spawnpoints.lua. Open Files, then the .cache folder, then Server, and edit them there with the server stopped. For one fixed start position for every new player, use Fixed spawn point (SpawnPoint) in the ini instead.

By hand

Everything above is also possible in Files. Stop the server, open .cache/Server/, edit the file and choose Save File. The Config Editor keeps values inside the ranges the game allows. Files also refuses to save a sandbox file the game cannot read.

If it does not work

  • ”… does not exist yet.” Start the server once. The game creates the file at its first start.
  • “Could not read …” Wait a moment and open the tab again.
  • “You can see these settings but not change them.” Your role may not allow editing files.
  • “The server is starting or stopping.” Wait until it has finished, then save.
  • A change did not take effect. The server has not restarted since you saved.
  • The sandbox file stopped the server. At every start the panel puts back the last sandbox file that read. The Crashes page then names the setting.

More about the game: Project Zomboid servers.

Sources: pzwiki.net: Server settings, pzwiki.net: Custom Sandbox

Project Zomboid serversAll Project Zomboid guides