Hi all, I'm fairly new to this and learning new things daily as I build my own small servers.
After all the tutorials studied, I also wanted to contribute something here.
If more experienced modders / server owners find a mistake, please let me know so I can update the tutorial and still learn myself!
I have learned a new way to edit the types.xml without damaging it or having it overwritten by an update.
The whole thing works like this.
1. Step
At the beginning we leave the types.xml from the folder below remains as is.
mpmissions/dayzOffline.xxxxx/db
2. Step
now we create a folder for example "CustomTypes" where our types.xml will be placed
mpmissions/dayzOffline.xxxxx/CustomTypes
3. Step
In our example, I'll take two mods (CodeLock and BaseBuildingPlus), so we go on and create a folder for each of the Mods where we put later the types.xml and the cfgspawnabletypes if the mod has one.
mpmissions/dayzOffline.xxxxx/CustomTypes/CodeLock
mpmissions/dayzOffline.xxxxx/CustomTypes/BBP
mpmissions/dayzOffline.xxxxx/CustomTypes/Mod_of_your_choise
.
.
.
4. Step
Now we go to the folder "mpmissions/dayzOffline.xxxxx/" and make a backup of the file cfgeconomycore.xml !!! VERY IMPORTANT !!!
Then we open this file to edit it. Here we will enter the single paths of our splitted types.xml.
.....
<defaults>
<default name="dyn_radius" value="30" />
....
<default name="save_types_startup" value="true"/>
</defaults>
</economycore>
As you can see above, this is a part of cfgeconomycore.xml. Important for us now is the line after </defaults>
here we will insert the paths of the individual types.xml of our installed mods. In our example, I'll take two mods to list this below. (CodeLock & BaseBuildingPlus in this case)
So we gonna add these lines to the above xml
5. Step
................
<defaults>
<default name="dyn_radius" value="30" />
.......
<default name="save_types_startup" value="true"/>
</defaults>
<!-- Code Lock START -->
<ce folder="CustomTypes/CodeLock">
<file name="codelock_types.xml" type="types" />
<file name="xxxx_cfgspawnabletypes.xml" type="spawnabletypes" />
</ce>
<!-- Code Lock END -->
<!-- BaseBuildingPlus START -->
<ce folder="CustomTypes/BBP">
<file name="BBP_types.xml" type="types" />
<file name="xxxx_cfgspawnabletypes.xml" type="spawnabletypes" />
</ce>
<!-- BaseBuildingPlus END -->
<!-- Mod of your choise START -->
<ce folder="CustomTypes/Mod_of_your_choise">
<file name="Mod_of_your_choise_types.xml" type="types" />
<file name="Mod_of_your_choise_cfgspawnabletypes.xml" type="spawnabletypes" />
</ce>
<!-- Mod of your choise END -->
</economycore>
So you put the path where your types and your spawnabletypes is locked, and on the next line you put the name of your types.xml and at least what type this file is (types or spawnabletypes)
<ce folder="CustomTypes/Mod_of_your_choise"> <!-- the foldername inside the CustomTypes Folder -->
<file name="Mod_of_your_choise_types.xml" type="types" /> <!-- the name of your types.xml file and the type of this file -->
<file name="Mod_of_your_choise_cfgspawnabletypes.xml" type="spawnabletypes" /> <!-- the name of your cfgspanabletypes.xml file and the type of this file -->
</ce>
6. Step
Test if your changes work correctly with an Admin Tool Ingame, if specific Items of an xml is spawning correctly!
Below you will find an example of cfgeconomycore.xml.
I hope this little tutorial will help you, bring some structure and at the same time security for your types.xml.
If you have further questions, let me know. I am looking forward to your feedback
Virus Total - Result
example_cfgeconomycore.rar