How to Change Sandbox Settings on Your Project Zomboid Server
Sandbox settings control how the world plays: how many zombies there are, how often loot comes back, how fast you earn XP, how long a day lasts and more. They're kept in servertest_SandboxVars.lua.
Note: Server settings, like the name, password, PvP, safehouses and chat, are in HH Server Admin > Settings instead. See Use HH Server Admin.
Edit the sandbox settings
- Log in to the Game Control Panel and navigate to your Project Zomboid server.
- Stop your server.
- Click Configuration Files, find
servertest_SandboxVars.luaand click Text Editor. - Change the settings you want. The common ones are below.
- Click Save and start your server.
Changes don't touch anyone's progress, or loot already in containers. Fewer or more zombies show up in places nobody has been yet.
Common settings
| Setting | Default | What it does |
|---|---|---|
Zombies | 3 | 1 = Insane, 2 = High, 3 = Normal, 4 = Low, 5 = None |
Distribution | 1 | Where loot is: 1 = mostly in towns, 2 = everywhere |
DayLength | 2 | Real time per in-game day: 1 = 15 minutes, 2 = 30 minutes, up to 8 = 24 hours |
XpMultiplier | 1.0 | How fast everyone earns XP |
LootRespawn | 1 | 1 = never, 2 = every day, 3 = every week, 4 = every month |
StarterKit | false | New players start with a few items |
FoodRotSpeed | 2 | 1 = very fast, 2 = normal, 3 = very slow |
Farming | 2 | Crop speed: 1 = very fast to 5 = very slow |
WaterShut | 2 | When the water goes off: 0 = straight away, 1 = 0 to 30 days, 2 = 0 to 2 months, up to 6 = 6 to 12 months |
ElecShut | 2 | When the power goes off, same choices as WaterShut |
TimeSinceApo | 1 | 1 = the start, 2 = a few weeks later, up to 8 = a year later |
Example: an easier server
Zombies = 4,
DayLength = 4,
XpMultiplier = 3.0,
LootRespawn = 2,
StarterKit = true,
FoodRotSpeed = 3,