5 Practical Tips for Project Zomboid Server Administrators
For Project Zomboid Build 42.19 server options.
Good administration starts with clear rules and settings you can repeat after a restart. The five sections below cover option names, where they live, what they change, and the tradeoffs players will feel.
Zomboid user-data folder, change one group of settings, restart, and confirm the loaded values in the server log. Do not edit active configuration files while the server is saving.
Server options
Zomboid/Server/<server>.ini
Networking, PVP, backups, safehouses, access, ports, logging, and save frequency.
Sandbox options
Zomboid/Server/<server>_SandboxVars.lua
Loot respawn, zombie population, world progression, item abundance, and other sandbox rules.
If you use Host > Manage Settings, the game edits both groups through its interface. Manual file editing is most useful for dedicated servers; keep the exact capitalization of every key.
1. Use UPnP for automatic internet port forwarding—not for LAN-only play
UPnP=true asks a UPnP-enabled internet gateway to create port-forwarding rules automatically. This is not a LAN-only feature: devices on the same local network normally do not need router port forwarding to reach each other.
| Hosting setup | Suggested UPnP choice | Reason |
|---|---|---|
| Home internet, compatible router, no manual forwarding | UPnP=true |
Lets the server attempt automatic gateway rules. Check the startup log to confirm success. |
| Manual port forwarding already configured | UPnP=false |
Keeps one clear source of truth for router rules and avoids relying on automatic mapping. |
| LAN-only server | Usually UPnP=false |
Local clients connect inside the network; an internet-gateway mapping is unnecessary. |
| Rented host or managed panel | Follow the provider | The provider controls exposed ports. Changing router settings on your own computer will not affect it. |
Build 42.19 defaults UPnP to true. If automatic setup fails, the server falls back to its default ports. Confirm DefaultPort and UDPPort in the INI file instead of restarting without reading the log.
2. Turn your PVP policy into exact settings
“PVP enabled” is not a complete rule. Decide whether combat is disabled, always active, or controlled by the safety system, then publish that policy before players create characters.
PVE-only example
PVP=false
Players cannot hurt or kill each other. Use this for cooperative servers where accidental or hostile player damage is not part of the design.
Safety-controlled PVP example
PVP=true
SafetySystem=true
ShowSafety=true
SafetyToggleTimer=2
SafetyCooldownTimer=3
PVPLogToolChat=true
PVPLogToolFile=true
The safety system lets players enter and leave PVP mode, shows the skull state, and records combat in admin chat and the log file.
With PVP=true and SafetySystem=false, players may damage one another at any time. With the safety system on, damage is possible when at least one participant is in PVP mode—do not advertise it as mutual-consent combat. Defaults in Build 42.19 are PVP on, safety on, toggle timer 2, cooldown 3, and both PVP logging options on. Test the timing before launch and explain it in the welcome message.
You do not need to disable PVP globally to protect a spawn point or trading hub. An authorized administrator can create a Non-PVP Zone from the Admin Panel and define the protected area on the map.
3. Configure loot respawn as a complete rule
“Resource refresh time” is too vague. These sandbox settings control container loot and work together:
| Setting | Meaning | Operational effect |
|---|---|---|
HoursForLootRespawn |
When greater than 0, looted containers in eligible town and trailer-park areas can respawn loot after the configured hours. | 0 disables periodic loot respawn. A nonzero value helps late joiners but reduces long-term scarcity. |
SeenHoursPreventLootRespawn |
When greater than 0, recently visited zones are blocked from respawning for this many in-game hours. | Prevents loot from appearing immediately around active players. |
MaxItemsForLootRespawn |
A container with an item count greater than or equal to this value will not respawn loot. | Stops already-full containers from accumulating more items. |
ConstructionPreventsLootRespawn |
Blocks respawn in buildings where players have built or barricaded. | Protects converted bases from becoming renewable loot sources. |
SafehousePreventsLootRespawn |
Blocks loot respawn inside claimed safehouses. | Reduces safehouse farming and unexpected container changes. |
The Build 42.19 Apocalypse preset uses HoursForLootRespawn=0, SeenHoursPreventLootRespawn=0, MaxItemsForLootRespawn=5, and ConstructionPreventsLootRespawn=true. For a persistent public server, choose a nonzero respawn interval only after deciding how much scarcity, trading, migration, and support for new players you want.
4. Enable recoverable backups and regular saves
Autosaving and backups solve different problems. SaveWorldEveryMinutes saves loaded map areas after the specified real-world interval; rotating ZIP backups give you older recovery points after corruption, a bad mod update, or an administrative mistake.
BackupsCount=5
BackupsOnStart=true
BackupsOnVersionChange=true
BackupsPeriod=60
SaveWorldEveryMinutes=10
BackupsCount=5keeps five rotating files for each backup type (default is 5).BackupsOnStart=truecreates a startup backup (enabled by default).BackupsOnVersionChange=truebacks up when the detected game version changes (enabled by default).BackupsPeriodis measured in real-world minutes. Default is0(periodic backups off); the example uses 60 minutes.SaveWorldEveryMinutesis also measured in real-world minutes. Default is0; the example saves every 10 minutes.
Zomboid folder to another location. Confirm that a backup can actually be opened before relying on it.
5. Define safehouse, raid, and protected-zone rules together
Safehouses affect access, fire, looting, respawn, inactivity cleanup, and loot refresh. Configure them as one policy rather than changing individual checkboxes after disputes begin.
PlayerSafehouse=true
AdminSafehouse=false
SafehouseAllowTrepass=false
SafehouseAllowFire=false
SafehouseAllowLoot=false
SafehouseAllowRespawn=true
SafehouseDaySurvivedToClaim=1
SafeHouseRemovalTime=144
SafehousePreventsLootRespawn=true
This example allows players and admins to claim protected cooperative bases after surviving one in-game day. Non-members cannot enter or loot them, fire cannot damage them, members may respawn there, and an inactive member is removed after 144 real-world hours. It also prevents loot respawn inside the claimed building.
A raid server may deliberately enable trespass, fire, or looting, but those choices should be announced before play. Use Non-PVP zones for spawn and public trading areas, and record administrator-created events or compensation so players can distinguish a published event from hidden intervention.
Administrator launch checklist
- Back up the complete server user-data folder.
- Write down whether each change belongs in
<server>.inior<server>_SandboxVars.lua. - Change one category at a time and restart the server.
- Confirm the loaded values and any UPnP or port result in the startup log.
- Publish PVP, loot respawn, safehouse, reset, mod, and admin-intervention rules where players can read them.
- Test with a non-admin account before opening the server publicly.
For related tasks, see the guides to grant administrator access, add server mods, review server settings, and troubleshoot connection problems.