DayZ Wiki › Guides & tools › Server files
Guide · Server files
Editing DayZ server files, explained
This page explains what each mission file on a DayZ server controls and what the main types.xml fields mean. It also covers how to change loot, the starting kit and gameplay settings without breaking the server or wiping it by accident.
Before you edit
Where the files live and how to edit them safely
serverDZ.cfg sits in the server's root folder. Everything else is in the mission folder inside mpmissions, one per map: dayzOffline.chernarusplus for Chernarus, dayzOffline.enoch for Livonia, dayzOffline.sakhal for Sakhal and dayzOffline.nasdara for Nasdara. The loot tables are in its db subfolder. If you do not have a server yet, start with the server hosting guide.
- Stop the server first. Files are read at start-up, so nothing changes until a restart.
- Copy every file before you touch it. Game updates can replace the stock mission folders, so keep your edited copies elsewhere too.
- Change one thing at a time, in a plain text editor that highlights XML and JSON.
The file list
What each file does
| File | What it controls |
|---|---|
| serverDZ.cfg (server root) | Server name, password, player slots, time acceleration, third-person rules, which mission loads, the storage instance number and admin log options. |
| init.c | The mission's start-up script. It starts the loot economy, sets the start date and holds the default fresh-spawn kit. |
| db/types.xml | One entry per item: how many should exist, how long they last and where they may spawn. |
| db/events.xml | Dynamic spawns such as vehicles, helicopter crashes, animal herds and infected groups. |
| cfgeventspawns.xml | The map coordinates each event can use. |
| cfgspawnabletypes.xml | What an item spawns with: weapon attachments, cargo inside clothing and containers, and starting damage. |
| cfgplayerspawnpoints.xml | Where fresh characters appear, and how far they must be from infected, players and buildings. |
| db/globals.xml | Server-wide numbers: infected and animal caps, clean-up timers for bodies and ruined items, login and logout timers. |
| cfggameplay.json | Gameplay switches: stamina, base damage, building restrictions, map behaviour and spawn kit presets. |
| db/messages.xml | Scheduled broadcast messages and the timed shutdown countdown. |
| cfgeconomycore.xml | Persistence backups, economy logging and registration of extra types or events files. |
The loot economy page shows how these rules look from the player's side. Extra XML files dropped into db are ignored unless they are registered in cfgeconomycore.xml, which is how most mods add their items.
types.xml
The types.xml fields, one by one
Each item has a block of fields. Times are in seconds.
| Field | Meaning |
|---|---|
| nominal | The number of this item the economy tries to keep in the world. It is a target, not a guarantee. 0 stops the item spawning as loot. |
| min | The floor. When the counted total falls below it, the economy queues replacements up towards nominal. |
| lifetime | How long an untouched item stays before it is cleaned up. |
| restock | The wait before a replacement may spawn. 0 means it is eligible on the next economy pass, not that it appears instantly. |
| quantmin, quantmax | The fill range, in per cent, for items with a quantity such as ammunition, magazines and bottles. -1 means not used. |
| cost | A priority weight used when the economy chooses what to spawn. Nearly every vanilla item uses 100. Leave it alone. |
| flags | Which copies count towards nominal: count_in_map (lying in the world), count_in_cargo (inside another item), count_in_hoarder (in tents, barrels, crates and buried stashes), count_in_player (carried by players). crafted marks craft-only items, deloot marks items that only spawn at dynamic events. |
| category | The loot group, such as weapons, clothes, food or tools. |
| usage | The building types the item may appear in, such as Military, Police, Medic or Farm. Several can be listed. |
| value | The map tier, Tier1 to Tier4 on the older maps, plus Unique. Several can be listed. |
With count_in_hoarder set to 1, every M4-A1 in a sea chest or buried stash counts towards nominal, so hoarded copies block new spawns. Set it to 0 and stored copies are ignored.
Category, usage and value names must match cfglimitsdefinition.xml exactly, or the item has nowhere to spawn. Nasdara's stock files are reported to use Tier1 to Tier3 only, so entries copied from Chernarus with only Tier4 need retagging.
Tuning loot
Safe ways to raise or lower loot
- Raise nominal and min together. For example, from nominal 10 and min 5 to nominal 20 and min 12. Min must never exceed nominal.
- Do not multiply every nominal. Buildings have a fixed number of spawn points. Once they are full, common items crowd out rare ones and server performance suffers.
- To make loot scarcer, lower nominal and min by the same proportion. To remove an item, set both to 0 and keep the entry.
- Fix hoarding at the flags. If rare rifles vanish into bases, turn off count_in_hoarder for them before raising nominal.
- Check cfgspawnabletypes.xml for attachments. Whether a rifle spawns with a magazine or optic is set there by chance values.
Vehicles, helicopter crashes and other dynamic events are tuned in events.xml, where each event has its own nominal, min and max. Infected and animal caps are ZombieMaxCount and AnimalMaxCount in globals.xml.
Changes apply at the next restart, but items already in the world stay until they are taken or their lifetime ends.
Fresh spawns
Changing the starting kit
There are two routes. The vanilla kit is described on the starter loadout page.
- Edit init.c. The StartingEquipSetup function creates the starting items. Adding one, for example a tourist map, is a single line that creates it in the player's inventory by class name. It is a script, so one missing semicolon or bracket stops the mission loading.
- Use spawn gear presets. List one or more JSON preset files under spawnGearPresetFiles in cfggameplay.json. Each preset has a name, a spawnWeight and sets of items for clothing slots and cargo, with health and quantity ranges. With several presets, the game picks one per spawn, favouring higher weights. No scripting is needed.
Class names must match the game's exactly, or the item is not created.
Gameplay switches
Enabling features in cfggameplay.json
Since update 1.30 the server reads cfggameplay.json by default, according to the changelog. Before that it needed enableCfgGameplayFile = 1 in serverDZ.cfg, and older guides still say so. Read the file before your first 1.30 start, because its contents now apply. The 1.30 page covers the rest.
| Setting | Default | Effect when changed |
|---|---|---|
| disableBaseDamage | false | Player-built fences, gates and watchtowers cannot be damaged. |
| disableContainerDamage | false | Tents, barrels and similar containers cannot be damaged. |
| disableRespawnDialog | false | Removes the respawn type choice after death. |
| staminaMax | 100 | Size of the stamina pool. |
| ignoreMapOwnership | false | Players can open the map without carrying one. |
| displayPlayerPosition | false | Shows the player's own marker on the map. |
The file also holds building placement checks that can be turned off one by one for easier base building, plus stamina modifiers and monthly temperature ranges. Update 1.30 added a setting that stops car and motorbike wheels being detached or damaged.
JSON is strict. A missing or trailing comma can make the server ignore the whole file without an obvious error.
What goes wrong
Common mistakes and how to avoid them
- Invalid XML. One unclosed tag or stray ampersand breaks the whole file. A broken types.xml usually means little or no loot.
- Duplicate entries. Search for a class name before pasting a mod's items into types.xml.
- Short lifetimes on base items. Fences, tents, barrels and vehicles rely on long lifetimes, refreshed by a territory flag built from a flag pole kit. Cutting them makes bases vanish.
- Wiping storage by accident. The storage folder (storage_1 when instanceId is 1) holds every base, stash, vehicle and loose item. Deleting it resets the world. Changing instanceId in serverDZ.cfg points the server at a new, empty folder, which looks the same to players.
- Wiping when you did not need to. Most loot edits only need a restart. A wipe is for a fresh start, a map change or persistence that will not load.
- Losing edits to an update. New versions ship stock files with new items. Merge those entries into your files.
Checking your work
Validating files and reading the server logs
Validate before every restart. Any XML or JSON validator catches syntax errors, and a web browser will refuse to display a broken XML file and name the line.
Then start the server and read the logs in the profiles folder (set by the -profiles launch option) or on your host's log page.
| Log | What to look for |
|---|---|
| RPT file | The engine report: start-up errors, files that failed to load and economy warnings about unknown types or tags. |
| Script log | Script errors, including mistakes in init.c. |
| ADM file | The admin log, written only when the server starts with -adminlog. It records connections, chat, hits, deaths and, if enabled in serverDZ.cfg, placement and building. |
If nothing spawns anywhere, search the RPT for the file you edited. If one item is missing, check its usage, value and category spelling. Console owners edit the same files through the host's web panel, as noted in console vs PC.
Quick answers
Questions people ask
What does nominal mean in DayZ types.xml?
Nominal is the number of that item the loot economy tries to keep in the world. It is a target the server works towards, not a guaranteed count, and a nominal of 0 stops the item spawning as loot.
How do I increase loot on my DayZ server?
Raise nominal and min together for the specific items you want more of in db/types.xml, then restart the server. Avoid multiplying every item, because spawn points are limited and the extra load hurts performance.
Do I need to wipe my server after editing types.xml?
No. Most loot changes only need a restart, and existing items stay until they are taken or their lifetime ends. A wipe is only needed for a fresh start, a map change or broken persistence.
How do I wipe a DayZ server?
Stop the server, back up the storage folder in your mission folder (storage_1 by default) and delete it. The server rebuilds an empty world on the next start, and bases, vehicles and stashes are lost.
How do I change the starting gear on a DayZ server?
Either edit the StartingEquipSetup function in the mission's init.c, or list spawn gear preset files under spawnGearPresetFiles in cfggameplay.json. The preset method needs no scripting.
Why is there no loot after I edited my server files?
The usual cause is invalid XML in types.xml, such as an unclosed tag, which stops the whole file loading. Run the file through an XML validator and check the server's RPT log for the error.
Keep going
More guides and tools
Checked 14 November 2026 against DayZ 1.30 (PC 1.30.164200, console 1.87). Sources: Bohemia Interactive community wiki (Gameplay Settings, Central Economy Configuration, Spawning Gear Configuration, Player Spawning Configuration, Administration Logs), dayz.wiki.gg Update 1.30 changelog (cfgGameplay on by default, wheel damage setting), StarDZ DayZ Modding Wiki (types.xml flags, cfgspawnabletypes, cfgeconomycore), host guides from LOW.MS, XGamingServer and dayzbot.com (Nasdara mission folder and tiers). Unverified or reported: the exact way the economy uses the cost field (described only as a priority weight); Nasdara using only Tier1 to Tier3 (one third-party source); the name of the new 1.30 wheel setting (not given in the changelog, so not named); whether init.c StartingEquipSetup still runs alongside spawn gear presets (not stated by Bohemia, so not claimed); the script log description and the instanceId to storage folder link are from general server-admin knowledge, not a fetched official page; the remark that a broken cfggameplay.json falls back to defaults comes from a community wiki. Bohemia's wiki has no single official page defining every types.xml field, so those definitions rest on community documentation that agrees across sources. dayz.wiki.gg also lists a later PC hotfix build, 1.30.164289 (3 November 2026), with fixes to disableBaseDamage.