Jump to content

Erkusandor

Members
  • Posts

    8
  • Joined

Erkusandor's Achievements

Refugee

Refugee (1/15)

0

Reputation

  1. That did it <3 Thank you very much! Edit: PS, is the root node always the same? Or is it dependend what i want to change? I couldn't find a hint in the tutorial on the first page.
  2. Well that did help... a little. Also: facepalm -.- Now it creates a new error: "Xml exception: Multiple document element was detectet. Line 3 position 2." It seems there is a problem with a second time altering meleeToolShovelStone. I am sure of that, because i tested the following alternatives: 1.) Switching line 2 and 3. No difference. 2.) Making line 3 a comment. New errror: "Xml exception: Multiple document element was detectet. Line 6 position 2." Which is the append command where i add the new code to meleeToolShovelStone. 3.) Deleting everything except line 2. No errors occur, but it does not change anything ingame; the second Action is still the power attack. Same goes with everything deletet except line 3. Here is the currently used code: I am not NEW to coding, but again, i can't make head or tail of it. Following the guide on the first page this SHOULD work, shouldn't it?
  3. Although that's right, it did not fix anything. I also tried <append xpath="items/item[@name='meleeToolShovelStone']" Just to be sure, i have a folder in my mods folder called "Erkus easy gardening", containing a ModInfo.xml which contains this <?xml version="1.0" encoding="UTF-8" ?> <xml> <ModInfo> <Name value="Easy Gardening" /> <Description value="Lets yout till soil with the stone shovel" /> <Author value="Erkusandor" /> <Version value="1.0" /> <Website value="" /> </ModInfo> </xml> and a folder called config with a items.xml which contains this <!-- Die Sekundنraktion der Steinschaufel lِschen --> <remove xpath="items/item[@name='meleeToolShovelStone']/property[@class='Action1']"> <remove xpath="items/item[@name='meleeToolShovelStone']/effect_group[@name='Power Attack']"> <!-- Die Sekundنraktion der Harke zur Steinschaufel hinzufügen --> <append xpath="items/item[@name='meleeToolShovelStone']"> <property class="Action1"> <property name="Class" value="Repair"/> <property name="Repair_amount" value="30"/> <property name="Upgrade_hit_offset" value="-4"/> <property name="Delay" value="1.3"/> <property name="Upgrade_action_sound" value="ImpactSurface/metalhitearth"/> <property name="Allowed_upgrade_items" value="meleeToolHoeIron,resourceClayLump"/> </property> </append> It creates an error called "Unexpected end of file. Current depth is 2, line 15 position 10." and a second NullReferenceException error "Object reference not set to an instant of an object". I am sry if that's an annoying request, but i'm not deep enough into coding to get whats wrong.
  4. I changed the second part to the following <append xpath="items/item[@item name='meleeToolShovelStone']"> <property class="Action1"> <property name="class" value="Repair"/> <property name="Repair_amount" value="30"/> <property name="Upgrade_hit_offset" value="-4"/> <property name="Delay" value="1.3"/> <property name="Upgrade_action_sound" value="ImpactSurface/metalhitearth"/> <property name="Allowed_upgrade_items" value="meleeToolHoeIron,resourceClayLump"/> </property> </append> Now it shows me a NullReferenceError. Did i missunderstand the append command?
  5. Hi everyone! I want to change the stone shovel, so that it can till soil like the hoe. I tested it by changing the items.xml manually and it works, but if i try it via mod it generates an error message, so obviously my mistake is in the modlet / syntax. Hope you can help me. I simply want to replace the secondary action of the shovel (power attack by default) with the secondary action of the hoe. Here is my mod-code. <!-- Deleting the secondary action and the power attack --> <remove xpath="items/item[@item name='meleeToolShovelStone']/property[@class='Action1']"> <remove xpath="items/item[@item name='meleeToolShovelStone']/effect_group[@name='Power Attack']"> <!-- Adding the new secondary action --> <append xpath="items/item[@item name='meleeToolShovelStone']/property[@class='Action1']"> <property name="class" value="Repair"/> <property name="Repair_amount" value="30"/> <property name="Upgrade_hit_offset" value="-4"/> <property name="Delay" value="1.3"/> <property name="Upgrade_action_sound" value="ImpactSurface/metalhitearth"/> <property name="Allowed_upgrade_items" value="meleeToolHoeIron,resourceClayLump"/> </append>
×
×
  • Create New...