By the end of this guide you will have changed the loot on your DayZ server with a file of your own that holds only your changes. The original types.xml stays untouched. New items from updates keep reaching the server, and your changes survive as well.

Prerequisites

  • A DayZ server in your customer panel that has started at least once.
  • A text editor that shows XML cleanly. The editor in the file manager is fine for small changes.
  • A recent backup under Backups & recovery.

Find the mission folder

Which mission your server loads is set in serverDZ.cfg, in the class Missions block on the template line. According to the Bohemia wiki, for Chernarus it reads template = "dayzOffline.chernarusplus";.

Open Files & worlds → Files. The mpmissions folder contains a subfolder with exactly that name. That is your mission folder. The loot list is in db/types.xml inside it, the control file sits directly in it as cfgeconomycore.xml.

How an entry is built

Each item has a <type> block in types.xml. In Bohemia's template the AKM looks like this:

<type name="AKM">
    <nominal>3</nominal>
    <lifetime>7200</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="Tier4"/>
</type>

According to Bohemia, nominal and min limit how many copies of an item exist in the world. Bohemia calls usage and value limiter flags. Their allowed names are listed in cfglimitsdefinition.xml in the mission folder. To start with, only change nominal and min.

Create your own file

Since update 1.08, DayZ can include files of your own that add to or override the originals. Bohemia describes this under Central Economy mission files modding.

  1. Create a new folder in the mission folder, for example custom.
  2. Create a file in it, for example my_types.xml. It starts with <types> and ends with </types>.
  3. Copy the <type> block of every item you want to change from types.xml into your file and change the values there.
  4. Open cfgeconomycore.xml and add this block before the last line </economycore>:
<ce folder="custom">
    <file name="my_types.xml" type="types" />
</ce>
  1. Save both files and restart the server.

Rules for your file

For files of type types, Bohemia lists these rules:

  • The formatting must match the original file.
  • For an item you override, you do not have to repeat every value.
  • If a value has several parts, such as flags, you must write out all of them.
  • Setting usage, tag or value replaces all original entries of that kind.

You can list several files under one ce element, and there can be several ce elements. Besides types, DayZ also accepts spawnabletypes, globals, economy, events and messages there.

What happens on updates

During an update or reinstall, the panel protects your files. Anything you created in the mission folder yourself stays as it is. If you changed a shipped file and the update brings a new version, the panel keeps your version and puts the new one next to it as <file>.gsh-new. World data in the storage_* folders is excluded from this.

For your loot changes this means: your file in custom stays, and types.xml receives new items. The panel keeps your modified cfgeconomycore.xml. If a cfgeconomycore.xml.gsh-new appears next to it afterwards, compare both and copy new lines into your version.

Common problems

Problem Cause and fix
The changes have no effect The folder name in folder or the file name in file does not match exactly. Mind upper and lower case.
The server does not start after the change Usually a tag is not closed. The console shows the log from serverprofile/*.RPT. Look for the line that names your file.
An item no longer spawns in its usual places You set usage or value and replaced all original values. Enter every value you want.
New items are missing after an update You edited types.xml directly. The new version then sits next to it as types.xml.gsh-new. Move your changes into a file of your own and use the new types.xml.

Next steps

How mods, keys and wipes work is covered in Install DayZ server mods. Slots and locations are on the DayZ order page.