Web Analytics Made Easy - Statcounter

Project Zomboid: SandboxVars.lua Checker

A sandbox setting that keeps resetting was rejected by the server: the value is outside the range the game accepts, the name is misspelled or belongs to the other build, or the file does not run at all. Paste your SandboxVars.lua and see which, line by line, with the default the server falls back to.

Checked in your browser against every option Build 42 and Build 41 define, with the limits and defaults the game itself uses. Your file is never uploaded.

What the server does with your file

  1. It runs the file as Lua when it starts. If the file does not run, the server prints Exiting due to errors loading with the file's path and quits at "Loading Sandbox Vars". A missing comma between two settings is the usual cause.
  2. It checks each value against that option's range. A value outside it is skipped and logged, for example ERROR: IntegerConfigOption.setValue() "Zombies" 9 is greater than max=6, and the option keeps its default. Text where a number belongs is skipped the same way.
  3. Whole-number options drop the decimals. SprinterPercentage = 33.9 is read as 33. Choice options (Zombie Count, Speed and the like) take the choice's number, starting at 1.
  4. It writes the file back after every start. The copy it writes holds the values it actually uses, so a rejected value comes back as the default, a name it does not know disappears, and any option you left out is written in with its default. This is why an edit can seem to undo itself. It also writes the file when an admin changes sandbox options from the in-game admin panel.
  5. VERSION decides which conversions run. Build 42 writes VERSION = 6, Build 41 writes VERSION = 5, and the server only reads it in capitals. A file without it is treated as the oldest format, so on Build 42 Day Length moves up one choice (4 becomes 5, which is 2 hours instead of 1 hour 30 minutes).

So the safe way to change a setting: stop the server, edit Zomboid/Server/<servername>_SandboxVars.lua (servertest_SandboxVars.lua for the default name), check it here, then start the server and check again: the file it wrote back shows what it kept.

Building a file from scratch is the settings generator. A server that still will not start after the file reads clean is a job for the log analyzer. Rather have it hosted? Run a Project Zomboid server with Supercraft.

FAQ

Why do my Project Zomboid sandbox settings keep resetting?

The server rejected the value. Each option has a range, and a value outside it is skipped: the server logs a line such as ERROR: IntegerConfigOption.setValue() "Zombies" 9 is greater than max=6 and keeps the default. Every time it starts it then writes the file back from the values it holds, so the rejected value is replaced by the default, a name it does not know (a typo, or an option from another build) disappears, and your edit looks as if it undid itself.

Where is SandboxVars.lua on a dedicated server?

In the Server folder of the Zomboid user folder, named after the server: Zomboid/Server/servertest_SandboxVars.lua for the default server name servertest. On Windows that is %USERPROFILE%\Zomboid\Server, on Linux ~/Zomboid/Server under the account that runs the server. The server reads it only when it starts.

My server stops at Loading Sandbox Vars. Why?

The file did not run as Lua. The server prints Exiting due to errors loading followed by the file's path and quits. The usual cause is a missing comma between two settings; others are a missing closing brace, text without quotes, curly quotes pasted from a web page, and a byte-order mark at the start of the file. The checker names the line.

Can I use a Build 41 SandboxVars.lua on Build 42?

It loads, but not everything carries over. Build 42 converts a VERSION = 5 file: Day Length values above 3 move up one choice, because Build 42 added a 1 hour 30 minute day. Options Build 42 does not have are dropped, among them XpMultiplier (now MultiplierConfig.Global) and the old loot choices such as FoodLoot (now FoodLootNew, Perishable Food, a number from 0 to 4 instead of a 1 to 7 choice).

Is my file uploaded?

No. The file is read and checked in your browser. The page downloads the option table once and sends back only anonymous usage counts, never the file or any of its values.

This tool: v1.4 · updated 4 Dec 2026

Thanks to The Indie Stone for creating Project Zomboid (https://projectzomboid.com/), which made this possible. This is an unofficial fan production for non-commercial purposes made under the Indie Stone Terms.