-
Notifications
You must be signed in to change notification settings - Fork 70
Description
Does not crash every time, it seems that the hairstyle did not successfully read?
Exception when initializing node Head for pawn 希尔达: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
[Ref 6B9F7A9C]
at Verse.HumanlikeMeshPoolUtility.GetHumanlikeHairSetForPawn (Verse.Pawn pawn, System.Single wFactor, System.Single hFactor) [0x0002e] in <9f0455800725468190a2ddad977330df>:0
- PREFIX rimworld.erdelf.alien_race.main: Void AlienRace.AlienRenderTreePatches:GetHumanlikeHeadSetForPawnPrefix(Pawn pawn, Single& wFactor, Single& hFactor)
at Verse.PawnRenderNode_Hair.MeshSetFor (Verse.Pawn pawn) [0x00028] in <9f0455800725468190a2ddad977330df>:0
at <0x2c5ed96cd50 + 0x00110>
at <0x2c5ed96f820 + 0x0002a>
at (wrapper managed-to-native) System.Reflection.MonoCMethod.InternalInvoke(System.Reflection.MonoCMethod,object,object[],System.Exception&)
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00002] in :0
--- End of inner exception stack trace ---
[Ref BD8B66F7]
at System.Reflection.MonoCMethod.InternalInvoke (System.Object obj, System.Object[] parameters) [0x00014] in :0
at System.Reflection.MonoCMethod.DoInvoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x0007a] in :0
at System.Reflection.MonoCMethod.Invoke (System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0
at System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) [0x00213] in :0
at System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x00095] in :0
at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in :0
at Verse.PawnRenderNode.Init (Verse.Pawn pawn) [0x0007f] in <9f0455800725468190a2ddad977330df>:0
at <0x2c5ed96cd50 + 0x0015a>
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch1 (string)
Verse.PawnRenderNode:.ctor (Verse.Pawn,Verse.PawnRenderNodeProperties,Verse.PawnRenderTree)
Verse.PawnRenderNode_Head:.ctor (Verse.Pawn,Verse.PawnRenderNodeProperties,Verse.PawnRenderTree)
System.Reflection.MonoCMethod:InternalInvoke (object,object[])
System.Reflection.MonoCMethod:DoInvoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
System.Reflection.MonoCMethod:Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
System.RuntimeType:CreateInstanceImpl (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[],System.Threading.StackCrawlMark&)
System.Activator:CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[])
System.Activator:CreateInstance (System.Type,object[])
Verse.PawnRenderNode:Init (Verse.Pawn)
Verse.PawnRenderNode:.ctor (Verse.Pawn,Verse.PawnRenderNodeProperties,Verse.PawnRenderTree)
Verse.PawnRenderNode_Parent:.ctor (Verse.Pawn,Verse.PawnRenderNodeProperties,Verse.PawnRenderTree)
System.Reflection.MonoCMethod:InternalInvoke (object,object[])
System.Reflection.MonoCMethod:DoInvoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
System.Reflection.MonoCMethod:Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
System.RuntimeType:CreateInstanceImpl (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[],System.Threading.StackCrawlMark&)
System.Activator:CreateInstance (System.Type,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo,object[])
System.Activator:CreateInstance (System.Type,object[])
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.PawnRenderTree.TrySetupGraphIfNeeded_Patch1 (Verse.PawnRenderTree)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.PawnRenderTree.EnsureInitialized_Patch1 (Verse.PawnRenderTree,Verse.PawnRenderFlags)
Verse.PawnRenderer:EnsureGraphicsInitialized ()
Verse.PawnRenderer:DynamicDrawPhaseAt (Verse.DrawPhase,UnityEngine.Vector3,System.Nullable`1<Verse.Rot4>,bool)
Verse.Pawn:DynamicDrawPhaseAt (Verse.DrawPhase,UnityEngine.Vector3,bool)
Verse.Thing:DynamicDrawPhase (Verse.DrawPhase)
Verse.DynamicDrawManager:DrawDynamicThings ()
Verse.Map:MapUpdate ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
Verse.Root_Play:Update ()