RimWorld

RimWorld

Animal Equipment
SkyLarkBlue 21. nov. 2021 kl. 18.50
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:
< >
Viser 18 av 8 kommentarer
Dylan 8. des. 2021 kl. 15.28 
I hope it is fixed now with AG 1.3.1.3 - let me know (I did not see it anymore at least)
SkyLarkBlue 9. des. 2021 kl. 23.31 
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 9. des. 2021 kl. 23.32 
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 10. des. 2021 kl. 10.47 
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 15. des. 2021 kl. 8.03 
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 10. aug. 2024 kl. 3.34 
These errors tank your ticks. Like, anything above 1x is pointless.
SkyLarkBlue 10. aug. 2024 kl. 18.57 
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 10. aug. 2024 kl. 19.21 
Opprinnelig skrevet av 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
< >
Viser 18 av 8 kommentarer
Per side: 1530 50