RimWorld

RimWorld

Fertile Fields [1.1]
Thels May 3, 2020 @ 7:02am
Support for Electric Butcher and Stonecutter Tables
Hi,

I'm using the following two mods:

Electric Butcher Table: https://steamcommunity.com/sharedfiles/filedetails/?id=2025416804

Electric Stonecutter Table: https://steamcommunity.com/sharedfiles/filedetails/?id=1649368867

Unfortunately, the recipes from this mod do not appear in those tables. I managed to fix this for myself by adding the following code to Patches\PatchesOtherMods.xml:

<!-- Electric Butcher Table - Production -->

<Operation Class="PatchOperationConditional">
<success>Always</success>
<xpath>Defs/ThingDef[defName = "ElectricTableButcher"]</xpath>
<match Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationInsert">
<xpath>Defs/RecipeDef/recipeUsers/li[text()="TableButcher"]</xpath>
<value>
<li>ElectricTableButcher</li>
</value>
</li>
</operations>
</match>
</Operation>

<!-- Electric Stonecutter Table - Production -->

<Operation Class="PatchOperationConditional">
<success>Always</success>
<xpath>Defs/ThingDef[defName = "TableStonecutterElectric"]</xpath>
<match Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationInsert">
<xpath>Defs/RecipeDef/recipeUsers/li[text()="TableStonecutter"]</xpath>
<value>
<li>TableStonecutterElectric</li>
</value>
</li>
</operations>
</match>
</Operation>
Last edited by Thels; May 3, 2020 @ 7:03am
< >
Showing 1-4 of 4 comments
Jamaican Castle  [developer] May 3, 2020 @ 1:09pm 
Seems straightforward enough, I've uploaded those patches. Let me know if they break anything horribly.
Lanthrudar May 3, 2020 @ 3:35pm 
Why not get both of these items from one mod? Vanilla Expanded: Production https://steamcommunity.com/sharedfiles/filedetails/?id=1880253632&searchtext=vanilla+expanded+production

As far as I know all the fertilizer recipes copy from the non-electric base game to the electric versions in this mod already.

(And this means JC doesn't have to try to add support for every little mod for single item mods, when all of them are in one mod and people can choose to make the prod tables or not)
Last edited by Lanthrudar; May 3, 2020 @ 3:36pm
Thels May 4, 2020 @ 5:17am 
Thanks for the update, Jamaican!

@Lanthrudar: I'm not very fond of the Vanilla Expanded mods. Most of the Vanilla Expanded mods contain elements that stand out from the Vanilla experience too much for my taste.
SkullOG Nov 20, 2020 @ 5:12am 
I was then looking into patching the mod on my end but it seems you have done it. Thank you :)
< >
Showing 1-4 of 4 comments
Per page: 1530 50