๐ฉธ a small tool to help categorize your dayz server types
- Download the latest binary executable from the releases.
- When running the executable, pass the path to the
types.xml
folder of the mission you wish to categorize. - The executable will create a new folder called
output
which will contain the separated type files,types.xml
replacement, and an extract fromcfgeconomycore.xml
with the new fields.
- Copy the
types
folder generated insideoutput
and insert it into a corresponding mission'sdb
folder. (If you wish to change that, look into the extract of cfgeconomycore.xml). - Copy the extract of
cfgeconomycore.xml
within the<economycore>
tags and paste it insidecfgeconomycore.xml
. (The<ce>
tag'sfolder
field corresponds to where thetypes
folder should be located). - Replace the
types.xml
folder in thedb
folder with the one generated insideoutput
.
- If any of the values shown in base
types.xml
are missing from thecategories.json
, the script will notify you after the completion and output the missing values inoutput/unused.xml
.
-
In
categories.json
, a field inside the base of the object stands for the group. The name is written as follows[t = types | e = events]-[name]
. It's important to get the types right, as if for example theinfected
are given the spawn type oftypes
it will not work. -
The value of the field should be a string array. An array should contain the Id names of the items that should be in that group. If the string begins with
#
, it means it's a comment, and when generating the type files, it will be written in the file as a comment to help distinguish between groups. -
The
categories.json
file is read from the./
folder, so it is important to keep in mind that the binary is located in the same folder as thecategories.json
file.