RimWorld

RimWorld

Way Better Romance
bunny May 24, 2024 @ 10:23am
new bug on game startup
Hi! running into a weird red bug on startup that i wasn't getting previously. huge modlist--sorry, but this mod was the only one mentioned in the error so i figured i'd come here first?


Error in static constructor of BetterRomance.OnStartup: System.TypeInitializationException: The type initializer for 'BetterRomance.OnStartup' threw an exception. ---> HarmonyLib.HarmonyException: Patching exception in method System.Single RimWorld.Pawn_RelationsTracker::CompatibilityWith(Verse.Pawn otherPawn) ---> System.InvalidProgramException: Invalid IL code in (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.Pawn_RelationsTracker.CompatibilityWith_Patch0 (RimWorld.Pawn_RelationsTracker,Verse.Pawn): IL_001b: call 0x0000000b


[Ref C9C4351E]
at HarmonyLib.PatchFunctions.UpdateWrapper (System.Reflection.MethodBase original, HarmonyLib.PatchInfo patchInfo) [0x00094] in <abec11463bc04855a5322a0a868aeb22>:0
at HarmonyLib.PatchClassProcessor.ProcessPatchJob (HarmonyLib.PatchJobs`1+Job[T] job) [0x000be] in <abec11463bc04855a5322a0a868aeb22>:0
--- End of inner exception stack trace ---
[Ref 123AF6D0]
at HarmonyLib.PatchClassProcessor.ReportException (System.Exception exception, System.Reflection.MethodBase original) [0x0013c] in <abec11463bc04855a5322a0a868aeb22>:0
at HarmonyLib.PatchClassProcessor.Patch () [0x000a0] in <abec11463bc04855a5322a0a868aeb22>:0
at HarmonyLib.Harmony.<PatchAll>b__10_0 (System.Type type) [0x00007] in <abec11463bc04855a5322a0a868aeb22>:0
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action) [0x00014] in <abec11463bc04855a5322a0a868aeb22>:0
at HarmonyLib.Harmony.PatchAll (System.Reflection.Assembly assembly) [0x00006] in <abec11463bc04855a5322a0a868aeb22>:0
at HarmonyLib.Harmony.PatchAll () [0x0001d] in <abec11463bc04855a5322a0a868aeb22>:0
at <0x26963279c80 + 0x000c2> <unknown method>
--- End of inner exception stack trace ---
[Ref CDB3C172]
at (wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor(intptr)
at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (System.RuntimeTypeHandle type) [0x0002a] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Verse.StaticConstructorOnStartupUtility.CallAll () [0x00028] in <f0ac5eb9b52e4cc396c70fc9a4ee15e5>:0
- POSTFIX LunarFramework.Bootstrap: Void LunarFramework.Internal.Patches.Patch_Verse_StaticConstructorOnStartupUtility:CallAll_Postfix()
- POSTFIX PerformanceOptimizer.Main: Void PerformanceOptimizer.InitializeMod:Postfix()
- POSTFIX net.avilmask.rimworld.mod.NonUnoPinata: Void NonUnoPinata.Patches.StaticConstructorOnStartupUtility_CallAll_NonUnoPinataPatch:Postfix()
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch4 (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.StaticConstructorOnStartupUtility.CallAll_Patch3 ()
Verse.PlayDataLoader/<>c:<DoPlayLoad>b__4_4 ()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished ()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent ()
Verse.LongEventHandler:LongEventsUpdate (bool&)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.Update_Patch1 (Verse.Root)
Verse.Root_Entry:Update ()

full log from right after save load here:
https://gist.github.com/HugsLibRecordKeeper/9e793121dd4aa954acc497992f711551
< >
Showing 1-2 of 2 comments
bunny May 24, 2024 @ 10:27am 
oop, RimHUD also just threw this:

[[RimHUD v1.15.3 Auto-deactivation report]]
(This error appears to have been triggered by'Way Better Romance')

Object reference not set to an instance of an object

Trace:
[WayBetterRomance] Object reference not set to an instance of an object
[Ref B672EEF4]
at BetterRomance.SettingsUtilities.ChildAge (Verse.Pawn pawn)
at BetterRomance.SettingsUtilities.ConvertAge (System.Single age, Verse.Pawn pawn)
at BetterRomance.HarmonyPatches.StatPart_Age_AgeEffect.NewCurve (Verse.Pawn pawn, Verse.SimpleCurve oldCurve)
at BetterRomance.HarmonyPatches.StatPart_Age_AgeEffect.Prefix (Verse.Pawn pawn, System.Single& __result, System.Boolean ___humanlikeOnly, System.Boolean ___useBiologicalYears, Verse.SimpleCurve ___curve)
at RimWorld.StatPart_Age.AgeMultiplier (Verse.Pawn pawn)
- PREFIX rimworld.divineDerivative.romance: Boolean BetterRomance.HarmonyPatches.StatPart_Age_AgeEffect:Prefix(Pawn pawn, Single& __result, Boolean ___humanlikeOnly, Boolean ___useBiologicalYears, SimpleCurve ___curve)
at RimWorld.StatPart_Age.TransformValue (RimWorld.StatRequest req, System.Single& val)
at RimWorld.StatWorker.FinalizeValue (RimWorld.StatRequest req, System.Single& val, System.Boolean applyPostProcess)
- POSTFIX VanillaExpanded.VFEA: Void VFEAncients.HarmonyPatches.PowerPatches:SetStat(StatRequest req, Single& val, StatWorker __instance)
at RimWorld.StatWorker.GetValue (RimWorld.StatRequest req, System.Boolean applyPostProcess)
- TRANSPILER Krkr.RocketMan: IEnumerable`1 RocketMan.Optimizations.StatWorker_Patch:Transpiler(IEnumerable`1 instructions, MethodBase original)
at RimWorld.StatWorker.GetValue (Verse.Thing thing, System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
at RimWorld.StatExtension.GetStatValue (Verse.Thing thing, RimWorld.StatDef stat, System.Boolean applyPostProcess, System.Int32 cacheStaleAfterTicks)
- POSTFIX OskarPotocki.VanillaSocialInteractionsExpanded: Void VanillaSocialInteractionsExpanded.GetStatValue_Patch:Postfix(Thing thing, StatDef stat, Boolean applyPostProcess, Single& __result)
- POSTFIX OskarPotocki.VFECore: Void VFECore.StatExtension_GetStatValue_Patch:Postfix(Thing thing, StatDef stat, Boolean applyPostProcess, Single& __result)
at RimHUD.Extensions.TextExtensions.AppendStatLine (System.Text.StringBuilder self, RimWorld.StatDef def)
at RimHUD.Interface.Hud.Models.Values.SkillValue.PrepareBuilder ()
at RimHUD.Interface.Hud.Models.Values.SkillPlantsValue.GetTooltip ()
at RimHUD.Interface.Hud.Tooltips.TooltipsPlus.Draw (UnityEngine.Rect rect, System.Func`1[TResult] getter, RimHUD.Interface.Hud.Tooltips.TooltipsPlus+TooltipId id)
at RimHUD.Interface.Hud.Tooltips.TooltipsPlus.DrawCompact (UnityEngine.Rect rect, System.Func`1[TResult] getter)
at RimHUD.Interface.Hud.Widgets.ValueWidget.Draw (UnityEngine.Rect rect)
at RimHUD.Interface.Hud.Layers.WidgetLayer.Draw (UnityEngine.Rect rect)
at RimHUD.Interface.Hud.Layers.RowLayer+<>c__DisplayClass12_0.<Draw>b__1 (RimHUD.Interface.Hud.Layers.WidgetLayer child)
at System.Linq.Utilities+<>c__DisplayClass1_0`1[TSource].<CombinePredicates>b__0 (TSource x)
at System.Linq.Enumerable+WhereArrayIterator`1[TSource].MoveNext ()
at HarmonyLib.CollectionExtensions.Do[T] (System.Collections.Generic.IEnumerable`1[T] sequence, System.Action`1[T] action)
at RimHUD.Interface.Hud.Layers.RowLayer.Draw (UnityEngine.Rect rect)
at RimHUD.Interface.Hud.Layers.PanelLayer.Draw (UnityEngine.Rect rect)
at RimHUD.Interface.Hud.Layers.HStackLayer.Draw (UnityEngine.Rect rect)
at RimHUD.Interface.Hud.Layers.VStackLayer.Draw (UnityEngine.Rect rect)
at RimHUD.Interface.Hud.Layers.LayoutLayer.Draw (UnityEngine.Rect rect)
divineDerivative  [developer] May 24, 2024 @ 11:50am 
First error is from Integrated Creep Joiners, which will be fixed in the next update. The second is harder to pin down. It doesn't seem to be related to RimHUD at all since that same error is in the log without mentioning RimHUD.

Is there anything special about Prissy and Bishop? Those two are mentioned in some of the errors. If there's nothing obvious, I'll need you to help narrow it down for me. Use a binary search to get your mod list as small as possible with the error still happening and get me another log.
< >
Showing 1-2 of 2 comments
Per page: 1530 50