Increase Loot in DayZ
The types.xml defines which Vanilla items spawn, in what quantity and in which locations. This guide explains how to adjust Vanilla loot and upload the edited file to your server.
- FileZilla: https://filezilla-project.org/
Important: Set the transfer mode in FileZilla to Binary. To do this, click Transfer → Transfer type → Binary. - WinSCP: https://winscp.net/eng/index.php
1. Download types.xml
You can get the correct types.xml in two ways:
Download the file from Bohemia Interactive’s official GitHub repository. Select the mission for your map and open the
dbfolder.Download the file currently used by your server through the Gameserver-FTP. After connecting, find it in the active mission at:
/mpmissions/<MissionFolder>/db/types.xmlExamples:
/mpmissions/dayzOffline.chernarusplus/db/types.xml/mpmissions/dayzOffline.enoch/db/types.xml
Always use the types.xml from the mission your server actually starts. Create a copy of the original file before editing it.
2. Adjust Vanilla loot
For editing, we recommend an editor with syntax highlighting, such as Notepad++.
As an example, we will edit the entry for the AK101. The nominal value is increased from 4 to 8:
Original:
<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>
Edited:
<type name="AK101">
<nominal>8</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>
This increases the target value for the AK101 from 4 to 8. The actual amount can vary depending on loot locations, players and other settings.
Important settings
| Setting | Description |
|---|---|
type | Determines which item spawns, for example AK101. |
nominal | Target total amount of an item that the Central Economy aims for. |
lifetime | Time in seconds an item can normally remain in the world before it is removed. |
restock | Time in seconds before the Central Economy tries to restock this item again. |
min | If the amount falls below this value, the Central Economy tries to spawn new items. |
quantmin | Minimum fill level in percent for items with quantities, such as magazines or liquids. Items without a quantity often use -1. |
quantmax | Maximum fill level in percent for items with quantities. Items without a quantity often use -1. |
cost | Priority when distributing loot. A higher value can cause the item to be spawned preferentially. |
flags | Define in which areas items are counted for the total. |
↳ count_in_cargo | Items in vehicles, backpacks and other inventory are counted. |
↳ count_in_hoarder | Items in containers, tents, barrels and similar storage are counted. |
↳ count_in_map | Items in the world are counted. |
↳ count_in_player | Items in a player’s inventory are counted. |
↳ crafted | Identifies items that are crafted and do not spawn normally. |
↳ deloot | Identifies special event loot, for example from helicopter crashes. |
category | Assigns the item to a category, such as weapons or clothes. |
tag | Defines which type of loot position can spawn the item, such as shelves or floor. |
usage | Defines in which areas the item can spawn, such as Military, Town or Village. |
value | Defines the zone or loot tier, such as Tier4. |
Only change the values you really want to adjust. Also pay attention to the capitalization of item names and to valid XML syntax.
3. Upload types.xml
Stop your server and wait until it has shut down completely. The status must be Server is not running.
Connect your FTP program to the Gameserver-FTP. You can find the login details in the FTP overview by clicking FTP.
After connecting, you are already in the root directory
/. Open the active mission folder and then itsdbsubfolder:/mpmissions/<MissionFolder>/db/Examples:
/mpmissions/dayzOffline.chernarusplus/db//mpmissions/dayzOffline.enoch/db/Upload the edited
types.xmlto this folder and confirm that the existing file should be replaced.Start your server again.
Your edited types.xml will be loaded when the server starts. Changes to loot distribution may only become fully visible after the next spawn or cleanup cycle.
4. Add loot from mods
Many mods provide their own loot entries, for example in a types.xml or a file in a ServerFiles folder. Read the mod author’s installation instructions first. They will tell you which files are required.
For additional mod items, you do not have to replace the complete Vanilla types.xml. You can include a separate file to add to the standard file or override individual entries. DayZ supports additional Central Economy files through cfgeconomycore.xml.
Create an additional folder in the mission folder, for example:
/mpmissions/dayzOffline.chernarusplus/custom/Copy the loot entries provided by the mod into a separate file, for example
mod_types.xml, and upload it to this folder. If the mod already provides a suitable file, you can rename it accordingly.Open
cfgeconomycore.xmlin the mission folder. Add the following section inside the existing<economycore>element. Keep the existing contents of the file:<ce folder="custom"> <file name="mod_types.xml" type="types" /> </ce>
Important: If you change an existing item, its existing usage, tag and value lines must also remain in your file. Otherwise, the item may no longer spawn in its previous locations.
- Upload the edited
cfgeconomycore.xmlback to the mission folder and restart the server.
The mod must be installed and enabled. Item names, categories, tags, usage areas and loot tiers must exactly match the mod’s instructions. If a mod also requires cfgspawnabletypes.xml or other files, follow the mod’s installation instructions for those files as well.
For more technical information about additional and overridden Central Economy files, see the official DayZ documentation.