DayZ
Zyamaia Jul 20, 2021 @ 11:08pm
Modding cfgeconomycore.xml
ok after reading a LOT but not seeming to get anywhere, I want to add CPBWeapons to my server and from what little I understand I have to edit cfgeconomycore.xml to add CPBWeapons type.xml in there but no clue how. Any help would be GREATLY appreciated. LOL I am totally stumped.
< >
Showing 1-3 of 3 comments
Hell Jul 21, 2021 @ 12:56am 
You copy/paste the contents of the types.xml file supplied with the mod into the server types.xml file you have in your mpmissions/Offline.Chernarus or another map name/db folder. That will get items spawning, you can adjust numbers, zones etc for each item after you have done this. Backup your original working types file first as any error will stop loot spawning completely. Hope this helps, good luck :3
Tengri Jul 21, 2021 @ 5:05am 
i added this mod to my server, you just may copy mod's folder to your server's folder and copy the key to key's folder.
Then, you have to select in mod's type folder witch item you want to add and copy it in your server's type folder at the end.

I never touched cfgeconomycore.xml file in my life..... why?

if you use a trader i cannot help you because trader in dayz in an herresy XD

The mod works fine and i don't have any bug.
Last edited by Tengri; Jul 21, 2021 @ 5:06am
SmashT Jul 21, 2021 @ 11:17am 
You would create a folder in your mission folder , I'll name it CPBWeapons_CE as an example. \mpmissions\dayzOffline.chernarusplus\CPBWeapons_CE

Inside that folder you would have your CPBWeapons_types.xml, CPBWeapons_cfgspawnabletypes.xml etc.

Your cfgeconomycore would look like this, you can see the lines at the end referencing the folder and types/spawnable types within it.

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <economycore> <classes> <!-- These are rootclasses to be used by economy. Do not forget to add attribute act="character", if root class represents character (player, infected, animal) Do not forget to add attribute act="car", if root class represents moveable vehicles --> <rootclass name="DefaultWeapon" /> <!-- weapons --> <rootclass name="DefaultMagazine" /> <!-- magazines --> <rootclass name="Inventory_Base" /> <!-- inventory items --> <rootclass name="HouseNoDestruct" reportMemoryLOD="no" /> <!-- houses, wrecks --> <rootclass name="SurvivorBase" act="character" reportMemoryLOD="no" /> <!-- player characters --> <rootclass name="DZ_LightAI" act="character" reportMemoryLOD="no" /> <!-- infected, animals --> <rootclass name="CarScript" act="car" reportMemoryLOD="no" /> <!-- cars (sedan, hatchback, transitBus, V3S, ...) --> </classes> <defaults> <default name="dyn_radius" value="30" /> <default name="dyn_smin" value="0" /> <default name="dyn_smax" value="0" /> <default name="dyn_dmin" value="1" /> <default name="dyn_dmax" value="5" /> <default name="log_ce_loop" value="false"/> <default name="log_ce_dynamicevent" value="false"/> <default name="log_ce_vehicle" value="false"/> <default name="log_ce_lootspawn" value="false"/> <default name="log_ce_lootcleanup" value="false"/> <default name="log_ce_lootrespawn" value="false"/> <default name="log_ce_statistics" value="false"/> <default name="log_ce_zombie" value="false"/> <default name="log_ce_animal" value="false"/> <default name="log_storageinfo" value="false"/> <default name="log_hivewarning" value="true"/> <default name="log_missionfilewarning" value="true"/> <default name="save_events_startup" value="true"/> <default name="save_types_startup" value="true"/> </defaults> <!-- CPBWeapons_ ECONOMY --> <ce folder="CPBWeapons_CE"> <file name="CPBWeapons_types.xml" type="types" /> <file name="CPBWeapons_cfgspawnabletypes.xml" type="spawnabletypes" /> </ce> </economycore>

Last edited by SmashT; Jul 21, 2021 @ 12:20pm
< >
Showing 1-3 of 3 comments
Per page: 1530 50

Date Posted: Jul 20, 2021 @ 11:08pm
Posts: 3