[1.3.3326] Error logs occur when new pawns are enslaved.

Started by songyj11, May 24, 2022, 06:28:06 AM

Previous topic - Next topic

songyj11

My words can be weird because I use a translator.

1) Circumstances
An error occurred when the pawn created in debug mode or the pawn that first appeared on the map was enslaved.
No mod. Just use Royalty and Ideology DLCs.
I tried reinstalling the game, doing steam integrity check, restoring to default setting, and tested it on other computers.

2) What Happened
An error log has occurred.
Error occurred in both normal play and debug mode.
The error occurred only on the newly appeared pawn before saving. If I load the saved file after the pawn appears, there is no error.

3) Expectation
Error logs should not occur.

4) To enslave pawns created in debug mode or newly created pawns on maps.

5) I want to attach the saved file, but as described, there was no error in the saved file, so I couldn't attach it.

6) Error Logs
When colonist enslave pawn:
JobDriver threw exception in initAction for pawn Joshua driver=JobDriver_EnslavePrisoner (toilIndex=10) driver.job=(PrisonerEnslave (Job_4910) A=Thing_Human36685)
System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.Pawn_ApparelTracker.UnlockAll () [0x00000] in <99518a644a3e4a7ea3fde566568df84a>:0
  at RimWorld.GenGuest.EnslavePrisoner (Verse.Pawn warden, Verse.Pawn prisoner) [0x000b5] in <99518a644a3e4a7ea3fde566568df84a>:0
  at RimWorld.InteractionWorker_EnslaveAttempt.Interacted (Verse.Pawn initiator, Verse.Pawn recipient, System.Collections.Generic.List`1[T] extraSentencePacks, System.String& letterText, System.String& letterLabel, Verse.LetterDef& letterDef, Verse.LookTargets& lookTargets) [0x001ff] in <99518a644a3e4a7ea3fde566568df84a>:0
  at RimWorld.Pawn_InteractionsTracker.TryInteractWith (Verse.Pawn recipient, RimWorld.InteractionDef intDef) [0x00186] in <99518a644a3e4a7ea3fde566568df84a>:0
  at RimWorld.Toils_Interpersonal+<>c__DisplayClass11_0.<TryEnslave>b__0 () [0x00041] in <99518a644a3e4a7ea3fde566568df84a>:0
  at Verse.AI.JobDriver.TryActuallyStartNextToil () [0x001de] in <99518a644a3e4a7ea3fde566568df84a>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.AI.JobUtility:TryStartErrorRecoverJob (Verse.Pawn,string,System.Exception,Verse.AI.JobDriver)
Verse.AI.JobDriver:TryActuallyStartNextToil ()
Verse.AI.JobDriver:ReadyForNextToil ()
Verse.AI.JobDriver:TryActuallyStartNextToil ()
Verse.AI.JobDriver:ReadyForNextToil ()
RimWorld.Toils_Interpersonal/<>c__DisplayClass0_0:<GotoInteractablePosition>b__0 ()
Verse.AI.JobDriver:TryActuallyStartNextToil ()
Verse.AI.JobDriver:ReadyForNextToil ()
Verse.AI.JobDriver:Notify_PatherArrived ()
Verse.AI.Pawn_PathFollower:PatherArrived ()
Verse.AI.Pawn_PathFollower:StartPath (Verse.LocalTargetInfo,Verse.AI.PathEndMode)
RimWorld.Toils_Interpersonal/<>c__DisplayClass1_0:<GotoPrisoner>b__0 ()
Verse.AI.JobDriver:TryActuallyStartNextToil ()
Verse.AI.JobDriver:ReadyForNextToil ()
Verse.AI.JobDriver:DriverTick ()
Verse.AI.Pawn_JobTracker:JobTrackerTick ()

When Use Debug Enslave function:
Root level exception in OnGUI(): System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.Pawn_ApparelTracker.UnlockAll () [0x00000] in <99518a644a3e4a7ea3fde566568df84a>:0
  at RimWorld.GenGuest.EnslavePrisoner (Verse.Pawn warden, Verse.Pawn prisoner) [0x000b5] in <99518a644a3e4a7ea3fde566568df84a>:0
  at Verse.DebugToolsPawns.Enslave (Verse.Pawn p) [0x0002f] in <99518a644a3e4a7ea3fde566568df84a>:0
  at Verse.Dialog_DebugOptionLister+<>c__DisplayClass8_0.<DebugToolMapForPawns>b__0 () [0x00063] in <99518a644a3e4a7ea3fde566568df84a>:0
  at Verse.DebugTool.DebugToolOnGUI () [0x00018] in <99518a644a3e4a7ea3fde566568df84a>:0
  at Verse.DebugTools.DebugToolsOnGUI () [0x00007] in <99518a644a3e4a7ea3fde566568df84a>:0
  at RimWorld.UIRoot_Play.UIRootOnGUI () [0x000be] in <99518a644a3e4a7ea3fde566568df84a>:0
  at Verse.Root.OnGUI () [0x0003d] in <99518a644a3e4a7ea3fde566568df84a>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.Root:OnGUI ()[/size]