RimWorld

RimWorld

Improve This
This topic has been locked
The Old One 26 Aug, 2022 @ 2:20pm
Dubs Bad Hygiene support
Dubs Bad Hygiene doesn't use the core BuildingBase def and instead makes it's own for some reason that being BasedHygieneMom. As a result Improve This doesn't work with anything from Dubs Bad Hygiene and or any other mod that does similar. Dubs Bad Hygiene is the most popular mod I'm aware of that does this.

There may be a way to universally fix it but if there is it is beyond my current skills but I do have a simple "code" block that can be added to the Improve This patch file to support Dubs Bad Hygiene and Sparkling Worlds (another mod that uses it's own version of BuildingBase)

<Operation Class="PatchOperationFindMod"> <mods> <li>Dubs Bad Hygiene</li> </mods> <match Class="PatchOperationConditional"> <xpath>/Defs/ThingDef[@Name="BasedHygieneMom"]/comps</xpath> <nomatch Class="PatchOperationAdd"> <xpath>/Defs/ThingDef[@Name="BasedHygieneMom"]</xpath> <value> <comps> <li> <compClass>RimWorld___Improve_This.ImproveThisComp</compClass> </li> </comps> </value> </nomatch> <match Class="PatchOperationAdd"> <xpath>/Defs/ThingDef[@Name="BasedHygieneMom"]/comps</xpath> <value> <li> <compClass>RimWorld___Improve_This.ImproveThisComp</compClass> </li> </value> </match> </match> </Operation> <Operation Class="PatchOperationFindMod"> <mods> <li>Sparkling Worlds - Full Mod</li> <li>Sparkling Worlds - Modular Core - Reduced features</li> </mods> <match Class="PatchOperationConditional"> <xpath>/Defs/ThingDef[@Name="BuildingBaseSW"]/comps</xpath> <nomatch Class="PatchOperationAdd"> <xpath>/Defs/ThingDef[@Name="BuildingBaseSW"]</xpath> <value> <comps> <li> <compClass>RimWorld___Improve_This.ImproveThisComp</compClass> </li> </comps> </value> </nomatch> <match Class="PatchOperationAdd"> <xpath>/Defs/ThingDef[@Name="BuildingBaseSW"]/comps</xpath> <value> <li> <compClass>RimWorld___Improve_This.ImproveThisComp</compClass> </li> </value> </match> </match> </Operation>
< >
Showing 1-2 of 2 comments
Hex  [developer] 31 Aug, 2022 @ 11:14am 
Added for now, but I'm also now looking for a better way to do things (i.e. patch anything that has CompQuality already on it). I was already not a fan of the overly-broad patch on BuildingBase.
Last edited by Hex; 31 Aug, 2022 @ 11:14am
Hex  [developer] 31 Aug, 2022 @ 12:35pm 
Found a better way to do things, it should just work now regardless of how mods choose to do things...as long as they actually use CompQuality.
< >
Showing 1-2 of 2 comments
Per page: 1530 50