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

Xpath APPEND Possible bug with skill-unlocked recipes? (SOLVED)

JasonX

Refugee
EDIT: Found a typo in the code (added an extra >) resolved by the suggestion to check the mod generated configs.

Hi all,

Added a new light recipe to the game using an existing model/icon. 

WITHOUT COMMA: When I use the following append, the skill requirement and tracking pages are borked per image 1

<!-- add electrical recipes to unlock code -->
<append xpath="/progression/crafting_skills/crafting_skill[@name='craftingElectrician']/display_entry[@name_key='electricianT1']/unlock_entry/@item">,HadeslightIndustrialRed></append>
<append xpath="/progression/crafting_skills/crafting_skill[@name='craftingElectrician']/effect_group/passive_effect[@level='25,100']/@tags">,HadeslightIndustrialRed></append>





WITH COMMA: When I add a comma (,) to the value, they appear correctly but there is now a ghost item added to the tracking page per image 2
 

<!-- add electrical recipes to unlock code -->
<append xpath="/progression/crafting_skills/crafting_skill[@name='craftingElectrician']/display_entry[@name_key='electricianT1']/unlock_entry/@item">,HadeslightIndustrialRed,></append>
<append xpath="/progression/crafting_skills/crafting_skill[@name='craftingElectrician']/effect_group/passive_effect[@level='25,100']/@tags">,HadeslightIndustrialRed,></append>





7d2d_1.jpg

7d2d_2.jpg

 
Last edited by a moderator:
Try removing the comma from the end. It isn't needed since it will be the last entry. Just use the one in front.

 
Have a read of my post again... the first XML example is your suggestion.. and it doesn't work. :(

 
Ah, my bad. One, are there any errors/warnings when loading into a game to test it? Two, check the ConfigDump for the game save you are testing on and look at craftingElectrician in its progression.xml to make sure your changes went where you want them. You can find these in \AppData\Roaming\7DaysToDie\Saves\[MAP NAME]\[GAME NAME]\ConfigsDump

 
Checking the generated configs in ConfigDump was a great suggestion - thanks.

It seems that I had added an additional > greater than symbol, as revealed by the generated configs:

Code:
        <unlock_entry item="generatorbank,electricwirerelay,switch,tripwirepost,ceilingLight01_player,industrialLight01_player,industrialLight02_player,ceilingLight07_player,HadeslightIndustrialRed,>" unlock_tier="1">
 
Back
Top