边缘世界 RimWorld

边缘世界 RimWorld

Vanilla Factions Expanded - Empire
TurtleShroom 2023 年 4 月 4 日 上午 8:51
Patch to Fix Hathr Compatibility
引用自 TurtleShroom
I theorize that this is a conflict between your Mod and the Hathr Mod, as shown here:
https://www.steamcommunity.com/sharedfiles/filedetails/?id=2891047264

The Hathr Mod adds two titles to the Empire: Seer and Awakened. I suspect that this breaks the Great Hierarchy's generation.

Perhaps you could write a Patch or something to incorporate these? I already notified the gentleman behind the Hathr Mod of the same problem.

Through my tests, I have confirmed my suspicion and have written a Patch to make your Mod compatible with the Hathr Mod.

<?xml version="1.0" encoding="utf-8" ?> <Patch> <Operation Class="PatchOperationConditional"> <!-- DO THE GENTILES KNOW? --> <xpath>/Defs/RoyalTitleDef[defName="HathrAcolyte"]</xpath> <!-- If they do, SHUT IT DOWN. --> <match Class="PatchOperationRemove"> <success>Always</success> <xpath>Defs/RoyalTitleDef[defName="HathrAcolyte]</xpath> </match> <!-- If the first XPATH does not exist, the original code stands. All according to plan. --> </Operation> <Operation Class="PatchOperationConditional"> <!-- DO THE GENTILES KNOW? --> <xpath>/Defs/RoyalTitleDef[defName="HathrSeer"]</xpath> <!-- If they do, SHUT IT DOWN. --> <match Class="PatchOperationRemove"> <success>Always</success> <xpath>Defs/RoyalTitleDef[defName="HathrSeer]</xpath> </match> <!-- If the first XPATH does not exist, the original code stands. All according to plan. --> </Operation> <Operation Class="PatchOperationConditional"> <!-- Does this exist? --> <xpath>/Defs/PawnKindDef[defName="HathrPsychic"]</xpath> <!-- If it does, do this replacement. --> <match Class="PatchOperationReplace"> <success>Always</success> <xpath>Defs/PawnKindDef[defName="HathrPsychic"]/titleRequired</xpath> <value> <titleRequired>Knight</titleRequired> </value> </match> <!-- If the first XPATH does not exist, the original code stands. All according to plan. --> </Operation> <Operation Class="PatchOperationConditional"> <!-- Does this exist? --> <xpath>/Defs/PawnKindDef[defName="HathrPlayer"]</xpath> <!-- If it does, do this replacement. --> <match Class="PatchOperationReplace"> <success>Always</success> <xpath>Defs/PawnKindDef[defName="HathrPlayer"]/titleRequired</xpath> <value> <titleRequired>Acolyte</titleRequired> </value> </match> <!-- If the first XPATH does not exist, the original code stands. All according to plan. --> </Operation> </Patch>

You do not need to credit me. Helping your great Mod is a reward enough.


-TURTLESHROOM
< >
正在显示第 1 - 3 条,共 3 条留言
Oskar Potocki  [开发者] 2023 年 4 月 4 日 上午 10:25 
We will not be adding that patch on our end, sorry.
TurtleShroom 2023 年 4 月 4 日 下午 2:16 
引用自 Oskar Potocki
We will not be adding that patch on our end, sorry.

Why? Is it broken? Would it damage your Mod?
最后由 TurtleShroom 编辑于; 2023 年 4 月 4 日 下午 2:17
legodude17  [开发者] 2023 年 4 月 4 日 下午 2:39 
引用自 TurtleShroom
引用自 Oskar Potocki
We will not be adding that patch on our end, sorry.

Why? Is it broken? Would it damage your Mod?
A) The mod it is patching is marked as obsolete and abandoned by the author.
B) We try to limit integrated compatibility patches to large mods, or where it would be infeasible to patch from the other end.
< >
正在显示第 1 - 3 条,共 3 条留言
每页显示数: 1530 50