RimWorld

RimWorld

Animal Equipment
SkyLarkBlue Nov 21, 2021 @ 6:50pm
Null Reference/Accessory Visual Bug
Exception drawing AA_ArcticLion2869336: System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.DrawBodyApparel_Patch0(Verse.PawnRenderer,UnityEngine.Vector3,UnityEngine.Vector3,UnityEngine.Mesh,single,Verse.Rot4,Verse.PawnRenderFlags)
at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderPawnInternal_Patch2(Verse.PawnRenderer,UnityEngine.Vector3,single,bool,Verse.Rot4,Verse.RotDrawMode,Verse.PawnRenderFlags)
at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderPawnAt_Patch2(Verse.PawnRenderer,UnityEngine.Vector3,System.Nullable`1<Verse.Rot4>,bool)
at Verse.Pawn_DrawTracker.DrawAt (UnityEngine.Vector3 loc) [0x00000] in <e13bd2f1929544099ed2b58e66ece833>:0
at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.DrawAt_Patch1(Verse.Pawn,UnityEngine.Vector3,bool)
at Verse.Thing.Draw () [0x00015] in <e13bd2f1929544099ed2b58e66ece833>:0
at Verse.ThingWithComps.Draw () [0x0000e] in <e13bd2f1929544099ed2b58e66ece833>:0
at Verse.DynamicDrawManager.DrawDynamicThings () [0x000d8] in <e13bd2f1929544099ed2b58e66ece833>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.DynamicDrawManager:DrawDynamicThings ()
(wrapper dynamic-method) Verse.Map:Verse.Map.MapUpdate_Patch1 (Verse.Map)
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
Verse.Root_Play:Update ()


This is the error that spams logs if an animal equips an accessory. I end up with gigabyte long log files full of this if I allow animals to use shields belts. :wwhjester:
< >
Showing 1-8 of 8 comments
Dylan Dec 8, 2021 @ 3:28pm 
I hope it is fixed now with AG 1.3.1.3 - let me know (I did not see it anymore at least)
SkyLarkBlue Dec 9, 2021 @ 11:31pm 
The update has helped a lot, so far quite a lot. The log is no longer spammed with this error as soon as any belt is equipped. I do get this error now, but only one time when I click on the animal. Much better sanity wise.


Error rendering pawn portrait: System.NullReferenceException: Object reference not set to an instance of an object
at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.DrawBodyApparel_Patch0(Verse.PawnRenderer,UnityEngine.Vector3,UnityEngine.Vector3,UnityEngine.Mesh,single,Verse.Rot4,Verse.PawnRenderFlags)
at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderPawnInternal_Patch2(Verse.PawnRenderer,UnityEngine.Vector3,single,bool,Verse.Rot4,Verse.RotDrawMode,Verse.PawnRenderFlags)
at Verse.PawnRenderer.RenderCache (Verse.Rot4 rotation, System.Single angle, UnityEngine.Vector3 positionOffset, System.Boolean renderHead, System.Boolean renderBody, System.Boolean portrait, System.Boolean renderHeadgear, System.Boolean renderClothes, System.Collections.Generic.Dictionary`2[TKey,TValue] overrideApparelColor, System.Nullable`1[T] overrideHairColor, System.Boolean stylingStation) [0x00138] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.PawnRenderer:RenderCache (Verse.Rot4,single,UnityEngine.Vector3,bool,bool,bool,bool,bool,System.Collections.Generic.Dictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool)
RimWorld.PawnCacheRenderer:OnPostRender ()
(wrapper dynamic-method) RimWorld.PawnCacheRenderer:RimWorld.PawnCacheRenderer.RenderPawn_Patch2 (RimWorld.PawnCacheRenderer,Verse.Pawn,UnityEngine.RenderTexture,UnityEngine.Vector3,single,single,Verse.Rot4,bool,bool,bool,bool,bool,UnityEngine.Vector3,System.Collections.Generic.Dictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool)
RimWorld.PortraitsCache:RenderPortrait (Verse.Pawn,UnityEngine.RenderTexture,UnityEngine.Vector3,single,Verse.Rot4,bool,bool,System.Collections.Generic.Dictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool)
RimWorld.PortraitsCache:Get (Verse.Pawn,UnityEngine.Vector2,Verse.Rot4,UnityEngine.Vector3,single,bool,bool,bool,bool,System.Collections.Generic.Dictionary`2<RimWorld.Apparel, UnityEngine.Color>,System.Nullable`1<UnityEngine.Color>,bool)
AnimalTab.Command_HandlerSettings:GizmoOnGUI (UnityEngine.Vector2,single,Verse.GizmoRenderParms)
Verse.GizmoGridDrawer:DrawGizmoGrid (System.Collections.Generic.IEnumerable`1<Verse.Gizmo>,single,Verse.Gizmo&,System.Func`2<Verse.Gizmo, bool>,System.Func`2<Verse.Gizmo, bool>,System.Func`2<Verse.Gizmo, bool>)
(wrapper dynamic-method) RimWorld.InspectGizmoGrid:RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0 (System.Collections.Generic.IEnumerable`1<object>,Verse.Gizmo&)
RimWorld.MainTabWindow_Inspect:DrawInspectGizmos ()
RimWorld.InspectPaneUtility:ExtraOnGUI (RimWorld.IInspectPane)
RimWorld.MainTabWindow_Inspect:ExtraOnGUI ()
Verse.WindowStack:WindowStackOnGUI ()
(wrapper dynamic-method) RimWorld.UIRoot_Play:RimWorld.UIRoot_Play.UIRootOnGUI_Patch1 (RimWorld.UIRoot_Play)
(wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)
SkyLarkBlue Dec 9, 2021 @ 11:32pm 
This may be caused by some other mod in my mod soup TBF. I can live with this error if that's the end of it. I haven't tested extensively or in combat but so far so good.
Dylan Dec 10, 2021 @ 10:47am 
Yeah, if it stays like that it is something one can live with ^^ I will see if I can reproduce it with the next update (do you use the RPG Inventory mod? with the new compatibility for animals)
SkyLarkBlue Dec 15, 2021 @ 8:03am 
I don't have RPG inventory mod. I do have an armor uncapper but I can't think of any other mods I use directly altering the inventory or armor screen.
Sean Aug 10, 2024 @ 3:34am 
These errors tank your ticks. Like, anything above 1x is pointless.
SkyLarkBlue Aug 10, 2024 @ 6:57pm 
3 years later.... I barely even remember what was happening here, but I don't think I ever got this issue resolved. No one would take responsibility for the issue and I gave up with it throwing one error rather than infinite errors.
I have no idea why the mods couldn't just disable the visual for non-humanoids so it wouldn't try to display incorrectly, but I can't write mods.
Sean Aug 10, 2024 @ 7:21pm 
Originally posted by SkyLarkBlue:
3 years later.... I barely even remember what was happening here, but I don't think I ever got this issue resolved. No one would take responsibility for the issue and I gave up with it throwing one error rather than infinite errors.
I have no idea why the mods couldn't just disable the visual for non-humanoids so it wouldn't try to display incorrectly, but I can't write mods.
Well for me animals would put on shield belts, go invisible and absolutely ruin tps with neverending errors being logged.
Which is a shame as being able to equip animals, which tend to be melee combatants, with shield belts is why I got this mod at all lol
< >
Showing 1-8 of 8 comments
Per page: 1530 50