RimWorld

RimWorld

Way Better Romance
This topic has been locked
Error getting tip text
When Romance On The Rim's rules were set, the social column for Pawn characters with lovers displayed “Error getting tip text.” and this error occurred.

Romance On The Rimの戒律を設定した状態で、恋人がいるポーン同士の社交欄を見ると「Error getting tip text.」と表示され、このようなエラーが出てきました。

System.NullReferenceException: Object reference not set to an instance of an object [Ref CD111AAE] at BetterRomance.RotR_Integration.PreceptExplanation (RimWorld.PreceptDef preceptDef, System.Single value) [0x00001] in D:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\WayBetterRomance\Source\Mod Integration\RotR_Integration.cs:58 at BetterRomance.RotR_Integration.RotRCheatingPreceptExplanation (Verse.Pawn pawn) [0x0001c] in D:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\WayBetterRomance\Source\Mod Integration\RotR_Integration.cs:43 at BetterRomance.HookupUtility.HookupFactors (Verse.Pawn initiator, Verse.Pawn target) [0x001aa] in D:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\WayBetterRomance\Source\HookupUtility.cs:490 at BetterRomance.HarmonyPatches.SocialCardUtility_GetPawnRowTooltip.HookupExplanation (Verse.Pawn initiator, Verse.Pawn target) [0x000c0] in D:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\WayBetterRomance\Source\Harmony\Biotech\SocialCardUtility.cs:192 at BetterRomance.HarmonyPatches.SocialCardUtility_GetPawnRowTooltip.PawnRowTooltipHelper (Verse.Pawn initiator, Verse.Pawn target, System.Text.StringBuilder& stringBuilder) [0x00001] in D:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\WayBetterRomance\Source\Harmony\Biotech\SocialCardUtility.cs:168 at RimWorld.SocialCardUtility.GetPawnRowTooltip (RimWorld.SocialCardUtility+CachedSocialTabEntry entry, Verse.Pawn selPawnForSocialInfo) [0x0006a] in <ed371ab4349b419183d9be3af652e6dc>:0 - TRANSPILER rimworld.divineDerivative.romance: IEnumerable`1 BetterRomance.HarmonyPatches.SocialCardUtility_GetPawnRowTooltip:Transpiler(IEnumerable`1 instructions, ILGenerator ilg) at RimWorld.SocialCardUtility+<>c__DisplayClass50_0.<DrawPawnRow>b__0 () [0x00000] in <ed371ab4349b419183d9be3af652e6dc>:0 at Verse.ActiveTip.get_FinalText () [0x0000d] in <ed371ab4349b419183d9be3af652e6dc>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch4 (string) Verse.ActiveTip:get_FinalText () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.ActiveTip.get_TipRect_Patch1 (Verse.ActiveTip) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Glue:AbiFixup<UnityEngine.Rect Verse.ActiveTip:get_TipRect(),UnityEngine.Rect Verse.ActiveTip.get_TipRect_Patch1(Verse.ActiveTip)> (Verse.ActiveTip,UnityEngine.Rect&) Verse.TooltipHandler:CalculateInitialTipPosition (System.Collections.Generic.List`1<Verse.ActiveTip>) Verse.TooltipHandler:DrawActiveTips () Verse.TooltipHandler:DoTooltipGUI () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.UIRoot.UIRootOnGUI_Patch1 (Verse.UIRoot) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.UIRoot_Play.UIRootOnGUI_Patch2 (RimWorld.UIRoot_Play) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.OnGUI_Patch1 (Verse.Root)
< >
Showing 1-5 of 5 comments
divineDerivative  [developer] Aug 3 @ 10:32am 
Fixed, thank you for reporting!
Originally posted by divineDerivative:
Fixed, thank you for reporting!

Hey there,

I'm having a similar issue regarding an Error getting tip text.
Whenever a spouse or partner dies, hovering over the dead partner's name in the social tab leads to Error getting tip text spam. I've noticed that death for non-partner pawns leads to removal in the social tab, so I don't know if spouses are meant to also be removed from social tab on death.

I'm running Vanilla Social Expanded and Altered Carbon alongside this mod.

I've attached the error below.

System.NullReferenceException: Object reference not set to an instance of an object [Ref A198523E] at BetterRomance.HarmonyPatches.InteractionWorker_RomanceAttempt_OpinionFactor.Prefix (Verse.Pawn initiator, Verse.Pawn recipient, System.Single& __result) [0x00001] in <d0af61fbf26048538ab423dea005e6f9>:0 at RimWorld.InteractionWorker_RomanceAttempt.OpinionFactor (Verse.Pawn initiator, Verse.Pawn recipient) [0x0001f] in <ed371ab4349b419183d9be3af652e6dc>:0 - TRANSPILER rimworld.divineDerivative.romance: IEnumerable`1 BetterRomance.HarmonyPatches.InteractionWorker_RomanceAttempt_OpinionFactor:Transpiler(IEnumerable`1 instructions) - PREFIX rimworld.divineDerivative.romance: Boolean BetterRomance.HarmonyPatches.InteractionWorker_RomanceAttempt_OpinionFactor:Prefix(Pawn initiator, Pawn recipient, Single& __result) at RimWorld.InteractionWorker_RomanceAttempt.SuccessChance (Verse.Pawn initiator, Verse.Pawn recipient, System.Single baseChance) [0x00082] in <ed371ab4349b419183d9be3af652e6dc>:0 - POSTFIX OskarPotocki.VanillaSocialInteractionsExpanded: Void VanillaSocialInteractionsExpanded.SuccessChance_Patch:Postfix(Single& __result, Pawn initiator, Pawn recipient) at RimWorld.SocialCardUtility.RomanceExplanation (Verse.Pawn romancer, Verse.Pawn romanceTarget) [0x00065] in <ed371ab4349b419183d9be3af652e6dc>:0 at RimWorld.SocialCardUtility.GetPawnRowTooltip (RimWorld.SocialCardUtility+CachedSocialTabEntry entry, Verse.Pawn selPawnForSocialInfo) [0x0007b] in <ed371ab4349b419183d9be3af652e6dc>:0 - TRANSPILER rimworld.divineDerivative.romance: IEnumerable`1 BetterRomance.HarmonyPatches.SocialCardUtility_GetPawnRowTooltip:Transpiler(IEnumerable`1 instructions, ILGenerator ilg) - PREFIX Altered.Carbon: Boolean AlteredCarbon.SocialCardUtility_GetPawnRowTooltip_Patch:Prefix(CachedSocialTabEntry entry, Pawn selPawnForSocialInfo, String& __result) at RimWorld.SocialCardUtility+<>c__DisplayClass50_0.<DrawPawnRow>b__0 () [0x00000] in <ed371ab4349b419183d9be3af652e6dc>:0 at Verse.ActiveTip.get_FinalText () [0x0000d] in <ed371ab4349b419183d9be3af652e6dc>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch5 (string) Verse.ActiveTip:get_FinalText () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.ActiveTip.get_TipRect_Patch1 (Verse.ActiveTip) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Glue:AbiFixup<UnityEngine.Rect Verse.ActiveTip:get_TipRect(),UnityEngine.Rect Verse.ActiveTip.get_TipRect_Patch1(Verse.ActiveTip)> (Verse.ActiveTip,UnityEngine.Rect&) Verse.TooltipHandler:CalculateInitialTipPosition (System.Collections.Generic.List`1<Verse.ActiveTip>) Verse.TooltipHandler:DrawActiveTips () Verse.TooltipHandler:DoTooltipGUI () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.UIRoot.UIRootOnGUI_Patch1 (Verse.UIRoot) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.UIRoot_Play.UIRootOnGUI_Patch1 (RimWorld.UIRoot_Play) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.OnGUI_Patch1 (Verse.Root)
Last edited by nanufrog; Aug 3 @ 5:19pm
divineDerivative  [developer] Aug 3 @ 6:21pm 
This was really confusing at first, because surely vanilla doesn't check that stuff for dead people, right? Apparently it does, it just happens to not look at anything a dead person doesn't have.

This is fixed now!
Thanks for all your work. Great mod.
Thank you so much!
< >
Showing 1-5 of 5 comments
Per page: 1530 50