Project Zomboid Server Settings
Project Zomboid server settings for Build 42: where the INI and SandboxVars.lua are, what PVP, Open, MaxPlayers and more mean, and which values make sense.
Quick answer: Server settings are in <servername>.ini, world rules (zombies, loot, power, water) in <servername>_SandboxVars.lua. At NexoraHost both are in the folder .cache/Server/ – the server name is the Server Name value from the panel (default: Pterodactyl).
Applies to: Build 42.22.2 (stable since 2026-11-09). Build 42 with multiplayer has been the default branch since 42.20.0 (2026-07-29).
Where are the files?
Our panel starts the server with -cachedir=/home/container/.cache and -servername "<Server Name>". That gives you:
.cache/Server/Pterodactyl.ini server settings
.cache/Server/Pterodactyl_SandboxVars.lua world rules
.cache/Server/Pterodactyl_spawnregions.lua spawn regions
If your server has a different name in the panel, the files are named differently. The .cache folder starts with a dot – it is still visible in the file manager.
Important: if you later change the Server Name variable, the server creates new files and a new world. The old one is kept but no longer loaded. To change the name in the server browser, use PublicName instead.
What the panel sets for you
- Ports: set via
-portand-udpportfrom your port allocation. Do not changeDefaultPortin the INI. - Admin account: user name and password come from the panel variables Admin Username and Admin Password.
- Branch: the Steam Beta Branch variable selects the game version (e.g. empty for stable). Switching requires a reinstall – make a backup first.
How to change settings
- Stop the server in the panel.
- Open
.cache/Server/<servername>.iniin the file manager. - Change a value, e.g.
PVP=false, and save. - Start the server.
The server writes this file itself. If you edit it while the server is running, your changes may be lost.
The most important INI entries
Access and server browser
PublicName– name in the server browser.PublicDescription– description in the server browser;\ncreates a line break.Public– shows the server in the in-game browser (true/false).Password– password to join; empty = no password.Open–true: players can join without a whitelist entry.false: only players an admin has created.MaxPlayers– maximum players excluding admins. Up to 254 are possible since 42.20.3, but the game warns that from about 32 players map streaming problems and desyncs can occur.DropOffWhiteListAfterDeath– removes players from the whitelist after death (useful withOpen=false, prevents new characters).ServerWelcomeMessage– welcome message in chat after login.SteamVAC– enable Valve Anti-Cheat.
Game rules
PVP– players can hurt and kill each other.PauseEmpty– game time stops when nobody is online. Recommended for small groups:true.GlobalChat– global chat on/off.SleepAllowed/SleepNeeded– sleeping allowed or required.NoFire– disables fire (except campfires).AnnounceDeath– announce deaths in chat.DisplayUserName– show names above heads.SpawnPoint– force all new players to spawn at fixed x,y,z coordinates.Faction– players may create factions.
Safehouses
PlayerSafehouse– players and admins can claim safehouses.AdminSafehouse– only admins can claim safehouses.SafehouseAllowTrepass– non-members may enter safehouses without an invite.
Loot and saving
HoursForLootRespawn– after X hours, containers that were looted refill (0 = never).MaxItemsForLootRespawn– containers with this many items or more do not respawn loot.SaveWorldEveryMinutes– loaded parts of the map are saved after this many real-time minutes.ResetID– marks a soft reset; clients with a different ID must create a new character. Only change it when you deliberately reset the world.
Mods and remote access
Mods,WorkshopItems,Map– see install mods.RCONPort/RCONPassword– RCON remote console. Use a strong password; ask support if you need an additional port.
World rules: SandboxVars.lua
<servername>_SandboxVars.lua contains the sandbox options: zombie count and behaviour, loot rarity, day length, start month, when power and water shut off, XP multipliers and much more.
The file is long and easy to break. The safest way:
- In the game's main menu open Host → Manage Settings and set the sandbox options comfortably in the menu.
- Take the generated
<name>_SandboxVars.luafrom your localZomboid/Server/folder (on WindowsC:\Users\<name>\Zomboid\Server\). - Save it on the server under the right name, e.g.
Pterodactyl_SandboxVars.lua.
Some sandbox values, such as the start month, only take effect when a new world is created. Back up your save before you restart a world.
Recommendations
- Server for friends:
Public=false, setPassword,PauseEmpty=true. - Public server:
Public=true,Open=true, a clearPublicDescription, a welcome message with rules. - Whitelist server:
Open=false, create players by command (see server commands).
Related guides
Servers at NexoraHost: Rent a Project Zomboid server · Manage: panel.nexorahost.de (Frankfurt · 1 Tbit/s DDoS · 99.9% uptime)