边缘世界 RimWorld

边缘世界 RimWorld

Gene Tools - Forked
Transpile failed! Not able to find branch sequence in GtDisableLoadChildBodyFailsafe
Error log excerpt:

[Gene Tools - Forked] Transpile failed! Not able to find branch sequence!
GeneTools.GtPatches+GtDisableLoadChildBodyFailsafe.Transpiler(...)
...
HarmonyLib.CodeTranspiler.GetResult(...)

Details:
The transpiler in GtDisableLoadChildBodyFailsafe fails because it cannot locate the expected branch sequence in the target method's IL.
This likely happens because RimWorld 1.6 changed the IL layout, or another mod has already patched the same method.

Environment:

RimWorld 1.6.x

Gene Tools - Forked (latest workshop version)

Harmony 2.3.6

Mods affecting xenotypes/genes also active

Suggested fix:
Update the transpiler to be more flexible in matching IL (or add a null-check/fail-safe so the mod can still load without breaking).

Thanks for the fork.
< >
正在显示第 1 - 1 条,共 1 条留言
tinywhitecat  [开发者] 9 月 10 日 下午 2:35 
Welp. TIL opening a discussion doesn't send a notification to the mod owner.
What this transpiler does is disable a feature in vanilla Rimworld where the bodies of babies/children are hardcoded to reset to the standard bodies every time you load a save.

So, the only way this can happen is if another transpiler hits the same code. TBH, 99.99% chance said other transpiler is doing exactly the same thing as this one, which means you can probably ignore it.

There is a config option 'disableTranspile' that disables this transpiler in favour of a worse solution (child bodies will be re-randomized on load). But assuming another mod is doing the same thing it's preferable to keep it as is.

Arguably I could remove the error, but in the very small chance something actually breaks it having the error is better - maybe I should swap it for a warning
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50