RimWorld

RimWorld

Big and Small - Framework
AerosAtar 1 Apr, 2024 @ 5:49am
[1.5] Compatibility issues with CM Colour Coded Mood Bar?
I get some or all of the following errors popping up whenever a lycanthrope shifts into their wolf form:

Node is null - you must called EnsureGraphicsInitialized() on the drawn dynamic thing Yoko before drawing it. UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) Verse.Log:ErrorOnce (string,int) Verse.PawnRenderTree:TraverseTree (System.Action`1<Verse.PawnRenderNode>) Verse.PawnRenderTree:InitializeAncestors () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.PawnRenderTree.TrySetupGraphIfNeeded_Patch2 (Verse.PawnRenderTree) Verse.PawnRenderTree:EnsureInitialized (Verse.PawnRenderFlags) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.PawnRenderer.RenderCache_Patch1 (Verse.PawnRenderer,Verse.Rot4,single,UnityEngine.Vector3,bool,bool,bool,bool,System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool) RimWorld.PawnCacheRenderer:OnPostRender () RimWorld.PawnCacheRenderer:RenderPawn (Verse.Pawn,UnityEngine.RenderTexture,UnityEngine.Vector3,single,single,Verse.Rot4,bool,bool,bool,bool,UnityEngine.Vector3,System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool) RimWorld.PortraitsCache/PortraitParams:RenderPortrait (Verse.Pawn,UnityEngine.RenderTexture) RimWorld.PortraitsCache:Get (Verse.Pawn,UnityEngine.Vector2,Verse.Rot4,UnityEngine.Vector3,single,bool,bool,bool,bool,System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool,System.Nullable`1<Verse.PawnHealthState>) ColoredMoodBar13.MoodPatch:DrawColonist (object,UnityEngine.Rect&,Verse.Pawn&,Verse.Map&,bool&,bool&,System.Collections.Generic.Dictionary`2<int, ColoredMoodBar13.MoodCache>) ColoredMoodBar13.VanillaDrawColonist:Prefix (RimWorld.ColonistBarColonistDrawer,UnityEngine.Rect&,Verse.Pawn&,Verse.Map&,bool&,bool&) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.ColonistBarColonistDrawer.DrawColonist_Patch1 (RimWorld.ColonistBarColonistDrawer,UnityEngine.Rect,Verse.Pawn,Verse.Map,bool,bool) RimWorld.ColonistBar:ColonistBarOnGUI () RimWorld.MapInterface:MapInterfaceOnGUI_BeforeMainTabs () RimWorld.UIRoot_Play:UIRootOnGUI () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.OnGUI_Patch1 (Verse.Root)

Exception setting up dynamic nodes for Yoko: System.NullReferenceException: Object reference not set to an instance of an object [Ref 384BF832] at Verse.PawnRenderTree.AddChild (Verse.PawnRenderNode child, Verse.PawnRenderNode parent) [0x00037] in <ade265c6622f40838b31c11cef15d9fe>:0 at Verse.PawnRenderTree.SetupGeneNodes () [0x000a5] in <ade265c6622f40838b31c11cef15d9fe>:0 at Verse.PawnRenderTree.SetupDynamicNodes () [0x00024] in <ade265c6622f40838b31c11cef15d9fe>:0 at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Verse.PawnRenderTree.TrySetupGraphIfNeeded_Patch2(Verse.PawnRenderTree) UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.PawnRenderTree.TrySetupGraphIfNeeded_Patch2 (Verse.PawnRenderTree) Verse.PawnRenderTree:EnsureInitialized (Verse.PawnRenderFlags) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.PawnRenderer.RenderCache_Patch1 (Verse.PawnRenderer,Verse.Rot4,single,UnityEngine.Vector3,bool,bool,bool,bool,System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool) RimWorld.PawnCacheRenderer:OnPostRender () RimWorld.PawnCacheRenderer:RenderPawn (Verse.Pawn,UnityEngine.RenderTexture,UnityEngine.Vector3,single,single,Verse.Rot4,bool,bool,bool,bool,UnityEngine.Vector3,System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool) RimWorld.PortraitsCache/PortraitParams:RenderPortrait (Verse.Pawn,UnityEngine.RenderTexture) RimWorld.PortraitsCache:Get (Verse.Pawn,UnityEngine.Vector2,Verse.Rot4,UnityEngine.Vector3,single,bool,bool,bool,bool,System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool,System.Nullable`1<Verse.PawnHealthState>) ColoredMoodBar13.MoodPatch:DrawColonist (object,UnityEngine.Rect&,Verse.Pawn&,Verse.Map&,bool&,bool&,System.Collections.Generic.Dictionary`2<int, ColoredMoodBar13.MoodCache>) ColoredMoodBar13.VanillaDrawColonist:Prefix (RimWorld.ColonistBarColonistDrawer,UnityEngine.Rect&,Verse.Pawn&,Verse.Map&,bool&,bool&) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.ColonistBarColonistDrawer.DrawColonist_Patch1 (RimWorld.ColonistBarColonistDrawer,UnityEngine.Rect,Verse.Pawn,Verse.Map,bool,bool) RimWorld.ColonistBar:ColonistBarOnGUI () RimWorld.MapInterface:MapInterfaceOnGUI_BeforeMainTabs () RimWorld.UIRoot_Play:UIRootOnGUI () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.OnGUI_Patch1 (Verse.Root)

Error rendering pawn portrait: System.NullReferenceException: Object reference not set to an instance of an object [Ref CC5FDAD6] at Verse.PawnRenderTree.ParallelPreDraw (Verse.PawnDrawParms parms) [0x0005c] in <ade265c6622f40838b31c11cef15d9fe>:0 at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Verse.PawnRenderer.RenderCache_Patch1(Verse.PawnRenderer,Verse.Rot4,single,UnityEngine.Vector3,bool,bool,bool,bool,System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool) UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.PawnRenderer.RenderCache_Patch1 (Verse.PawnRenderer,Verse.Rot4,single,UnityEngine.Vector3,bool,bool,bool,bool,System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool) RimWorld.PawnCacheRenderer:OnPostRender () RimWorld.PawnCacheRenderer:RenderPawn (Verse.Pawn,UnityEngine.RenderTexture,UnityEngine.Vector3,single,single,Verse.Rot4,bool,bool,bool,bool,UnityEngine.Vector3,System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool) RimWorld.PortraitsCache/PortraitParams:RenderPortrait (Verse.Pawn,UnityEngine.RenderTexture) RimWorld.PortraitsCache:Get (Verse.Pawn,UnityEngine.Vector2,Verse.Rot4,UnityEngine.Vector3,single,bool,bool,bool,bool,System.Collections.Generic.IReadOnlyDictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool,System.Nullable`1<Verse.PawnHealthState>) ColoredMoodBar13.MoodPatch:DrawColonist (object,UnityEngine.Rect&,Verse.Pawn&,Verse.Map&,bool&,bool&,System.Collections.Generic.Dictionary`2<int, ColoredMoodBar13.MoodCache>) ColoredMoodBar13.VanillaDrawColonist:Prefix (RimWorld.ColonistBarColonistDrawer,UnityEngine.Rect&,Verse.Pawn&,Verse.Map&,bool&,bool&) (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:RimWorld.ColonistBarColonistDrawer.DrawColonist_Patch1 (RimWorld.ColonistBarColonistDrawer,UnityEngine.Rect,Verse.Pawn,Verse.Map,bool,bool) RimWorld.ColonistBar:ColonistBarOnGUI () RimWorld.MapInterface:MapInterfaceOnGUI_BeforeMainTabs () RimWorld.UIRoot_Play:UIRootOnGUI () (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root.OnGUI_Patch1 (Verse.Root)