Project Zomboid Server Config Generator
Generate a complete Project Zomboid Build 42 server config. 132 sandbox gameplay options across 9 categories, 84 server.ini settings, 5 vanilla presets (Apocalypse, Survivor, Builder, Survival, Sandbox). Live preview, copy or download both files.
Project Zomboid server hosting from XGamingServer — instant setup, DDoS protection, mod support, and 24/7 help. 30% off your first month.
World, time, weather, and basic gameplay settings.
How long one in-game day takes in real time.
Year number used at world start (mostly cosmetic).
Calendar month the world begins in.
Day of the month the world begins on.
Time of day the player first spawns in.
How long before the water supply is cut off after the start.
How long before electricity is cut off after the start.
Specific day on which water shuts off. -1 disables the explicit offset and uses WaterShut range.
Specific day on which electricity shuts off. -1 disables the explicit offset and uses ElecShut range.
Overall climate temperature baseline.
How often rain occurs.
How quickly nature reclaims the built environment.
Days until 100% erosion growth. 0 uses the Erosion Speed option. -1 disables erosion entirely.
How many months have passed since the apocalypse began; affects starting erosion and food spoilage.
How dark the world gets at night (B42 defaults darker than B41).
Relative length of night vs day.
Caps the maximum fog intensity during weather events.
Caps the visual intensity of rain effects.
When disabled, snow appears on vegetation/roofs but not on ground tiles.
Allow the in-game minimap to be used.
Allow the in-game world map to be used.
Reveal all map areas by default without needing to visit them.
Generators can power exterior tiles (useful for gas pumps).
Removes profession/class clothing restrictions in character creation.
Show the warning tooltip that water is tainted and must be boiled.
SandboxVars = {
VERSION = 5,
DayLength = 3,
StartYear = 1,
StartMonth = 7,
StartDay = 9,
StartTime = 2,
WaterShut = 2,
ElecShut = 2,
WaterShutModifier = 14,
ElecShutModifier = 14,
Temperature = 3,
Rain = 3,
ErosionSpeed = 3,
ErosionDays = 0,
TimeSinceApo = 1,
NightDarkness = 2,
NightLength = 3,
MaxFogIntensity = 1,
MaxRainFxIntensity = 1,
EnableSnowOnGround = true,
AllowExteriorGenerator = true,
AllClothesUnlocked = false,
EnableTaintedWaterText = true,
XpMultiplier = 1,
XpMultiplierAffectsPassive = false,
StatsDecrease = 3,
NatureAbundance = 3,
StarterKit = false,
Nutrition = true,
FoodRotSpeed = 3,
FridgeFactor = 3,
DaysForRottenFoodRemoval = -1,
EnablePoisoning = true,
MaggotSpawn = 1,
Farming = 3,
CompostTime = 2,
PlantResilience = 3,
PlantAbundance = 3,
EndRegen = 3,
InjurySeverity = 2,
BoneFracture = true,
CharacterFreePoints = 0,
ConstructionBonusPoints = 3,
FireSpread = true,
ClothingDegradation = 3,
HoursForCorpseRemoval = 216,
DecayingCorpseHealthImpact = 3,
BloodLevel = 3,
MultiHitZombies = false,
RearVulnerability = 3,
AttackBlockMovements = true,
ZombieAttractionMultiplier = 1,
LightBulbLifespan = 1,
FoodLoot = 4,
CannedFoodLoot = 4,
LiteratureLoot = 4,
SurvivalGearsLoot = 4,
MedicalLoot = 4,
WeaponLoot = 4,
RangedWeaponLoot = 4,
AmmoLoot = 4,
MechanicsLoot = 4,
OtherLoot = 4,
HoursForWorldItemRemoval = 24,
WorldItemRemovalList = "Base.Hat,Base.Glasses,Base.Maggots",
ItemRemovalListBlacklistToggle = false,
LootRespawn = 1,
SeenHoursPreventLootRespawn = 0,
EnableVehicles = true,
VehicleEasyUse = false,
CarSpawnRate = 3,
ChanceHasGas = 1,
InitialGas = 2,
FuelStationGas = 5,
CarGasConsumption = 1,
LockedCar = 3,
CarGeneralCondition = 2,
CarDamageOnImpact = 3,
DamageToPlayerFromHitByACar = 1,
TrafficJam = true,
CarAlarm = 2,
PlayerDamageFromCrash = true,
SirenShutoffHours = 0,
RecentlySurvivorVehicles = 1,
Zombies = 4,
Distribution = 1,
Helicopter = 2,
MetaEvent = 2,
GeneratorSpawning = 3,
GeneratorFuelConsumption = 1,
SurvivorHouseChance = 3,
VehicleStoryChance = 3,
ZoneStoryChance = 3,
AnnotatedMapChance = 4,
Alarm = 4,
LockedHouses = 6,
SleepingEvent = 1,
Map = {
AllowMiniMap = false,
AllowWorldMap = true,
MapAllKnown = false,
},
ZombieConfig = {
PopulationMultiplier = 1,
PopulationStartMultiplier = 1,
PopulationPeakMultiplier = 1.50,
PopulationPeakDay = 28,
RespawnHours = 72,
RespawnUnseenHours = 16,
RespawnMultiplier = 0.10,
RedistributeHours = 12,
FollowSoundDistance = 100,
RallyGroupSize = 20,
RallyTravelDistance = 20,
RallyGroupSeparation = 15,
RallyGroupRadius = 3,
},
ZombieLore = {
Speed = 2,
Strength = 2,
Toughness = 2,
Transmission = 1,
Mortality = 5,
Reanimate = 3,
Cognition = 3,
CrawlUnderVehicle = 5,
Memory = 2,
Decomp = 1,
Sight = 2,
Hearing = 2,
Smell = 2,
ThumpNoChasing = false,
ThumpOnConstruction = true,
ActiveOnly = 1,
TriggerHouseAlarm = false,
ZombiesDragDown = true,
ZombiesFenceLunge = true,
DisableFakeDead = 1,
},
}servertest_SandboxVars.lua to your server's ~/Zomboid/Server/folder. On XGamingServer, use the admin panel's File Manager or SFTP.Every Project Zomboid Build 42 server setting, generated for you
A Project Zomboid server needs two config files working together: servertest_SandboxVars.lua (gameplay: zombie lore, population, loot rarity, XP multipliers, day length, weather, vehicle spawn) and servertest.ini (server: max players, PvP, RCON, voice, faction rules, safehouse limits, Workshop mods, Discord integration). Miss either and your world doesn't load the way you want.
The generator ships with all 5 vanilla presets: Apocalypse (the default — pop 4, sprinters, no respawn, hard loot), Survivor (more forgiving — pop 3, slow shamblers, scarcer loot), Survival (legacy — balanced), Builder (creative — pop 5 none, no death, rich loot), and Sandbox (a flat neutral baseline to customize from scratch). Pick a preset, override any single setting, and the Lua preview updates instantly.
Build 42 sandbox categories covered: General (world time, weather, fog/rain intensity, map reveal), Character (XP multiplier, needs decay, farming, corpse/clothing, injury severity, blood/fire), Inventory (10 loot-rarity categories), Respawn (item respawn timing), Vehicles (spawn rate, fuel, crash damage, locks, alarms), Zombie Population (density, peak, migration, rally groups), Zombie Lore (speed, strength, transmission, cognition, hearing, smell, decomp, drag-down, fence lunge, fake-dead), Meta Events (helicopter, gunshots, survivor stories), and Sleeping.
The server.ini pane covers all the network-layer settings — MaxPlayers, PingLimit, UDPPort, SteamScoreboard, VAC, VoiceEnable/Distance/3D, PvP melee + firearm damage modifiers, PlayerSafehouse rules, WorkshopItems mod list, Discord webhook token + channel, RCON port/password, backup schedule, login queue, and faction settings. The generator respects Build 42's schema version 5 (VERSION = 5 at the top of the Lua file) so the game parses it correctly.
Deploy in 30 seconds: copy the Lua (or download it) and drop it in your server's ~/Zomboid/Server/ folder as `servertest_SandboxVars.lua`. Do the same with `servertest.ini`. On XGamingServer's Project Zomboid hosting, use the admin panel's File Manager → Configuration tab, or SFTP straight in. Restart the server, done.
Project Zomboid Server Config Generator — FAQ
Where do I put the SandboxVars.lua file on my Project Zomboid server?
Drop it in your server's ~/Zomboid/Server/ folder and name it <servername>_SandboxVars.lua (the default server name is `servertest`, so the filename is `servertest_SandboxVars.lua`). On XGamingServer, use the admin panel's File Manager → Configuration, or SFTP to /home/container/Zomboid/Server/. Restart the server for changes to apply.
What's the difference between the sandbox presets?
Apocalypse (default): zombie pop 4, sprinters, no loot respawn — hardcore. Survivor: pop 3, slow shamblers, looser loot. Survival (classic): pop 3, balanced. Builder: pop 5 (none), immortal character, rich loot — for roleplay/building. Sandbox: flat neutral baseline — customize from there. Pick the closest preset then tweak individual settings, don't start from scratch.
Why does my Zombies setting seem inverted?
Project Zomboid uses inverted scales on some enum settings — Zombies=1 is Insane population, Zombies=5 is None. Same for Speed (1=fast shamblers, 4=Fast shamblers inverted). The labels in this generator show the friendly name next to each choice so you don't have to memorize the number mapping.
Can I use this for a modded server?
Yes — the schema only covers vanilla B42 options. Mod-added sandbox settings won't appear here. Generate the vanilla section, then append any mod-specific settings manually at the end of the Lua file (inside the SandboxVars table). The generator respects the version 5 schema — most mods are compatible.
What's VERSION = 5 at the top of the Lua file?
B42 sandbox files use schema version 5 — an internal marker the game uses to migrate old configs forward. Older version numbers (4 from B41, 3 from B40) still load but trigger migration warnings. The generator always emits 5 so your file is current.
Project Zomboid guides
You might also need
Character Build Planner
Plan traits + occupation + skills before spawning. All 93 Build 42 traits, 26 occupations (incl. Blacksmith, Welder, Livestock Farmer, Crop Farmer, DIY Expert), conflict blocking, live point tracking, exportable builds.
Tool Finder by Skill
Find every Build 42 tool by skill — 220 unique tools across 24 crafting skills (Carpentry, Blacksmithing, Metalworking, Knapping, Masonry, Glassmaking, Pottery, Tailoring, etc.). Filter by weight, weapon-able, type. One-click /additem spawn commands with full Base.X item IDs.
Weapon Database
Every Project Zomboid weapon — 129 melee weapons and firearms with base damage range, attack range, swing time, crit chance, door damage, ammo type and magazine size. Search by name or type, sort by damage. Read straight from the game's Build 42 scripts.
Food & Nutrition Database
451 Project Zomboid food items with full nutrition — hunger, thirst, calories, carbs, protein, fat, unhappiness, and days-fresh/rotten. Filter by food type, sort by calories or how filling. Read straight from the game's Build 42 scripts.
Project Zomboid server admin docs
Read the full Project Zomboid server docs →
Step-by-step guides for installing mods, configuring your server, joining, troubleshooting, and admin commands.

Ready to play?
Run your own Project Zomboid server with XGamingServer
Instant setup, mods & plugins, DDoS protection and 24/7 human support — your server is live in minutes, no port-forwarding required.
Pick your plan
See all plans
Project Zomboid Server Hosting
Get managed Project Zomboid server hosting with this tool built into your panel — configure, deploy, and play in minutes. Instant setup, DDoS protection, 24/7 support.