What one entry looks like
Each item is a type block with a name, a few numbers, a flags line and some placement tags. The name must match the item's class name exactly as the game spells it, or the entry does nothing. You'll find the file in your mission's db folder: on Nitrado that's mpmissions, your map's mission folder, then db, and on console it sits inside a dayzps (PlayStation) or dayzxb (Xbox) folder.
The example on this page is the Canteen from a default server. Every other item follows the same pattern, from a tin of beans to an M4.
The numbers
These decide how many of an item exist and how long they last:
- Nominal: how many the economy aims to keep on the map
- Min: when the count falls below this, more spawn
- Lifetime: seconds an untouched item stays on the ground
- Restock: seconds before the item may spawn again
- Quantmin and quantmax: how full things like magazines and bottles start, as a percentage (-1 means not used)
- Cost: priority when the economy chooses what to spawn (100 is normal)
How the numbers work together
The Central Economy counts each item and compares the total with min. Once the count drops below min, it starts spawning more until it reaches nominal again. Restock is the wait before that refill may begin, so 0 means straight away and 1800 means half an hour.
Lifetime only matters once an item is lying on the ground. 3600 is an hour and 14400 is four hours. Base items such as tents and barrels use very long lifetimes, often 3888000 seconds (45 days), so a base doesn't vanish while its owners are offline for a few days.
- Keep min below nominal, or the economy is always trying to catch up
- Raise nominal and min together when you want more of something
- A nominal of 0 means the item never spawns on its own, which is normal for crafted and event-only items
The flags
Each entry has a flags line with on or off switches:
- count_in_cargo: count items inside containers towards nominal
- count_in_hoarder: count items in tents, barrels and stashes
- count_in_map: count items lying on the map
- count_in_player: count items players are carrying
- crafted: the item is made by players, not spawned
- deloot: the item spawns at dynamic events such as heli crashes
Where items spawn
Category groups items (weapons, food, tools, clothes, containers). Usage says which kinds of building or place they spawn in (Military, Police, Medic, Farm, Town, Village, Hunting, Industrial and more). Value sets the map tiers, from Tier1 near the coast to Tier4 in the north-west on Chernarus. Read DayZ loot tiers explained.
Tags narrow it further: floor, shelves or ground. Every category, usage, value and tag name has to be listed in cfglimitsdefinition.xml, in the same db folder. A spelling the game doesn't know is ignored, and the item may stop spawning where you expect.
Attachments live in a different file
types.xml decides whether a rifle spawns. What comes on it, such as a scope, a magazine or a suppressor, is set in cfgspawnabletypes.xml. If guns keep turning up bare, that's the file to change. See DayZ weapon attachments.
Edit it without breaking it
The safest way to change types.xml is a few items at a time, checked before upload. A broken tag stops the whole file loading. If that happens, see server won't start after an XML edit.
Keep one entry per item. Two entries with the same name give confusing results, and it's easy to edit the one the game isn't using.