metalfront
New member
Hey Folks,
i hope you can help me. It's kinda confusing... I keep getting the error message below on startup of my server:
My goal is creating zombie loot related to their appearance, pretty similar to what Deceptive Pastry (--> Restored Zombie Loot) did in his/her mod.
What i did:
I started by creating just one new lootcontainer for the cowboy (zombieBoe) and one new lootgroup called "cowboyStuff". Here comes the Mod-Code for loot.xml.
The error occurs, whether i use A) this mod or B) insert the code into the game's loot.xml. In case B) i inserted the lootgroup right after the last lootgroup of the orignal file. The new lootcontainer was added at the end of file... However. It's the same error with pointing to the position where the code says </lootgroup> for closing the new cowboyStuff-lootgroup.
I also replaced my mod with the one by Deceptive Pastry and when i started the server, no errors occured. So, what did i do wrong?
Besides, I also changed entityclasses.xml and added the following lines right after the EntityLootContainerRegular entry:
i hope you can help me. It's kinda confusing... I keep getting the error message below on startup of my server:
What i wanted to do:2019-03-24T17:12:33 37.294 ERR Failed loading and parsing XML (loot.xml):
XmlException: 'item' is expected Line 20, position 6.
2019-03-24T17:12:33 37.316 ERR XML loader: Patching 'loot.xml' from mod 'Zombie specific Loot' failed
NullReferenceException: Object reference not set to an instance of an object
My goal is creating zombie loot related to their appearance, pretty similar to what Deceptive Pastry (--> Restored Zombie Loot) did in his/her mod.
What i did:
I started by creating just one new lootcontainer for the cowboy (zombieBoe) and one new lootgroup called "cowboyStuff". Here comes the Mod-Code for loot.xml.
Code:
<configs>
<append xpath="/lootcontainers">
<!-- Zombie Cowboy Lootgroup -->
<lootgroup name="cowboyStuff">
<item group="cowboyHatAll" prob="0.10">
<item group="weaponsHuntingRifle+ammo" prob="0.10"/>
<item group="weaponsMagnum+ammo" prob="0.05"/>
<item name="meleeToolHuntingKnife" prob="0.15"/>
<item name="ammo762mmBulletFMJSteel" count="5,25" prob="0.03"/>
<item name="ammo44MagnumBulletSteel" count="5,17" prob="0.03"/>
<item name="ammo762mmBulletFMJ" count="5,25" prob="0.10"/>
<item name="ammo44MagnumBullet" count="5,17" prob="0.10"/>
<item name="drugHerbalAntibiotics" prob="0.05"/>
<item name="drugPainkillers" prob="0.02"/>
<item name="cowboyBoots" prob="0.15"/>
<item name="leatherDuster" prob="0.05"/>
<item name="leatherDusterBlack" prob="0.05"/>
<item name="leatherPoncho" prob="0.02"/>
</lootgroup>
<!-- Zombie Cowboy Loot Container -->
<lootcontainer id="201" count="1,2" size="5,10" destroy_on_close="false" sound_open="UseActions/open_backpack" sound_close="UseActions/close_backpack" open_time="1" loot_quality_template="baseTemplate">
<item group="cannedfood" count="1" prob="15"/>
<item group="treasureMaps" count="1" prob="5"/>
<item group="questChallenge" count="1" prob="2"/>
<item group="cowboyStuff" count="1" prob="50"/>
<item name="casinoCoin" count="200,410" prob="8"/>
<item name="oldCash" count="50,200" prob="10"/>
<item name="drinkJarBeer" count="1" prob="10"/>
</lootcontainer>
</append>
</configs>
I also replaced my mod with the one by Deceptive Pastry and when i started the server, no errors occured. So, what did i do wrong?
Besides, I also changed entityclasses.xml and added the following lines right after the EntityLootContainerRegular entry:
Code:
<entity_class name="EntityLootContainerCowboy" extends="EntityLootContainerRegular">
<property name="LootListOnDeath" value="201"/>
</entity_class>