Skip to content
Skyes Hosting

Project Zomboid Server Configuration Guide

The Project Zomboid server settings files (.ini, SandboxVars.lua, spawnregions, spawnpoints), the most commonly changed settings, and how to apply changes safely.

project-zomboidWritten by 5 min read0 viewsUpdated

Project Zomboid Server Configuration Guide

Project Zomboid server settings are split across several files. The .ini file controls the server (name, slots, PvP, mods), while SandboxVars.lua controls the gameplay rules (zombie count, speed, loot, time). This guide explains each file and the settings people change most.

In short: stop the server → open Files → .cache/Server/ → edit <server-name>.ini or <server-name>_SandboxVars.lua → save → start the server.

Settings files

They all live in .cache/Server/, prefixed with the server name, for example servertest:

FileControls
<server-name>.iniServer identity, slots, password, PvP, safehouses, chat, mods, backups
<server-name>_SandboxVars.luaGameplay rules: zombies, time, loot, power and water, XP
<server-name>_spawnregions.luaTowns players can choose to spawn in
<server-name>_spawnpoints.luaExact coordinates where players spawn

If you change the server name, the server creates new settings files with default values. The old files stay and can be used again by switching back to the old name.

Key settings in the .ini file

Each line is Name=Value, with no spaces around =.

SettingExampleWhat it does
PublicNamePublicName=Skyes SurvivalServer name in the server list
PublicDescriptionPublicDescription=A relaxed serverServer description
PublicPublic=trueShows the server in the public list
PasswordPassword=secretJoin password. Leave empty for an open server
MaxPlayersMaxPlayers=16Player limit. Do not exceed your plan's slots
OpenOpen=truetrue: anyone can create an account. false: only accounts created by an admin (whitelist)
PVPPVP=truePlayers can attack each other
PauseEmptyPauseEmpty=trueWorld time stops when the server is empty
GlobalChatGlobalChat=trueEnables global chat
ServerWelcomeMessageServerWelcomeMessage=Welcome!Message shown when players join
SaveWorldEveryMinutesSaveWorldEveryMinutes=15Autosave every N minutes. 0 = off
DropOffWhiteListAfterDeathDropOffWhiteListAfterDeath=falseDeletes the account when the character dies
Mods / WorkshopItemssee the mod guideMod list
MapMap=Muldraugh, KYMap to load
BackupsOnStart / BackupsPeriod / BackupsCountBackupsCount=5Automatic backups

Do not change DefaultPort or UDPPort. The panel already sets the server ports from the allocation in the Network menu, and values in the file are overridden.

Mod settings are covered in Installing Project Zomboid Mods.

Key settings in SandboxVars.lua

Many sandbox settings are option numbers, not real amounts. For example, Zombies = 4 means the 4th option (Normal), not 4 zombies.

SettingValuesWhat it does
Zombies1 Insane, 2 Very High, 3 High, 4 Normal, 5 Low, 6 NoneZombie count
Distribution1 urban focused, 2 uniformZombie spread
ZombieRespawn1 High, 2 Normal, 3 Low, 4 NoneHow fast zombies respawn
DayLength1 = 15 min, 2 = 30 min, 3 = 1 hour, 4 = 1.5 hoursLength of an in-game day
StartMonth1–12Starting month (default July)
WaterShut / ElecShutfrom 1 (instant) to 9 (never)When water and power shut off
FoodRotSpeed1 very fast – 5 very slowHow fast food spoils
HoursForLootRespawn0 = neverHours until loot respawns

The ZombieLore section holds zombie traits, such as Speed:

ZombieLore.SpeedMeaning
1Sprinters
2Fast Shamblers
3Shamblers (slow walkers)
4Random

An example excerpt:

SandboxVars = {
    Zombies = 4,
    DayLength = 3,
    StartMonth = 7,
    ZombieLore = {
        Speed = 3,
    },
}

Change the numbers only. Do not remove commas or curly braces: a syntax mistake in a .lua file stops the server from starting.

Applying changes

FileHow to apply
.iniRestart the server. Most settings can also be reloaded with /reloadoptions without a restart, except mods
SandboxVars.lua, spawnregions, spawnpointsStop the server, edit, then start

Safe editing steps:

  1. Stop the server from the Console.
  2. Create a backup in the Backups menu.
  3. Open Files → .cache/Server/ and edit the file you need.
  4. Click Save Content.
  5. Start the server and watch the Console until it shows SERVER STARTED.

You can also change one .ini setting from in game with /changeoption OptionName "value". See Adding Admins and Basic Commands in Project Zomboid.

Troubleshooting

ProblemCommon causeFix
The server will not start after a sandbox editA missing comma or curly brace in the .luaCompare with your backup and fix the syntax
.ini changes do not applyNo restart, or the wrong server's file was editedCheck the file name matches the server name, then restart
Every setting is back to defaultThe server name changed, so new files were createdRestore the server name, or copy your settings into the new files
Players cannot create accountsOpen=falseSet Open=true, or create accounts with /adduser
Ports change by themselvesPorts are managed by the panelDo not change ports in the file

Safe practices

  • Back up the .cache/Server/ folder before changing settings.
  • Change a few settings at a time, then test.
  • Keep a copy of a working settings file on your computer.
  • Announce big rule changes (PvP, zombie count) to players before applying them.

If the server will not start after changing settings, contact Skyes Hosting support and include the server name, the file you changed, and the log lines from the Console.

Was this article helpful?

Open support center