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

Syntax for using/referring to "operation=Equals" in xpath

Kosmic Kerman

New member
What is the correct syntax for referring to operation=Equals in xpath?  In the xml files the syntax is <node name="foo" operation="Equals" value ="15"/>. I've tried operation="Equals" in a set command and I have tried operation="Equals" in an append command but both throw errors in the log file. I also tried using single quotes in the set command. The error in the log file was:

Requested value '"Equals"' was not found 





The quotes (single or double) varied depending on which I was using at the time. Ultimately I gave up and just replaced "Equals" with "GT" and the XML parser accepted it. I'd love to know the correct syntax for the future though.

Here are the various iterations of config changes I tried:


 <set xpath="/progression/perks/perk[@name='perkLockPicking']/effect_group/passive_effect[@name='LootProb' and @operation='base_set']/requirement/@operation">"Equals"</set>
 <set xpath="/progression/perks/perk[@name='perkLockPicking']/effect_group/passive_effect[@name='LootProb' and @operation='base_set']/requirement/@value">75</set>
 
AND
 


<append xpath="/progression/perks/perk[@name='perkLockPicking']/effect_group/passive_effect[@name='LootProb' and @operation='base_set']">
    <requirement name="ProgressionLevel" progression_name="craftingWorkstations" operation="Equals" value="75"/>
</append>



 





 
Last edited by a moderator:
On your set command, don't put the "" in the value you are changing:

 <set xpath="/progression/perks/perk[@name='perkLockPicking']/effect_group/passive_effect[@name='LootProb' and @operation='base_set']/requirement/@operation">Equals</set>

 
Back
Top