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

XML Help please - adding a Garden Hoe to the Iron Tools

bloodlust67

New member
    <append xpath="/progression/crafting_skills/crafting_skill[@name='craftingHarvestingTools']/display_entry[@item='harvestToolsIron']">
        <unlock_entry item="meleeToolGardenHoe" unlock_tier="1" tags="meleeToolGardenHoe"/>
    </append>
    <append xpath="/progression/crafting_skills/crafting_skill[@name='craftingHarvestingTools']/effect_group">
        <passive_effect name="RecipeTagUnlocked" operation="base_set" level="11,100" value="1" tags="meleeToolGardenHoe"/>
        <passive_effect name="CraftingTier" operation="base_add" level="13,16,19,22,25,100" value="1,2,3,4,5,5" tags="meleeToolGardenHoe"/>
    </append>

The first part, trying to add the Garden Hoe to the visible list of Iron Tools in the Harvesting Tools lineup will not append. I was able to add the Garden Hoe as a sperate entry at the bottom of the page, but that's not what I want. I want to add it after the Iron Shovel when you click on Iron Tools in Harvesting Tools. The second part works, adding the recipe unlock and quality tiers. I wound up just using "set path" on the whole of craftingHarvestingTools in progression.xml, but then again, that's not what I'm wanting to do.

Can someone help me understand why the first part didn't work?

    <append xpath="/progression/crafting_skills/crafting_skill[@name='craftingHarvestingTools']/display_entry[@item='harvestToolsIron']">
        <unlock_entry item="meleeToolGardenHoe" unlock_tier="1" tags="meleeToolGardenHoe"/>
    </append>

Thanks in advance!

 
The code for craftingHarvestingTools:harvestToolsIron is:

<display_entry icon="meleeToolPickT1IronPickaxe" name_key="harvestToolsIron" has_quality="true" unlock_level="11,13,16,19,22,25" >
<unlock_entry item="meleeToolPickT1IronPickaxe,meleeToolShovelT1IronShovel,meleeToolAxeT1IronFireaxe" unlock_tier="1" />
</display_entry>




If I understand your question correctly, to add another option to the 'item' attribute I would try:   

 <append xpath="/progression/crafting_skills/crafting_skill[@name='craftingHarvestingTools']/display_entry[@name_key='harvestToolsIron']/unlock_entry/@item">,meleeToolGardenHoe</append>  (note the ,)

EDIT:

Looking at the code it should probably be:

<append xpath="/progression/crafting_skills/crafting_skill[@name='craftingHarvestingTools']/display_entry[@name_key='harvestToolsIron']/unlock_entry/property[@name='item']/@value">,meleeToolGardenHoe</append>  (note the ,)

The games code doesn't use tags so I don't think its needed for that statement.

Cheers

 
Last edited by a moderator:
JoeSloeMoe - your first suggestion worked:

<append xpath="/progression/crafting_skills/crafting_skill[@name='craftingHarvestingTools']/display_entry[@name_key='harvestToolsIron']/unlock_entry/@item">,meleeToolGardenHoe</append>

I tried both, the second would not append. Thank you for the help and this has furthered my understanding of XPath modding. Thank you :)

 
Back
Top