Spring Sale Don't miss: Get a hefty 50% discount on your order
In this article, we will describe where you can download the required types.xml
file.
We will also explain how and where you can upload the edited types.xml
file.
You can download a types.xml
file here: GitHub.
Alternatively, you can also take one from your game directory.
For editing, it is best to use an editor with syntax highlighting, such as Notepad++.
As an example, we will change the entry for AK101
.
Original:
<type name="AK101">
<nominal>5</nominal>
<lifetime>28800</lifetime>
<restock>1800</restock>
<min>2</min>
<quantmin>-1</quantmin>
<quantmax>-1</quantmax>
<cost>100</cost>
<flags count_in_cargo="1" count_in_hoarder="1" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
<category name="weapons"/>
<usage name="Military"/>
<value name="Tier4"/>
</type>
Edited:
<type name="AK101">
<nominal>10</nominal>
<lifetime>28800</lifetime>
<restock>1800</restock>
<min>0</min>
<quantmin>-1</quantmin>
<quantmax>-1</quantmax>
<cost>100</cost>
<flags count_in_cargo="1" count_in_hoarder="1" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/>
<category name="weapons"/>
<usage name="Military"/>
<value name="Tier4"/>
</type>
By making this change, there will be up to twice as many AK101
weapons in the world as before.
Here is an explanation of the individual settings:
Setting | Description |
---|---|
type | Determines which item will be spawned, for example, |
nominal | Determines the maximum number of an item, for example,
|
lifetime | Time in seconds before an item despawns if it has not been touched |
restock | Time in seconds for an item of the specified type to respawn. If the value is 0, all items will be spawned at once |
min | If the number of items in the world falls below this value, new items will be spawned |
quantmin | Min % of the quantity, for example, for ammunition |
quantmax | Max % of the quantity, for example, for ammunition |
cost | Priority for CE, the higher the value, the higher the priority |
flags | Example:
<flags count_in_cargo="1" count_in_hoarder="1" count_in_map="1" count_in_player="0" crafted="0" deloot="0"/> |
category | Determines the category of the item |
tag | Example <tag name="shelves" /> |
usage | Example <usage name="Military" /> |
value | Example <value name="Tier4" /> |
types.xml
file should be placed in the db folder of the respective map.configID/mpmissions/dayzOffline.chernarusplus/db/
configID/mpmissions/dayzOffline.enoch/db/
/123456/mpmissions/dayzOffline.enoch/db/
Your edited types.xml file will be included and used when you start your server.