• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Help with adding new lootgroup

psarchi

New member
Code:
<configs>
   <append xpath="/lootcontainers">
       <lootgroup name="newgroup" count="all">
           <item name="ammo762mmBullet"/>
           <item name="ammo9mmBullet"/>
       </lootgroup>
   </append>
   <append xpath="lootcontainers/lootgroup[@name='weaponsBasicGuns+ammo']>
        <item group="newgroup" prob="1"/>
   </append>
</configs>
the debugger on game side says:

2019-01-11T13:59:09 16.315 ERR XML loader: Loading and parsing 'loot.xml' failed

2019-01-11T13:59:09 16.315 EXC lootgroup 'newgroup' does not exist or has not been defined before being reference by lootcontainer/lootgroup id='weaponsBasicGuns+ammo'
can you help me how to fix this ?

 
Code:
<append xpath="lootcontainers/lootgroup[@name='weaponsBasicGuns+ammo']>
(Line 8)

...is missing a quotation mark at the end. It should be:

Code:
<append xpath="lootcontainers/lootgroup[@name='weaponsBasicGuns+ammo']">
 
Back
Top