RimWorld

RimWorld

Long Distance
Verse.FloatMenuOption GetFailureReason(Verse.Pawn) Failure on 1.5
Hey, it seems that your mod doesn't work on 1.5. There are at least 5 comments stating that, and it seems that I've found the reason.


Just download the mode of Long Distance (I do have Harmony installed) on 1.5 and got into a situation that the option of inviting a pawn's wife didn't show up in the comms. But, the mod DOES WORK ON 1.6.

In terms of 1.5. I have tried to download the earlier versions of the mod from open source websites, but they also don't seem to work. The debug console didn't show any issues/errors not even a warnings, but it did send the Verse.FloatMenuOption GetFailureReason(Verse.Pawn) when I opened the comms for the first time in the save:


```
Grabbed GetFailureReason: Verse.FloatMenuOption GetFailureReason(Verse.Pawn)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Message (string)
LongDistance.CommsConsoleFloatMenuPatch:Postfix (RimWorld.Building_CommsConsole,System.Collections.Generic.IEnumerable`1<Verse.FloatMenuOption>&,Verse.Pawn)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.Building_CommsConsole.GetFloatMenuOptions_Patch1 (RimWorld.Building_CommsConsole,Verse.Pawn)
RimWorld.FloatMenuMakerMap:AddHumanlikeOrders (UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>)
RimWorld.FloatMenuMakerMap:ChoicesAtFor (UnityEngine.Vector3,Verse.Pawn,bool)
RimWorld.FloatMenuMakerMap:TryMakeFloatMenu (Verse.Pawn)
RimWorld.Selector:HandleMapClicks ()
RimWorld.Selector:SelectorOnGUI ()
RimWorld.MapInterface:HandleLowPriorityInput ()
RimWorld.UIRoot_Play:UIRootOnGUI ()
Verse.Root:OnGUI ()
```


It seems that there is some bug related to missing data or null references / mismatch between expected game state and what's available.

Hope it'll help you out to fix it!