background image
Game Servers 380 7 Days to Die 4 Abiotic Factor 2 Aloft 2 alt:V 2 Americas Army Proving Grounds 2 Among Us 2 Archean 2 ARK Survival Ascended 6 ARK Survival Evolved 3 Arma 3 3 Arma Reforger 2 Aska 2 AssaultCube 2 Assetto Corsa 3 Astro Colony 2 Astroneer 2 Automobilista 2 2 Avorion 2 Banana Shooter 2 Barotrauma 3 BATTALION Legacy 2 BeamNG.drive (BeamMP) 2 Black Mesa 2 Brickadia 2 Call of Duty 2 Citadel: Forged with Fire 2 ClassiCube 2 Clone Hero 2 Colony Survival 2 Conan Exiles 4 Contagion 2 Core Keeper 2 Counter-Strike 2 3 Craftopia 2 CryoFall 2 CS2D 2 Cube 2: Sauerbraten 2 Cubic Odyssey 2 DayZ 4 DDNet 2 DDRaceNetwork 2 Dead Matter 2 Dont Starve Together 4 Eco 2 Empyrion Galactic Survival 2 Enshrouded 3 Escape from Tarkov 2 Euro Truck Simulator 2 2 Factorio 2 Farming Simulator 25 2 Fistful of Frags 2 FiveM 3 FortressCraft Evolved 2 Foundry 2 Foundry VTT 2 Frozen Flame 2 FTL Tachyon 2 Garrys Mod 3 Ground Branch 2 Half-Life 2 Deathmatch 2 Hogwarp 2 Holdfast: Nations at War 2 HumanitZ 2 Hurtworld 2 Hytale 1 Icarus 2 Insurgency Sandstorm 2 IOSoccer 2 Just Cause 3 Multiplayer 2 Kerbal Space Program 2 Killing Floor 2 3 LeagueSandbox 2 Left 4 Dead 2 Left 4 Dead 2 3 Longvinter 2 Los Angeles Crimes 2 Medal of Honor 2 Midnight Ghost Hunt 2 Mindustry 2 Minecraft 4 Minetest 2 Modiverse 2 Mordhau 3 Mount & Blade II: Bannerlord 2 Myth of Empires 2 Nazi Zombies Portable 2 Necesse 2 NeosVR 2 Neverwinter Nights EE 2 Night of the Dead 2 Nightingale 2 No Love Lost 2 No More Room in Hell 2 No One Survived 2 Nova-Life Amboise 2 Nuclear Option 2 Onset 2 Open Fortress 2 OpenArena 2 OpenRA 2 OpenRCT2 2 OpenTTD 2 Operation Harsh Doorstop 2 Palworld 3 Path of Titans 2 Pavlov VR 3 PixARK 2 Plains of Pain 2 Portal Knights 2 Post Scriptum 2 Project Zomboid 8 Puck 2 Quake Live 2 R5Reloaded 2 RedM 2 Renown 2 Resonite 2 Return to Moria 2 Rimworld Together 2 Rising World 2 Risk of Rain 2 1 Rust 4 Satisfactory 1 SCP Secret Laboratory 3 SCUM 2 Smalland 2 Solace Crafting 2 Soldat 2 Soldat 2 2 Sonic Robo Blast 2 2 Sons of the Forest 2 Soulmask 2 SourceCoop 2 Space Engineers 3 Space Station 14 2 Squad 3 Starbound 3 StarMade 2 Stationeers 2 Stormworks 2 Subnautica Nitrox 2 Sunkenland 2 SuperTuxKart 2 Sven Co-op 2 Swords 'n Magic and Stuff 2 Team Fortress 2 3 Teeworlds 2 Terraria 3 TerraTech Worlds 2 TF2 Classified 2 The Forest 3 The Front 2 The Isle 2 Tower Unite 2 Trackmania 2 Unturned 4 Urban Terror 2 V Rising 3 Valheim 3 VEIN 2 Veloren 2 Vintage Story 3 Voyagers of Nera 2 Wolfenstein: Enemy Territory 2 Wreckfest 2 Wurm Unlimited 2 Xonotic 2 Zandronum 2 Getting Started 2 Network & Connectivity 1 Server Management 2
Kategoriler

Project Zomboid Server Settings

zomboid pz settings sandbox 0 kişi bunu faydalı buldu

This guide covers how to configure your Project Zomboid server hosted with Legion Hosting — including the server settings file and sandbox variables through GPanel.

Stop your server before editing any config files. Project Zomboid writes its configuration to disk on shutdown. If you edit files while the server is running, your changes will be overwritten when the server next stops. Always stop the server in GPanel first, make your changes, then start it again.

Overview of Configuration Files

Project Zomboid stores its server configuration in two files inside the /.cache/server/ directory on your server. Both files use your server's name as part of their filename.

File Purpose
/.cache/server/servername.ini Core server settings — password, player slots, ports, PvP, voice chat, and more
/.cache/server/servername_SandboxVars.lua Gameplay and world settings — zombie population, loot abundance, speed, respawn rates
What is my server name? The server name is set on the Startup tab in GPanel. It defaults to servertest unless you changed it. If you are unsure, check the GPanel Startup tab — it is the value in the Server Name field.

