边缘世界 RimWorld

边缘世界 RimWorld

Improve This
此主题已被锁定
The Old One 2022 年 8 月 26 日 下午 2:20
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>
< >
正在显示第 1 - 2 条,共 2 条留言
Hex  [开发者] 2022 年 8 月 31 日 上午 11:14 
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.
最后由 Hex 编辑于; 2022 年 8 月 31 日 上午 11:14
Hex  [开发者] 2022 年 8 月 31 日 下午 12:35 
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.
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50