Jump to content

GoGoGadget

Members
  • Posts

    3
  • Joined

Posts posted by GoGoGadget

  1. <config>

    <set xpath="/lootcontainers/lootcontainer[@id=25']/item[@name=resourceFeather]/@count">5,10</set>

    </config>

     

    gives me an error upon loading "XmlException: name cannot begin with the "]" character, hexadecimal value 0x5D. Line 2, position 53" which I believe is referring to the "]" after @id='25'"]?

     

    Edit: Figured it out, it was the " after '25'. Thanks for the help!

  2. Your XPath starts with /loot/, which isn't a valid node. Shouldn't it be xpath="/lootcontainers/ ?

     

    Is everything else right? I still get an error "XpathException: Expression must evaluate to a node-set" after changing it to

     

    <config>

    <set xpath="/lootcontainers[@id=25]/@name='resourceFeather'/@count">5,10</set>

    </config>

    I've tried <set xpath="/lootcontainers/lootcontainer[@id=25]/@name='resourceFeather'/@count">5,10</set> too and get the same error.

     

    I'm just not clear on how to target the things beyond "[@id=25]" and its attributes.

  3. I understand how to change the size of a loot container's loot box. What I don't understand is how to make a mod that edits the amount of each item in the loot container.

     

    For example, I know

     

    <set xpath="/lootcontainers/lootcontainer[@id=25]/@size">7,6</set>

    will change the bird nest's loot box size to 7x6.

     

    However, how do I change the amount of eggs and feathers gained from each bird's nest? I don't understand how to point to "resourceFeather" to change the count. I know I can easily change the XML itself. What I'm asking is how do I make a modlet to edit this?

     

    <lootcontainer id="25" count="1,2" size="6,2" sound_open="UseActions/open_garbage" sound_close="UseActions/close_garbage" loot_quality_template="qualBaseTemplate">

    <item name="foodEgg" prob="0.25"/>

    <item name="resourceFeather" count="1,5" prob="0.75"/>

    </lootcontainer>

     

    I've tried

     

    <config> <set xpath="/loot/lootcontainer[@id='25']/@name='resourceFeather'/@count">5,10</set> </config>

     

    and many other things but nothing works. Can't find any other mods to reverse engineer to make this work, either.

×
×
  • Create New...