Gamehost

Project Zomboid server settings

Where the Project Zomboid server config lives, which fields you change most often, how sandbox world rules work and which settings to handle with care.

Gamehost team·3 min read·Updated:
Project Zomboid serverPlans from 4 GB RAM

Server ready a moment after payment. You can change the plan in the panel at any time, your world stays.

Short answer

The server settings are in the .cache/Server folder, in files named after the server name from Startup parameters (by default Pterodactyl). Server rules such as the password, player limit and PVP are in the .ini file, world rules such as zombies, loot and weather are in _SandboxVars.lua. Edit both in Files while the server is stopped.

Two files, two different things

The server settings go into the .cache/Server folder, and the file names come from the server name in Startup parameters:

FileWhat it controls
Pterodactyl.inipassword, player limit, ports, mods, PVP, backups
Pterodactyl_SandboxVars.luaworld rules: number of zombies, their strength, loot, weather, electricity
Pterodactyl_spawnpoints.luathe places where new players appear
Make changes while the server is stopped. Zomboid saves its own version of the config when it shuts down, so edits made during play get overwritten.

The fields you change most often

FieldWhat it does
Passwordserver password, empty means no password
Openwhen set to false, only accounts added by an admin can join
MaxPlayersplayer limit
PVPwhether players can hurt each other
PauseEmptywhether time in the world stops when nobody is online
SaveWorldEveryMinuteshow often, in minutes, the world is saved
BackupsCount and BackupsOnStarthow many backups to keep and whether to make one on every start
ServerWelcomeMessagegreeting shown after joining the server

The server name, the admin username and password and the player limit are also in Startup parameters. More about joining, passwords and the whitelist is in Project Zomboid server for friends.

World rules: the sandbox

The world rules file covers everything that in single player you set with sliders before starting: the number and strength of zombies, how fast they respawn, the amount of loot, the length of the day, when power and water shut off.

Some of these settings only apply to newly generated terrain. Changing the amount of loot does not change the contents of houses someone has already visited, and a change to zombie respawning kicks in gradually, as players move into new areas.

Settings to handle with care

  • The server name. The names of the files and the save folder come from it. Changing the name means the server generates a new, empty world, and the old one stays on the disk under the previous name.
  • Extra maps from mods. Adding them to a world you have already played is possible, removing them leaves holes in the terrain.
  • Starting map size. Terrain that has been generated once cannot be rebuilt without deleting the save.
Before you touch any of the above, download the .cache/Saves/Multiplayer folder to your computer. It takes a few seconds. You can also take a backup in the Server backups tab, see Backups.

How to set up the server from scratch is in How to set up a Project Zomboid server. Ready to start? See Project Zomboid server hosting.

FAQ

In the .cache/Server folder, and the file name comes from the server name set in Startup parameters.

Set the Open field to false. Then only accounts added earlier by an admin can join the server.

Because they were made while the server was running. Zomboid saves its own version of the file when it shuts down and overwrites manual edits.

Some do, but settings for loot and terrain only apply in areas players have not visited yet.

Your own Project Zomboid server

Plans from 5.99 € a month, set up in a few minutes and managed from one panel.

See plans