Skip to main content

Tuning the Apocalypse: Sandbox Vars


“Sandbox Variables” define the core logic of your world: zombie speed, loot rarity, XP multipliers, and water shutoff dates. Because these are stored in a strict Lua table format (SandboxVars.lua), human errors in manual editing often cause the server to fail to boot.
Reading TimeDifficultyLast Updated
6 minutesBeginnerJanuary 2026

The “Gold Standard” Editing Method

Instead of editing raw code, use the game’s built-in UI to generate a valid configuration file.
  1. Host a Solo Game: Launch Project Zomboid on your PC and select Solo -> Sandbox.
  2. Configure: Use the visual menus to set your preferred Loot Rarity, XP Multipliers, and Zombie Lore.
  3. Save Preset: Look for the “Save Preset” box at the bottom. Name it something distinct like FreakServerVars.
  4. Locate the File: Navigate to your local PC files: C:\Users\YourPCName\Zomboid\Sandbox Presets\FreakServerVars.lua
  5. Upload: Use SFTP to upload this file to your server’s /Zomboid/Server/ directory.
  6. Rename: Match your server’s active name (e.g., rename it to servertest_SandboxVars.lua).
  7. Restart: Boot the server to apply the new rules.

Common Variables list

VariableDescriptionRecommended
XpMultiplierGlobal experience boost.2.0 - 5.0
ZombiesRespawnIf zombies repopulate cleared areas.False (for realism)
LootRespawnIf items reappear in containers.Every 7 Days
ZombieLore.Speed1=Sprinters, 2=Fast Shamblers, 3=Shamblers.2

Support Channels

If you need assistance or have any questions, please contact our support team:

First Month Discount

Use code KB20 at checkout to get 20% off your first month of hosting!

Last Updated: January 2026 | Project Zomboid: Sandbox configured.