Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Maaxar

#1
Help / Can't seem to get my patch working
November 06, 2018, 10:10:44 PM
Hello, I am trying to write a small patch (first time using xml patching).

The patch is supposed to add recipes from the VGP Garden Resources mod to the smelter from the Lord of the Rims mod.

This is what I have:
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>*/ThingDef[defName = "LotR_TableSmithy"]</xpath>
<success>Invert</success>
</li>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "LotR_TableSmithy"]/recipes</xpath>
<value>
<li>ExtractRawSteelLeaf</li>
<li>ExtractRawPlasteelLeaf</li>
<li>ExtractRawGoldLeaf</li>
<li>ExtractRawJadeLeaf</li>
<li>ExtractRawSilverLeaf</li>
<li>ExtractRawUraniumLeaf</li>
<li>ExtractBulkSteelLeaf</li>
<li>ExtractBulkPlasteelLeaf</li>
<li>ExtractbulkGoldLeaf</li>
<li>ExtractBulkRawJadeLeaf</li>
<li>ExtractBulkSilverLeaf</li>
<li>ExtractBulkUraniumLeaf</li>
</value>
</li>
</operations>
</Operation>
</Patch>


Everything loads okay, but when I get in the game the smelter does not have the recipes.

Am I missing something obvious?