• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

xpath. Cant quite get it to work.

Tklaebo

Refugee
Hey.

I'm trying to alter the outcome of an recipe by having it produce more end products.

I've figured out how to alter the ingrediants by using xpath.

However I cannot figure out how to alter the outcome.

Here is what I got.

<set xpath="/recipes/recipe[@name=ammoArrowStone]/property[@name=count]/@count">10</set>

What am I missing since it still produces 1 arrow?

I used this to alter ingrediant:

<set xpath="/recipes/recipe[@name=ammoArrowStone]/ingredient[@name=DFsharpRock]/@count">10</set>

Is there a way to alter all the ingrediants in 1 command line or do I have to make 1 line pr ingrediant in each recipe?

Appreciate all help.

I've tried searching for this, but couldn't find an exact match. Please don't nuke me if there already is a thread that describes my exact problem.

 
after much failing I finally figured it out.

I made it to complicated and failed.

Here is how I solved it:

<set xpath="/recipes/recipe[@name=ammoArrowStone]/@count">5</set>

 
Back
Top