RimWorld

RimWorld

Altered Carbon 2: ReSleeved
BUG: Erasing an enemy stack spawns an empty stack, but old stack remains.
I've captured some enemy stacks and after erasing them I get the same one back, plus an empty one. Saw this error in the log:

JobDriver threw exception in toil FinishRecipeAndStartStoringProduct's initAction for pawn Vittet driver=JobDriver_DoBill (toilIndex=19) driver.job=(DoBill (Job_16913886) A = Thing_AC_NeuralEditor3329156 B = Thing_AC_ActiveNeuralStack2472812 C = (140, 0, 174) Giver = ThinkNode_QueuedJob [workGiverDef: AC_DoNeuralEditing])
System.NullReferenceException: Object reference not set to an instance of an object
[Ref 79A25D8]
at AlteredCarbon.AC_Utils.CanThink (Verse.Pawn pawn) [0x00001] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at AlteredCarbon.NeuralData.ReplaceSocialReferences (Verse.Pawn relatedPawn, Verse.Pawn newReference, Verse.Pawn oldOriginPawn) [0x00001] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at AlteredCarbon.NeuralData.ReplaceOrigPawnReferences (Verse.Pawn pawn, System.Collections.Generic.HashSet`1[T] allPotentialRelatedPawns, Verse.Pawn oldOrigPawn) [0x00166] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at AlteredCarbon.NeuralData.OverwriteRelationships (Verse.Pawn pawn) [0x000bc] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at AlteredCarbon.NeuralData.OverwritePawn (Verse.Pawn pawn, System.Boolean changeGlobalData) [0x00156] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at AlteredCarbon.NeuralStack.KillInnerPawn (System.Boolean affectFactionRelationship, Verse.Pawn affecter) [0x000aa] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at AlteredCarbon.NeuralStack.EmptyStack (Verse.Pawn affecter, System.Boolean affectFactionRelationship) [0x00069] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at AlteredCarbon.Recipe_WipeActiveNeuralStack.Notify_IterationCompleted (Verse.Pawn billDoer, System.Collections.Generic.List`1[T] ingredients) [0x0005c] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at RimWorld.Bill_Production.Notify_IterationCompleted (Verse.Pawn billDoer, System.Collections.Generic.List`1[T] ingredients) [0x00071] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at AlteredCarbon.Bill_OperateOnThing.Notify_IterationCompleted (Verse.Pawn billDoer, System.Collections.Generic.List`1[T] ingredients) [0x00001] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at Verse.AI.Toils_Recipe+<>c__DisplayClass3_0.<FinishRecipeAndStartStoringProduct>b__1 () [0x0018d] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at Verse.AI.JobDriver.TryActuallyStartNextToil () [0x00208] in <630e2863bc9a4a3493f2eff01e3a9556>:0
- TRANSPILER net.pardeike.rimworld.lib.harmony: IEnumerable`1 VisualExceptions.ExceptionsAndActivatorHandler:Transpiler(IEnumerable`1 instructions, MethodBase original)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Warning (string)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.JobUtility.TryStartErrorRecoverJob_Patch2 (Verse.Pawn,string,System.Exception,Verse.AI.JobDriver)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.JobDriver.TryActuallyStartNextToil_Patch0 (Verse.AI.JobDriver)
Verse.AI.JobDriver:ReadyForNextToil ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.JobDriver.TryActuallyStartNextToil_Patch0 (Verse.AI.JobDriver)
Verse.AI.JobDriver:ReadyForNextToil ()
Verse.AI.Toils_Recipe/<>c__DisplayClass2_0:<DoRecipeWork>b__1 ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.JobDriver.DriverTick_Patch0 (Verse.AI.JobDriver)
Verse.AI.Pawn_JobTracker:JobTrackerTick ()
Verse.Pawn:Tick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickList.Tick_Patch0 (Verse.TickList)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch3 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch4 (Verse.Game)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Root_Play.Update_Patch0 (Verse.Root_Play)
< >
Showing 1-5 of 5 comments
same ♥♥♥♥ with strangers stacks
JobDriver threw exception in toil FinishRecipeAndStartStoringProduct's initAction for pawn Xorkun driver=JobDriver_DoBill (toilIndex=19) driver.job=(DoBill (Job_6815515) A = Thing_AC_NeuralEditor317145 B = Thing_AC_ActiveNeuralStack775238 C = (108, 0, 112) Giver = JobGiver_Work [workGiverDef: AC_DoNeuralEditing])
System.NullReferenceException: Object reference not set to an instance of an object
[Ref BD2DE113]
at AlteredCarbon.AC_Utils.CanThink (Verse.Pawn pawn) [0x00001] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at AlteredCarbon.NeuralData.ReplaceSocialReferences (Verse.Pawn relatedPawn, Verse.Pawn newReference, Verse.Pawn oldOriginPawn) [0x00001] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at AlteredCarbon.NeuralData.ReplaceOrigPawnReferences (Verse.Pawn pawn, System.Collections.Generic.HashSet`1[T] allPotentialRelatedPawns, Verse.Pawn oldOrigPawn) [0x00166] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at AlteredCarbon.NeuralData.OverwriteRelationships (Verse.Pawn pawn) [0x000bc] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at AlteredCarbon.NeuralData.OverwritePawn (Verse.Pawn pawn, System.Boolean changeGlobalData) [0x00156] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at AlteredCarbon.NeuralStack.KillInnerPawn (System.Boolean affectFactionRelationship, Verse.Pawn affecter) [0x000aa] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at AlteredCarbon.NeuralStack.EmptyStack (Verse.Pawn affecter, System.Boolean affectFactionRelationship) [0x00069] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at AlteredCarbon.Recipe_WipeActiveNeuralStack.Notify_IterationCompleted (Verse.Pawn billDoer, System.Collections.Generic.List`1[T] ingredients) [0x0005c] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at RimWorld.Bill_Production.Notify_IterationCompleted (Verse.Pawn billDoer, System.Collections.Generic.List`1[T] ingredients) [0x0007a] in <630e2863bc9a4a3493f2eff01e3a9556>:0
- POSTFIX Grimworld.Framework.ItemLimiter: Void GrimworldItemLimit.ApplyHarmonyPatches:PostBillIterationCompleted(Bill_Production __instance, Pawn billDoer, List`1 ingredients)
at AlteredCarbon.Bill_OperateOnThing.Notify_IterationCompleted (Verse.Pawn billDoer, System.Collections.Generic.List`1[T] ingredients) [0x00001] in <86eb253a2c2940fbb1e65d8dd4d9f56f>:0
at Verse.AI.Toils_Recipe+<>c__DisplayClass3_0.<FinishRecipeAndStartStoringProduct>b__1 () [0x0018d] in <630e2863bc9a4a3493f2eff01e3a9556>:0
at Verse.AI.JobDriver.TryActuallyStartNextToil () [0x001b0] in <630e2863bc9a4a3493f2eff01e3a9556>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Log.Error_Patch3 (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 ()
Verse.AI.Toils_Recipe/<>c__DisplayClass2_0:<DoRecipeWork>b__1 ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.JobDriver.DriverTick_Patch0 (Verse.AI.JobDriver)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.AI.Pawn_JobTracker.JobTrackerTick_Patch0 (Verse.AI.Pawn_JobTracker)
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Pawn.Tick_Patch1 (Verse.Pawn)
Verse.TickList:Tick ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.TickManager.DoSingleTick_Patch3 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
Verse.Root_Play:Update ()
judging by the update date of my mods, the vanilla expanded framework is most likely to blame for this bug, because until May 26 everything worked fine with the same mods
I'll tell you more - there was one stack of strangers, which I tried to put in the prisoner so as not to erase the stack. The stack was not spent, but the prisoner became a stranger. Then he left, and his stack remained. If I try to erase this stack now he just gives an empty stack and at the same time remains himself. By the way, the stranger did not have a stack in his neck after the operation. It is very difficult to reproduce this situation - this is understandable. In other cases, everything seems to work as it should.
I have the same issue too
< >
Showing 1-5 of 5 comments
Per page: 1530 50