边缘世界 RimWorld

边缘世界 RimWorld

NewRatkinPlus
Mr.Jiang 10 月 28 日 下午 5:43
Right-click float menu broken when NewRatkinPlus is active
Hey, I’ve run into a strange issue that seems to be caused by NewRatkinPlus.
When this mod is enabled, all pawns (not just Ratkin ones) can’t use the right-click menu at all — no matter what I try to interact with, the game throws a red error instead of showing the float menu.

Here’s what happens:

Right-clicking the ground, items, or targets causes a red NullReferenceException.
Can’t give any orders (move, attack, rescue, etc).
Once I disable NewRatkinPlus, everything goes back to normal immediately, even with the rest of my modlist still active.

I tested this pretty thoroughly:

The issue appears even with just Core + Harmony + NewRatkinPlus.
Removing NewRatkinPlus fixes it.
Other mods like RimTalk, Melee Animation, Vehicle Framework, etc. are not the cause.

So it looks like something in NewRatkinPlus is patching the float menu or map click logic in a way that breaks vanilla behavior.

Here’s the red error from the log:

Exception in RimWorld.Selector.HandleMapClicks: System.NullReferenceException: Object reference not set to an instance of an object
[Ref 407E2A08]
at RimWorld.FloatMenuMakerMap.GetProviderOptions (RimWorld.FloatMenuContext context, System.Collections.Generic.List`1[T] options) [0x00000] in <24d25868955f4df08b02c73b55f389fe>:0
- TRANSPILER net.pardeike.rimworld.lib.harmony: IEnumerable`1 VisualExceptions.ExceptionsAndActivatorHandler:Transpiler(IEnumerable`1 instructions, MethodBase original)
at RimWorld.FloatMenuMakerMap.GetOptions (System.Collections.Generic.List`1[T] selectedPawns, UnityEngine.Vector3 clickPos, RimWorld.FloatMenuContext& context) [0x0012e] in <24d25868955f4df08b02c73b55f389fe>:0
- POSTFIX cj.rimtalk: Void RimTalk.Patch.FloatMenuPatch:Postfix(List`1 selectedPawns, Vector3 clickPos, FloatMenuContext context, List`1& __result)
- POSTFIX co.uk.epicguru.meleeanimation: Void AM.Patches.Patch_FloatMenuMakerMap_GetOptions:Postfix(Vector3 clickPos, List`1 selectedPawns, List`1 __result)
at RimWorld.Selector.HandleMapClicks () [0x000b8] in <24d25868955f4df08b02c73b55f389fe>:0
- TRANSPILER net.pardeike.rimworld.lib.harmony: IEnumerable`1 VisualExceptions.ExceptionsAndActivatorHandler:Transpiler(IEnumerable`1 instructions, MethodBase original)
- PREFIX SmashPhil.VehicleFramework: Boolean Vehicles.Patch_Misc:MultiSelectFloatMenu(List`1 ___selected)

Might be related to a Harmony patch touching `FloatMenuMakerMap` or `Selector.HandleMapClicks()` without checking for nulls or valid pawn context.

Would appreciate if you could take a look — it’s a really fun mod otherwise, but this bug basically breaks all pawn interactions.

Thanks in advance!
< >
正在显示第 1 - 1 条,共 1 条留言
< >
正在显示第 1 - 1 条,共 1 条留言
每页显示数: 1530 50