RimWorld

RimWorld

[SYR] Trait Value
Side1iner Oct 30, 2022 @ 11:05am
Red error - the value colors work when in mod options, in-game they're disabled (all white, as if values didn't exist)
Error in static constructor of SyrTraitValue.HarmonyPatches:

System.TypeInitializationException: The type initializer for 'SyrTraitValue.HarmonyPatches' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object
at SyrTraitValue.TraitValueUtility.LoadSavedValues (System.Boolean reset) [0x00117] in <c8d79a86bd284b2ba24dcb5ddd42f2ab>:0
at SyrTraitValue.HarmonyPatches..cctor () [0x00023] in <c8d79a86bd284b2ba24dcb5ddd42f2ab>:0
--- End of inner exception stack trace ---
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 (wrapper dynamic-method) Verse.StaticConstructorOnStartupUtility.Verse.StaticConstructorOnStartupUtility.CallAll_Patch1()
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch1 (string)
(wrapper dynamic-method) Verse.StaticConstructorOnStartupUtility:Verse.StaticConstructorOnStartupUtility.CallAll_Patch1 ()
Verse.PlayDataLoader/<>c:<DoPlayLoad>b__4_5 ()
Verse.LongEventHandler:ExecuteToExecuteWhenFinished ()
Verse.LongEventHandler:UpdateCurrentAsynchronousEvent ()
Verse.LongEventHandler:LongEventsUpdate (bool&)
(wrapper dynamic-method) Verse.Root:Verse.Root.Update_Patch1 (Verse.Root)
Verse.Root_Entry:Update ()