Help with a patch not working please

Started by Sixdd, May 30, 2017, 10:55:29 AM

Previous topic - Next topic

Sixdd

So I'm in the process of making a modpack and I'm working on patches to make things all nice and working together and such but I ran into a problem. Everything in this patch works fine except the FueledSmithy and Forge fuelFilter changes.
<?xml version="1.0" encoding="utf-8" ?>
<Patch>

<Operation Class="PatchOperationReplace">
<xpath>/Resources/ThingDef[defName="Bamboo"]/thingCategories</xpath>
<value>
<thingCategories>
<li>WoodLogs</li>
</thingCategories>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>*/ThingDef[defName="Campfire"]/comps/li[@Class="CompProperties_Refuelable"]/fuelFilter/thingDefs/li</xpath>
<value>
<li>WoodLog</li>
<li>WoodBirch</li>
<li>WoodCecropia</li>
<li>WoodOak</li>
<li>WoodPine</li>
<li>WoodPoplar</li>
<li>WoodSaguaro</li>
<li>WoodTeak</li>
<li>WoodEbony</li>
<li>WoodAmaranth</li>
<li>WoodWillow</li>
<li>WoodMaple</li>
<li>VG_IronwoodLog</li>
<li>WoodCherry</li>
<li>WoodCamellia</li>
<li>WoodAcacia</li>
<li>WoodPalm</li>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>*/ThingDef[defName="FueledStove"]/comps/li[@Class="CompProperties_Refuelable"]/fuelFilter/thingDefs/li</xpath>
<value>
<li>WoodLog</li>
<li>WoodBirch</li>
<li>WoodCecropia</li>
<li>WoodOak</li>
<li>WoodPine</li>
<li>WoodPoplar</li>
<li>WoodSaguaro</li>
<li>WoodTeak</li>
<li>WoodEbony</li>
<li>WoodAmaranth</li>
<li>WoodWillow</li>
<li>WoodMaple</li>
<li>VG_IronwoodLog</li>
<li>WoodCherry</li>
<li>WoodCamellia</li>
<li>WoodAcacia</li>
<li>WoodPalm</li>
</value>
</Operation>

<Operation Class="PatchOperationReplace">

<!--  This works fine  -->
<xpath>*/ThingDef[defName="FueledGenerator"]/comps/li[@Class="CompProperties_Refuelable"]/fuelFilter/thingDefs/li</xpath>
<value>
<li>Charcoal</li>
<li>Chemfuel</li>
<li>VG_Biofuel</li>
</value>
</Operation>

<!--  This fails  -->
<Operation Class="PatchOperationReplace">
<xpath>*/ThingDef[defName="FueledSmithy"]/comps/li[@Class="CompProperties_Refuelable"]/fuelFilter/thingDefs/li</xpath>
<value>
<li>Charcoal</li>
<li>Chemfuel</li>
<li>VG_Biofuel</li>
</value>
</Operation>

<!--  This fails  -->
<Operation Class="PatchOperationReplace">
<xpath>*/ThingDef[defName="Forge"]/comps/li[@Class="CompProperties_Refuelable"]/fuelFilter/thingDefs/li</xpath>
<value>
<li>Charcoal</li>
<li>Chemfuel</li>
<li>VG_Biofuel</li>
</value>
</Operation>

</Patch>


I'd appreciate any help

cuproPanda

The fueled smithy has DefName, not defName, which is causing the issue. If you're using my forge from Powerless, it also uses DefName, and is called POW_Forge unless you renamed it.
cuproPanda's Mods: Survivalist's Additions, Additional Joy Objects, Cupro's Drinks, Quarry, Cupro's Stones, Zen Garden, Cupro's Alloys, Preset Filtered Zones, & more!

Sixdd

Ah, it's always something tiny and hard to notice with XML. Thank you very much. :D