01
The Central Economy and the mission folder
DayZ does not spawn loot at random. A server system, the Central Economy (CE), counts the items present in the world and respawns them when some are missing. Its settings are XML files stored in the mission folder, the one named by the template line of serverDZ.cfg. For Chernarus:
mpmissions/dayzOffline.chernarusplus/
The files that matter for loot:
db/types.xml: the list of every item the economy can spawn, with its quantities and locations;
cfglimitsdefinition.xml: the allowed names for categories, locations and loot tiers;
cfgspawnabletypes.xml: the attachments and contents that come with some items;
db/globals.xml: general settings, such as the maximum number of zombies or animals;
cfgeconomycore.xml: the economy's own configuration, and where your custom files are declared.
Bohemia Interactive publishes the original files for each map on GitHub, in the BohemiaInteractive/DayZ-Central-Economy repository: a clean copy if you ever need one. If the server is not installed yet, follow create a DayZ server on a VPS first.
02
Reading a types.xml entry
Each item has its own <type> block. Here is the AK101 entry from the original Chernarus file:
<type name="AK101">
<nominal>4</nominal>
<lifetime>28800</lifetime>
<restock>3600</restock>
<min>2</min>
<quantmin>30</quantmin>
<quantmax>80</quantmax>
<cost>100</cost>
<flags count_in_cargo="0" count_in_hoarder="0" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
<category name="weapons"/>
<usage name="Military"/>
<value name="Tier3"/>
<value name="Tier4"/>
</type>
nominal: the number of copies the economy aims for across the whole map. At 0, the item no longer spawns on its own.
min: the threshold below which the economy spawns more, working back towards nominal. Keep min lower than or equal to nominal.
lifetime: how long, in seconds, an item left in the world untouched lasts before it is cleaned up. 28800 seconds is 8 hours.
restock: a delay, in seconds, that sets how fast the item respawns; 0 means no delay.
quantmin and quantmax: the fill range, as a percentage, for items that have a quantity (ammunition, liquid…). -1 means the item has none.
cost: the official documentation does not describe this field; keep the original value, 100 for almost every item.
flags: the four count_in_… flags say which copies count towards nominal: those lying on the map (map), inside another item (cargo), in stashes and tents (hoarder) or on players (player). crafted marks an item obtained by crafting, deloot loot from dynamic events such as helicopter crashes.
category, usage, value and tag: the item type, the places where it spawns (Military, Town, Farm…), the map's value zones (Tier1 to Tier4) and the spot inside a building (floor, shelves, ground). The names must exist in cfglimitsdefinition.xml.
03
Editing without breaking the server
The server reads these files at startup: a change only takes effect after a restart. Always work in this order:
- Stop the server:
sudo systemctl stop dayz-server.
- Back up the file, or the whole mission:
cd /home/dayz/serveur/mpmissions
sudo -u dayz cp dayzOffline.chernarusplus/db/types.xml dayzOffline.chernarusplus/db/types.xml.bak
sudo -u dayz tar czf /home/dayz/mission-$(date +%F).tar.gz dayzOffline.chernarusplus
- Edit with a plain text editor (
nano, or Notepad++ on Windows), never a word processor.
- Check the XML before restarting. On Debian or Ubuntu,
xmllint (package libxml2-utils) points to the faulty line:
sudo apt install -y libxml2-utils
xmllint --noout dayzOffline.chernarusplus/db/types.xml
- Restart and read the
.RPT log in the profiles folder.
The most common mistakes: an unclosed tag (a forgotten </type>), a missing quote in flags, a copy and paste that leaves a duplicate block, or a misspelt usage or value name. A syntax error can stop the server from starting or make it ignore part of the file: when in doubt, restore the backup and redo the change in small steps.
04
Adding a file instead of editing the original
Since game update 1.08, the official wiki describes a cleaner method: leave the original types.xml untouched and declare your changes in a separate file. In cfgeconomycore.xml, add a ce block inside <economycore>:
<ce folder="perso">
<file name="types_perso.xml" type="types" />
</ce>
Create the perso folder in the mission and put types_perso.xml in it, with the same structure as the original (a <types> root and <type> blocks). The wiki spells out the rules:
- an item that already exists is overridden by your version, without having to repeat all its fields;
- if you give a
usage, tag or value, all the original ones are replaced: list them all;
- an element with several values, such as
flags, must be written in full.
This is also the right place for a mod's items: many authors ship a types file ready to be declared this way (see install mods on a DayZ server). Another benefit: a server update run with validate can restore the mission's original files, but it does not touch a folder you created.
05
What changes in game, and persistence
The economy keeps the state of the world in the mission's persistence folder, storage_1 for a server with instanceId = 1. On restart, it picks up that state: items already on the map stay until their lifetime runs out or a player takes them, and the new values apply as items respawn. A change to nominal therefore shows up gradually, not instantly.
In db/globals.xml, two official settings affect this pace: InitialSpawn, the percentage of loot created on the first start without persistence, and RestartSpawn, the share of loot respawned at each restart to work back towards nominal.
Wiping persistence (deleting storage_1 with the server stopped) starts again from a fresh map, filled according to your new settings. But it is a full wipe: bases, tents, stashes, vehicles and player characters are gone. Only do it with warning, and keep an archive:
sudo systemctl stop dayz-server
cd /home/dayz/serveur/mpmissions/dayzOffline.chernarusplus
sudo -u dayz tar czf /home/dayz/storage-$(date +%F).tar.gz storage_1
sudo -u dayz mv storage_1 storage_1.ancien
sudo systemctl start dayz-server
Renaming the folder instead of deleting it lets you go back if the result is not what you wanted.
06
On a CloudFive VPS
CloudFive has no ready-made DayZ plan: the server runs on a VPS, where you have access to every mission file.
- the Ryzen VPS, from €5.99 per month, on an AMD Ryzen 9 9950X with DDR5 memory and NVMe storage: the more items on the map, the more a fast core and memory matter;
- the Windows VPS, licence included, if you prefer to edit files over Remote Desktop (see a game server on a Windows VPS);
- root or administrator access, a dedicated IPv4 and basic anti-DDoS protection included; the game-specific filter is part of Premium Protection, a paid option (see protect a game server from DDoS attacks).
Servers are in France, monthly with no commitment, with French-speaking support 7 days a week. To compare VPS plans suited to games, see which VPS for a game server and the gaming VPS page.
07
Frequently asked questions
Where is a DayZ server's types.xml file?
In the db subfolder of the mission folder, for example mpmissions/dayzOffline.chernarusplus/db/types.xml for Chernarus. The mission folder in use is the one named by the template line of serverDZ.cfg.
How do I increase loot on a DayZ server?
Stop the server, back up types.xml, then raise nominal and min for the items you want, keeping min lower than or equal to nominal. Check the XML and restart: loot increases as items respawn.
What do nominal, min and lifetime mean in types.xml?
nominal is the number of copies aimed for across the whole map, min the threshold below which the item respawns, and lifetime how long in seconds an item left on the ground lasts before it is cleaned up. Keep min lower than or equal to nominal.
My DayZ server no longer starts after editing types.xml, what should I do?
The XML is probably malformed: an unclosed tag, a missing quote or a duplicate block. Check it with xmllint --noout, read the .RPT log, or restore the backup and redo the change in small steps.
Do I need to wipe persistence after editing types.xml?
No, it is not required: the new values apply as items respawn. Deleting the storage_1 folder resets the map, but also removes bases, tents, vehicles and characters: warn players and keep an archive.