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

Rough Modding Start

Oort

New member
Trying to get started in understanding modding and am trying to add in some simple blocks that appear only to be available in creative mode for decoration. Things like the pipes and control panels. When I put in my mod it loads :

Code:
2019-01-27T07:05:03 6.356 INF [MODS] Trying to load from Oort_Ballance_Adjust
2019-01-27T07:05:03 6.357 INF [MODS] Loaded Mod: Item Balance Adjustments (1.0)
But soon after that I get

Code:
ERR XML loader: Patching 'recipes.xml' from mod 'Item Balance Adjustments' failed
yyUnexpectedEof
This is the mod code

Code:
<OortMod>
<append xpath="recipes/">
	<recipe name="metalPipeStraight" count="1" craft_area="workbench">
		<ingredient name="resourceScrapIron" count="25"/>
		<ingredient name="resourceForgedIron" count="2"/>
	</recipe>
</append>
</OortMod>
Trying to look at other mods for references on what I might be missing or doing wrong, but not having any luck. Can anyone point me in the right direction?

 
Try this instead.

Code:
<configs>

<append xpath="/recipes">
	<recipe name="metalPipeStraight" count="1" craft_area="workbench">
		<ingredient name="resourceScrapIron" count="25"/>
		<ingredient name="resourceForgedIron" count="2"/>
	</recipe>
</append>

</configs>
 
Trying to get started in understanding modding and am trying to add in some simple blocks that appear only to be available in creative mode for decoration. Things like the pipes and control panels. When I put in my mod it loads :

Code:
2019-01-27T07:05:03 6.356 INF [MODS] Trying to load from Oort_Ballance_Adjust
2019-01-27T07:05:03 6.357 INF [MODS] Loaded Mod: Item Balance Adjustments (1.0)
But soon after that I get

Code:
ERR XML loader: Patching 'recipes.xml' from mod 'Item Balance Adjustments' failed
yyUnexpectedEof
This is the mod code

Code:
<OortMod>
<append xpath="recipes/">
	<recipe name="metalPipeStraight" count="1" craft_area="workbench">
		<ingredient name="resourceScrapIron" count="25"/>
		<ingredient name="resourceForgedIron" count="2"/>
	</recipe>
</append>
</OortMod>
Trying to look at other mods for references on what I might be missing or doing wrong, but not having any luck. Can anyone point me in the right direction?
Would you mind attaching the full file? That looks like its valid XML

 
Try this instead.
Oh duh. That did it! Thanks KhaineGB, I was afraid it was going to be something newbish involved. Misplaced slash ...geesh. Odd that it successfully loaded it that way.

Would you mind attaching the full file? That looks like its valid XML
That is pretty much the full recipe.xml file Sphereii. I have a few other entries, but they are all commented out till I could get at least the first one to work. Silly slash put in wrong place - gah. lol

Thanks so much for helping me out with this!

 
Back
Top