Project Zomboid sandbox settings for your server
Tune your Project Zomboid world in SandboxVars.lua: zombie numbers, speed and infection, respawning, loot, water and power shut-off, day length and XP.
The sandbox file decides what kind of apocalypse your group lives in: how many zombies there are and how dangerous they are, how much loot is left, and how long the power stays on. It is servertest_SandboxVars.lua in the Zomboid/Server folder (with your server's name in place of servertest). The names below are from the current stable game, Build 42; Build 41 servers use some older names, mostly for loot.
Most options are numbers that stand for a choice from a list, and the file has a comment above each one listing them. Stop the server before you edit this file, then start it again.
How many zombies
Zombies = 4,
1 Insane, 2 Very high, 3 High, 4 Normal, 5 Low, 6 None. For finer control, the ZombieConfig section has PopulationMultiplier (Normal is 0.65, High 1.2, Low 0.15), a starting multiplier, and PopulationPeakMultiplier with PopulationPeakDay (default 1.5 on day 28) for how the horde grows.
What zombies are like
These sit in the ZombieLore section and change the feel of the server more than anything else:
| Option | Choices |
|---|---|
Speed | 1 Sprinters, 2 Fast shamblers, 3 Shamblers, 4 Random (default). SprinterPercentage sets the share of sprinters when Speed is Random. |
Strength | 1 Superhuman, 2 Normal (default), 3 Weak, 4 Random. |
Toughness | 1 Tough, 2 Normal, 3 Fragile, 4 Random (default). |
Transmission | 1 Blood and saliva (default), 2 Saliva only, 3 Everyone's infected, 4 None. |
Mortality | How fast the infection kills: 1 Instant up to 7 Never; the default 5 is 2 to 3 days. |
A popular gentle setup for new groups is shamblers with Transmission = 4 (no infection from bites). For a hard server, try sprinters or a high sprinter share.
Do zombies come back?
RespawnHours = 0.0,
RespawnUnseenHours = 0.0,
RespawnMultiplier = 0.0,
By default a cleared area stays cleared. Set RespawnHours above 0 to let zombies return to a cell after that many in-game hours, RespawnUnseenHours to require nobody to have seen the area for a while, and RespawnMultiplier (0 to 1) for how much of the population comes back each time.
Loot
Each kind of loot has its own amount from 0 (none) to 4, for example:
FoodLootNew = 0.8,
CannedFoodLootNew = 0.6,
WeaponLootNew = 0.6,
RangedWeaponLootNew = 1.2,
AmmoLootNew = 0.6,
MedicalLootNew = 0.6,
For a long-running world, HoursForLootRespawn refills looted containers in towns after that many in-game hours (0 = never), and MaxItemsForLootRespawn (default 5) skips containers that still hold that many items. In the .ini, SafehousePreventsLootRespawn keeps claimed safehouses from refilling.
Water and power
WaterShut = 2,
ElecShut = 2,
When the taps and the grid stop for good. The default 2 means water goes within 0 to 30 days and power within 14 to 30 days; 9 keeps them on forever, and 1 starts the world without them. Generators then matter: GeneratorSpawning sets how rare they are.
Time and the start
DayLength: how long a full in-game day lasts in real time.1is 15 minutes,3one hour, the default4an hour and a half, and higher numbers go up to27, real time. Longer days suit groups that play in short sessions.StartMonth(default 7, July) andStartDay: a winter start (for example12) makes the first weeks much harder.TimeSinceApo: start some months after the outbreak, with more overgrowth and spoiled food.
Skills and characters
MultiplierConfig = {
Global = 1.0,
GlobalToggle = true,
Global speeds up how fast all skills level; 2.0 is double. With GlobalToggle = false, each skill uses its own multiplier listed below it. CharacterFreePoints gives everyone extra points when making a character, and StarterKit = true spawns new characters with a small bag of basic gear.
Events
Helicopter sets how often the helicopter flies over and draws zombies (1 Never, 2 Once by default, 3 Sometimes, 4 Often), and MetaEvent covers distant gunshots and similar noises (1 Never, 2 Sometimes, 3 Often). As an admin you can also start these yourself; see the admin commands guide.
Before you change a running world
Take a backup of the save folder first. Some choices, such as the start date and how long after the outbreak the world begins, only matter when a new world is created. If you want a clean start with new rules, ask us on Discord to reset the world.
Want a Project Zomboid server?
New Project Zomboid servers are paused for now. Tell us on Discord if you want one, so we know when to bring them back.