How to solve drawing exception?

Started by henk, March 13, 2018, 05:24:51 PM

Previous topic - Next topic

henk

I keep getting this error when ever my camera in certain location.

Exception drawing WildBoar_Corpse337939: System.NullReferenceException: Object reference not set to an instance of an object
at FacialStuff.Harmony.HarmonyPatch_PawnRenderer.RenderAnimatedPawn (Verse.Pawn,Verse.PawnGraphicSet,UnityEngine.Vector3,UnityEngine.Quaternion,bool,Verse.Rot4,Verse.RotDrawMode,bool,RimWorld.PawnWoundDrawer,FacialStuff.CompBodyAnimator,UnityEngine.Vector3) <0x0009a>
at FacialStuff.Harmony.HarmonyPatch_PawnRenderer.Prefix (Verse.PawnRenderer,UnityEngine.Vector3,UnityEngine.Quaternion,bool,Verse.Rot4,Verse.Rot4,Verse.RotDrawMode,bool,bool) <0x004b3>
at (wrapper dynamic-method) Verse.PawnRenderer.RenderPawnInternal_Patch1 (object,UnityEngine.Vector3,UnityEngine.Quaternion,bool,Verse.Rot4,Verse.Rot4,Verse.RotDrawMode,bool,bool) <0x001ba>
at (wrapper dynamic-method) Verse.PawnRenderer.RenderPawnAt_Patch2 (object,UnityEngine.Vector3,Verse.RotDrawMode,bool) <0x00c26>
at Verse.PawnRenderer.RenderPawnAt (UnityEngine.Vector3) <0x00061>
at Verse.Corpse.DrawAt (UnityEngine.Vector3,bool) <0x00069>
at Verse.Thing.Draw () <0x00047>
at Verse.ThingWithComps.Draw () <0x00010>
at Verse.DynamicDrawManager.DrawDynamicThings () <0x003bd>

Verse.Log:Error(String)
Verse.DynamicDrawManager:DrawDynamicThings()
Verse.Map:MapUpdate()
Verse.Game:UpdatePlay()
Verse.Root_Play:Update()


How can I solve this? or locate and delete 'WildBoar_Corpse337939' ?!

henk

Not sure if there is a better/easier way todo this. But I solved it myself, by loading the save file looking for the given ID "WildBoar_Corpse337939", which gave all the details about it, and deleted the entry.