我遇到了类似的问题,我使用悠兰自带的剧本,三个原生悠兰和后续加入的巫女,玟璆以及魅狐都没有出现问题,但以其他方式(如俘虏)加入或是使用人物编辑器直接生成的悠兰人物,在重新载入存档后人物贴图会直接消失。
以下是关联的红字内容:
Exception drawing 花野佐和: System.InvalidOperationException: Nullable object must have a value.
at System.Nullable`1[T].get_Value () [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0
at RimWorld.Pawn_StoryTracker.get_SkinColorBase () [0x0005e] in <a3ecb7f3699146939cf9b29bca0b2137>:0
at (wrapper dynamic-method) RimWorld.Pawn_StoryTracker.RimWorld.Pawn_StoryTracker.get_SkinColor_Patch1(RimWorld.Pawn_StoryTracker)
at AlienRace.HarmonyPatches.ResolveAllGraphicsPrefix (Verse.PawnGraphicSet __instance) [0x00234] in <16aebf7091a34f60b66c8ba608a224dd>:0
at (wrapper dynamic-method) Verse.PawnGraphicSet.Verse.PawnGraphicSet.ResolveAllGraphics_Patch7(Verse.PawnGraphicSet)
at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderPawnAt_Patch5(Verse.PawnRenderer,UnityEngine.Vector3,System.Nullable`1<Verse.Rot4>,bool)
at Verse.Pawn_DrawTracker.DrawAt (UnityEngine.Vector3 loc) [0x00000] in <a3ecb7f3699146939cf9b29bca0b2137>:0
at Verse.Pawn.DrawAt (UnityEngine.Vector3 drawLoc, System.Boolean flip) [0x00006] in <a3ecb7f3699146939cf9b29bca0b2137>:0
at Verse.Thing.Draw () [0x00015] in <a3ecb7f3699146939cf9b29bca0b2137>:0
at (wrapper dynamic-method) Verse.ThingWithComps.Verse.ThingWithComps.Draw_Patch1(Verse.ThingWithComps)
at Verse.DynamicDrawManager.DrawDynamicThings () [0x000d8] in <a3ecb7f3699146939cf9b29bca0b2137>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch1 (string)
Verse.DynamicDrawManager:DrawDynamicThings ()
(wrapper dynamic-method) Verse.Map:Verse.Map.MapUpdate_Patch3 (Verse.Map)
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch2 (Verse.Game)
Verse.Root_Play:Update ()
贴图绘制异常是很常见的问题,但一般是由show hari 和 hat 这两个的MOD导致的。
但红字文本中指向了外星人框架【Alien Races】和【Harmony】,这应该只能等待框架更新。
另外提醒一下特殊需求的吧友,如果你使用了【R.J.W】以及附属的贴图mod,不是其导致的问题,它们不影响人物的绘制。
以下是关联的红字内容:
Exception drawing 花野佐和: System.InvalidOperationException: Nullable object must have a value.
at System.Nullable`1[T].get_Value () [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0
at RimWorld.Pawn_StoryTracker.get_SkinColorBase () [0x0005e] in <a3ecb7f3699146939cf9b29bca0b2137>:0
at (wrapper dynamic-method) RimWorld.Pawn_StoryTracker.RimWorld.Pawn_StoryTracker.get_SkinColor_Patch1(RimWorld.Pawn_StoryTracker)
at AlienRace.HarmonyPatches.ResolveAllGraphicsPrefix (Verse.PawnGraphicSet __instance) [0x00234] in <16aebf7091a34f60b66c8ba608a224dd>:0
at (wrapper dynamic-method) Verse.PawnGraphicSet.Verse.PawnGraphicSet.ResolveAllGraphics_Patch7(Verse.PawnGraphicSet)
at (wrapper dynamic-method) Verse.PawnRenderer.Verse.PawnRenderer.RenderPawnAt_Patch5(Verse.PawnRenderer,UnityEngine.Vector3,System.Nullable`1<Verse.Rot4>,bool)
at Verse.Pawn_DrawTracker.DrawAt (UnityEngine.Vector3 loc) [0x00000] in <a3ecb7f3699146939cf9b29bca0b2137>:0
at Verse.Pawn.DrawAt (UnityEngine.Vector3 drawLoc, System.Boolean flip) [0x00006] in <a3ecb7f3699146939cf9b29bca0b2137>:0
at Verse.Thing.Draw () [0x00015] in <a3ecb7f3699146939cf9b29bca0b2137>:0
at (wrapper dynamic-method) Verse.ThingWithComps.Verse.ThingWithComps.Draw_Patch1(Verse.ThingWithComps)
at Verse.DynamicDrawManager.DrawDynamicThings () [0x000d8] in <a3ecb7f3699146939cf9b29bca0b2137>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch1 (string)
Verse.DynamicDrawManager:DrawDynamicThings ()
(wrapper dynamic-method) Verse.Map:Verse.Map.MapUpdate_Patch3 (Verse.Map)
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch2 (Verse.Game)
Verse.Root_Play:Update ()
贴图绘制异常是很常见的问题,但一般是由show hari 和 hat 这两个的MOD导致的。
但红字文本中指向了外星人框架【Alien Races】和【Harmony】,这应该只能等待框架更新。
另外提醒一下特殊需求的吧友,如果你使用了【R.J.W】以及附属的贴图mod,不是其导致的问题,它们不影响人物的绘制。