Step 1 — Open the File Manager in GPanel

  1. Log in to GPanel.
  2. Click your Project Zomboid server from the server list.
  3. On the Console tab, click Stop if the server is running. Wait for the status to change to Offline before continuing.
  4. Click the Files tab to open the file manager.
  5. Navigate to the .cache/server/ directory. You may need to click Show Hidden Files or toggle hidden file visibility if the .cache folder is not visible — it begins with a dot.
gpanel-files-cache-server

Step 2 — Edit the Server Settings File (.ini)

The .ini file controls the core server configuration. Click the file to open it in the inline editor.

Commonly Changed Settings

Setting Description Example Value
PublicName The server name shown in the public server browser My PZ Server
PublicDescription Short description shown in the server browser Welcome! Friendly server.
Password Password players must enter to join. Leave blank for no password. hunter2
MaxPlayers Maximum number of simultaneous players 16
PVP Enable or disable player vs. player combat true or false
Public Whether the server appears in the public server list true or false
DefaultPort UDP port the server listens on (default 16261). Match this to GPanel's assigned port. 16261
Map Map name. Use Muldraugh, KY for the default map. Append mod maps separated by semicolons. Muldraugh, KY
Mods Semicolon-separated list of Mod IDs. B41 format: modid1;modid2. B42 format: \modid1;\modid2; 2392509783;2400857388
WorkshopItems Semicolon-separated Workshop item IDs (must match the Mods list) 2392509783;2400857388
Mods and WorkshopItems must stay in sync. Every mod ID listed under Mods must have a matching entry under WorkshopItems. A mismatch is a common cause of server startup failures after adding mods.

After making your changes, click Save in the file editor. Do not start the server yet if you also want to edit sandbox variables — complete Step 3 first.

Step 3 — Sandbox Variables (Gameplay Settings)

Sandbox variables control the gameplay experience: how many zombies spawn, how fast they move, loot rarity, and dozens of other world parameters. These live in servername_SandboxVars.lua in the same /.cache/server/ directory.

Recommended: Use the in-game admin panel instead of editing this file directly. The in-game admin panel provides labeled sliders and drop-downs for every sandbox option, making it much easier to find and change settings without typos. File editing is an alternative for bulk changes or when the server has never been started. To access it, use the in-game admin panel (press Esc while in-game as admin).

Editing the SandboxVars File Directly

If you prefer to edit the file, the format is a Lua table. Each setting is on its own line:

SandboxVars = {
    Zombies = 3,          -- Population: 1=Insane, 2=Very High, 3=High, 4=Normal, 5=Low
    Distribution = 2,     -- Zombie distribution: 1=Urban focused, 2=Uniform
    ZombieSpeedType = 3,  -- Speed: 1=Sprinters, 2=Fast Shamblers, 3=Shamblers, 4=Crawlers
    LootAbundance = 3,    -- Loot: 1=Insane, 2=Abundant, 3=Normal, 4=Scarce, 5=Very Scarce
    DayLength = 2,        -- In-game day length in hours: 1=1h, 2=2h ... 15=15h, 16=Real Time
    StartYear = 1,        -- Starting year (offsets from 1993)
    StartMonth = 7,       -- Starting month (1–12)
    StartDay = 9,         -- Starting day (1–31)
    WaterShut = 0,        -- Tap water shutoff: 0=Never, 1=Instant ... 14=2 years
    ElecShut = 0,         -- Electricity shutoff: 0=Never, 1=Instant ... 14=2 years
    HoursForCorpseRemoval = 0,  -- 0=Never auto-remove
    CharacterFreePoints = 0,    -- Bonus starting trait points
}
Sandbox settings apply to new worlds only. If your server has already run and created a world, changing sandbox variables in the file does not retroactively change the live world. To apply new sandbox settings, you must wipe the world and start fresh. If you only want to adjust admin-controllable settings mid-game, use the in-game admin panel instead.

Troubleshooting

My changes to the .ini file were not saved

  • The most likely cause is that the server was still running when you saved the file. Project Zomboid overwrites the config on shutdown. Stop the server first, edit the file, save it, then start the server.
  • Confirm you saved the file in GPanel's editor before navigating away — look for a confirmation toast or check that the file's last-modified timestamp updated.

I cannot see the .cache folder in the file manager

  • Hidden directories (those starting with a dot) are not shown by default. Look for a Show Hidden Files toggle or checkbox in the GPanel Files tab and enable it.
  • If the directory does not exist at all, the server has not run yet. Start and stop the server once to generate the config files, then edit them.

Sandbox settings are not changing in the live world

  • Changes to the _SandboxVars.lua file only take effect on a new world. For an existing running world, use the Options tab of the in-game admin panel to adjust settings without a wipe.
Need further help? Open a support ticket and include your server ID from GPanel along with any relevant console output.

Bu makale faydalı oldu mu?

Ready to Get Started?

The servers are booted, select your plan and become our latest satisfied client.