Killface1980 / RW_FacialStuff

MIT License
17 stars 15 forks source link

Getting serious bug in Facial Stuff 1.1 #84

Open SultanVader opened 4 years ago

SultanVader commented 4 years ago

Hi I am getting a serious game breaking bug where the game freezes for sometime and all the pawns become invisible. This happens repeatedly every now and then until the game just crashes and wont respond anymore. Facial Stuff was working fine for a few days but this is happening all of a sudden and im not sure what is causing it. Please help! (Manfred is the name of one of my pawns). Here is the log:

Exception drawing Manfred: System.NullReferenceException: Object reference not set to an instance of an object at Verse.PawnCollisionTweenerUtility.CanGoDirectlyToNextCell (Verse.Pawn pawn) [0x0008c] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at Verse.PawnCollisionTweenerUtility.PawnCollisionPosOffsetFor (Verse.Pawn pawn) [0x000bd] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at Verse.PawnTweener.TweenedPosRoot () [0x00067] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at Verse.PawnTweener.ResetTweenedPosToRoot () [0x00000] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at Verse.PawnTweener.PreDrawPosCalculation () [0x0001d] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at (wrapper dynamic-method) Verse.Pawn_DrawTracker.Verse.Pawn_DrawTracker.get_DrawPos_Patch1(Verse.Pawn_DrawTracker) at Verse.Pawn.get_DrawPos () [0x00006] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at FacialStuff.Harmony.HarmonyPatch_PawnRenderer.RecalcRootLocY (UnityEngine.Vector3& rootLoc, Verse.Pawn pawn, FacialStuff.CompBodyAnimator compAnimator) [0x00071] in :0 at FacialStuff.Harmony.HarmonyPatch_PawnRenderer.Prefix (Verse.PawnRenderer __instance, UnityEngine.Vector3& rootLoc, System.Single angle, System.Boolean renderBody, Verse.Rot4 bodyFacing, Verse.Rot4 headFacing, Verse.RotDrawMode bodyDrawType, System.Boolean portrait, System.Boolean headStump, System.Boolean invisible) [0x00102] in :0 at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderPawnInternal_Patch2(Verse.PawnRenderer,UnityEngine.Vector3,single,bool,Verse.Rot4,Verse.Rot4,Verse.RotDrawMode,bool,bool,bool) at Verse.PawnRenderer.RenderPawnInternal (UnityEngine.Vector3 rootLoc, System.Single angle, System.Boolean renderBody, Verse.RotDrawMode draw, System.Boolean headStump, System.Boolean invisible) [0x0001a] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderPawnAt_Patch3(Verse.PawnRenderer,UnityEngine.Vector3,Verse.RotDrawMode,bool,bool) at Verse.PawnRenderer.RenderPawnAt (UnityEngine.Vector3 drawLoc) [0x0002b] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at Verse.Pawn_DrawTracker.DrawAt (UnityEngine.Vector3 loc) [0x00000] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at Verse.Pawn.DrawAt (UnityEngine.Vector3 drawLoc, System.Boolean flip) [0x00006] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at Verse.Thing.Draw () [0x00007] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at Verse.ThingWithComps.Draw () [0x00000] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at (wrapper dynamic-method) Verse.DynamicDrawManager.Verse.DynamicDrawManager.DrawDynamicThings_Patch2(Verse.DynamicDrawManager) Verse.Log:Verse.Log.Error_Patch1(String, Boolean) Verse.DynamicDrawManager:Verse.DynamicDrawManager.DrawDynamicThings_Patch2(DynamicDrawManager) Verse.Map:MapUpdate() Verse.Game:UpdatePlay() Verse.Root_Play:Update()