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

[XPath Help Request] Trying to add bones to more animals

abarham

New member
Hey everyone -- I've read through SphereII's XPath posts and looked at other mods that use this method, but cannot seem to get it to work. I'm trying to add bones to chickens when you slaughter them. Here is what I currently have, and it really doesn't seem to be working:

Code:
<configs>
<insertAfter xpath="/entityclasses/entity_class[@name='animalChicken']/property[@name='DeadBodyHitPoints']" >
   <drop event="Harvest" name="resourceFemur" tag="butcherHarvest" count="1"/>
</insertAfter>
</configs>
The area in the entityclasses.xml where harvesting is handled has multiple "drop" events, and I'm not sure how to access those directly, so I just opted to "insertAfter" the unique line directly before the harvest section.

Any help is greatly appreciated!

Also, two (hopefully) basic questions:

1) Is there a way to view the XML that is in memory, to see if what you did accomplished the correct XML changes?

2) Is there a way to reload 7D2D XML's without restarting the game? I see an XUi reload, but not a full xml reload.

 
But even though the entityclasses.xml is actually called


entity_classes
in the xml file this may help you in the right direction :)

1) Yes .. use F1 in console and type 'exportcurrentconfigs' look in your save folder and the name of the world you created will be in there, look for folder Configs, open xml and see if change applied .

2) No. Well strictly speaking you can drop to main menu and restart after a change to see if you get any exception errors but to get a full log of which modlets have loaded you need to restart the game unfortunately.

This is what you may see if it has worked in this case the modlet by Khelldon applied an extra setting plus the modlet Them bones added a drop event ...

Code:
<!-- 50% bigger -->
<property name="SizeScale" value="1.5"><!--Element appended by: "Khelldon - Bigger Bunny and Chicken"--></property>

	<drop event="Harvest" name="resourceFemur" tag="butcherHarvest" count="1"><!--Element appended by: "Them_Bones"--></drop>
</entity_class>
I used append to add the drop event

 
Last edited by a moderator:
This is all amazing, and the underscore helped -- this also fixed another issue I was having with loot.xml (because it's lootcontainer) ... at least I know what to look for, thanks!

 
Back
Top