Jump to content

Modification not applying to recipe or repair class...


Recommended Posts

I'm trying to make the blade traps more expensive right now and seem to have an issue that I cannot seem to figure out. First, the modification in blocks.xml is below.


<set xpath="/blocks/block[@name='bladeTrap']/property[@class='RepairItems']/property[@name='resourceForgedSteel']/@value">20</set>

Not sure why this isn't working. Next is the recipe component that is not applying.


<set xpath="/recipes/recipe[@name='bladeTrap']/ingredient[@name='resourceForgedIron']/property[@name='count']/@value">20</set>
<set xpath="/recipes/recipe[@name='bladeTrap']/ingredient[@name='resourceForgedSteel']/property[@name='count']/@value">20</set>
<set xpath="/recipes/recipe[@name='bladeTrap']/ingredient[@name='resourceMechanicalParts']/property[@name='count']/@value">16</set>
<set xpath="/recipes/recipe[@name='bladeTrap']/ingredient[@name='resourceElectricParts']/property[@name='count']/@value">12</set>
<set xpath="/recipes/recipe[@name='bladeTrap']/ingredient[@name='resourceOil']/property[@name='count']/@value">20</set>

Again, it looks right from what I understand about this XML stuff. C++ is my cup of tea though, so something might be wrong here. Have I missed something?

Link to comment
Share on other sites

5 hours ago, The_Great_Sephiroth said:

I'm trying to make the blade traps more expensive right now and seem to have an issue that I cannot seem to figure out. First, the modification in blocks.xml is below.

 

<set xpath="/blocks/block[@name='bladeTrap']/property[@class='RepairItems']/property[@name='resourceForgedSteel']/@value">20</set>

 

Not sure why this isn't working. Next is the recipe component that is not applying.

 

<set xpath="/recipes/recipe[@name='bladeTrap']/ingredient[@name='resourceForgedIron']/property[@name='count']/@value">20</set>
<set xpath="/recipes/recipe[@name='bladeTrap']/ingredient[@name='resourceForgedSteel']/property[@name='count']/@value">20</set>
<set xpath="/recipes/recipe[@name='bladeTrap']/ingredient[@name='resourceMechanicalParts']/property[@name='count']/@value">16</set>
<set xpath="/recipes/recipe[@name='bladeTrap']/ingredient[@name='resourceElectricParts']/property[@name='count']/@value">12</set>
<set xpath="/recipes/recipe[@name='bladeTrap']/ingredient[@name='resourceOil']/property[@name='count']/@value">20</set>

 

Again, it looks right from what I understand about this XML stuff. C++ is my cup of tea though, so something might be wrong here. Have I missed something?

The blocks line works fine. you can always check your config dumps to make sure something applied.

 

The recipe lines though are not quite right. Property, name, and value are not descriptions they're for when the file actually states those.
So for recipes it would need to look like this

<set xpath="/recipes/recipe[@name='bladeTrap']/ingredient[@name='resourceForgedIron']/@count">20</set>
<set xpath="/recipes/recipe[@name='bladeTrap']/ingredient[@name='resourceForgedSteel']/@count">20</set>
<set xpath="/recipes/recipe[@name='bladeTrap']/ingredient[@name='resourceMechanicalParts']/@count">16</set>
<set xpath="/recipes/recipe[@name='bladeTrap']/ingredient[@name='resourceElectricParts']/@count">12</set>
<set xpath="/recipes/recipe[@name='bladeTrap']/ingredient[@name='resourceOil']/@count">20</set>

 

Edited by RevenantWit (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...