cheeky2
-
Posts
7 -
Joined
Content Type
Profiles
Forums
Store
Articles
A20 Bugs
A21 Bugs
Events
Posts posted by cheeky2
-
-
@Malacay2k11
Ah ok... i will try that. Thanks
greets cheeky2
0 -
Hi again
ok i didn't know that but when i try this (your suggestion from my first post)...
<changedrecipes> <remove xpath="/recipes/recipe[@name='resourceScrapLead']/wildcard_forge_category" /> <append xpath="/recipes/recipe[@name='resourceScrapLead']"> <ingredient name="unit_lead" count="3" /> </append> </changerecipes>
i get an error: Failed loading xml and parsing XML (recipes.xml)
XML exeption 'changed recipes' is expected Line 7 Position 10
so i tried some other codes which i could think of might work or not (in my second post)...
tried this now and get yet another error in Line 12 which is the Line where <changedrecipes> is written...
<changedrecipes> <remove xpath="/recipes/recipe[@name='resourceScrapLead']"> <ingredient name="unit_lead" count="1" /> <append xpath="/recipes/recipe[@name='resourceScrapLead']"> <ingredient name="unit_lead" count="3" /> </append> </changerecipes>
omg i see it... changedrecipes and change(d)recipes... ok going to try again pff I just copied your code and didn't see that the d is missing lol
Still not working tho. I will try Malacay2k11's suggestion and see if that works.
thanks again for trying to help
greets cheeky2
0 -
Hi again
Thanks for trying to help
This is not working either. I thought about removing xpath... but didn't know i could use the 'wildcard forge category' in it because it is not mentioned there.
It's still only giving 1 - i also tried this:
<changedrecipes> <remove xpath="/recipes/recipe[@name='resourceScrapLead']"> <ingredient name="unit_lead" count="1" /> </remove> <append xpath="/recipes/recipe[@name='resourceScrapLead']"> <ingredient name="unit_lead" count="3" /> </append> </changerecipes>
and this
<changedrecipes> <remove xpath="/recipes/recipe[@name='resourceScrapLead']/wildcard_forge_category"> <ingredient name="unit_lead" count="1" /> </remove> <append xpath="/recipes/recipe[@name='resourceScrapLead']"> <ingredient name="unit_lead" count="3" /> </append> </changedrecipes>
still no luck. I tried your suggestion with and without the </remove> at the end.
greets cheeky2
0 -
Hi everyone
I would like to change the output for Lead in the Forge but everything i tried, is not working. I am new to XPath modding (have only changed simple things in A15 and A16) This is what i have tried so far...
<changedrecipes> <!-- <append xpath="/recipes/recipe[@name='resourceScrapLead']/@count">3</append> --> <!-- <set xpath="/recipes/recipe[@name='resourceScrapLead']/@count">3</set> --> <!-- <set xpath="/recipes/recipe[@name='resourceScrapLead']/ingredient [@name='unit_lead']/@count">3</set> --> <!-- <set xpath="/recipes/recipe[@name='resourceScrapLead']/ingredient [@name='unitlead']/@count">3</set> --> <append xpath="/recipes"> <recipe name="resourceScrapLead" count="1" craft_area="forge" material_based="true" craft_time = "1" craft_exp_gain="0" always_unlocked="true"> <ingredient name="unit_lead" count="3"/> </recipe> </append> </changedrecipes>
Somehow noone is asking for this to be changed (or i can't find it, been searching on Google, and went thru Nexus, Youtube and this Forum so far) and i am starting to wonder if we can change it at all ? I have tried the codes all seperatly but the output stays at 1.
I have the 'ModInfo.xml' so that's not the problem.
Any help is greatly appreciated
greets cheeky2
0
XPath Modding Explanation Thread
in Tutorials & Guides
Posted
Hi again
ok this works... thanks Malacay2k11 for the tip with the weight... it was in items.xml not in materials.xml btw.
Thanks for all the help @sphereii and @ Malacay2k11
greets cheeky2