simplyWiri / Loadout-Compositing

GNU Lesser General Public License v3.0
12 stars 8 forks source link

Getting tons of errors from this mod suddenly. #64

Closed Evonos closed 1 year ago

Evonos commented 1 year ago

Gods sake posted without content...

Log https://gist.github.com/HugsLibRecordKeeper/289d4901eac80f7fac9fb1c9b8d62fac

As soon as i remove this mod the errors are gone.

Evonos commented 1 year ago

Full error message one

Exception in Verse.AI.ThinkNode_Priority TryIssueJobPackage: System.NullReferenceException: Object reference not set to an instance of an object at Inventory.SafeDef..ctor (Verse.ThingDef def) [0x00016] in <267feb9b03b84327a2ed9807729c9e9e>:0 at Inventory.Filter.Allows (Verse.Thing thing) [0x00050] in <267feb9b03b84327a2ed9807729c9e9e>:0 at Inventory.Item.Allows (Verse.Thing thing) [0x00014] in <267feb9b03b84327a2ed9807729c9e9e>:0 at Inventory.ThinkNode_LoadoutRealisation+<>cDisplayClass15_1.b__1 (Inventory.Item item) [0x00000] in <267feb9b03b84327a2ed9807729c9e9e>:0 at System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] predicate) [0x0002c] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at Inventory.ThinkNode_LoadoutRealisation+<>cDisplayClass15_0.b__0 (RimWorld.Apparel app) [0x00018] in <267feb9b03b84327a2ed9807729c9e9e>:0 at System.Linq.Enumerable+WhereEnumerableIterator1[TSource].ToList () [0x0001b] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable.ToList[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x0001f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at Inventory.ThinkNode_LoadoutRealisation.SatisfyLoadoutClothingJob (Verse.Pawn pawn, Inventory.Loadout loadout) [0x00042] in <267feb9b03b84327a2ed9807729c9e9e>:0 at (wrapper dynamic-method) Inventory.ThinkNode_LoadoutRealisation.Inventory.ThinkNode_LoadoutRealisation.TryIssueJobPackage_Patch0(Inventory.ThinkNode_LoadoutRealisation,Verse.Pawn,Verse.AI.JobIssueParams) at Verse.AI.ThinkNode_SubtreesByTag.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x000a2] in <1782cb69665b4d3abcdadb97df9ae541>:0 at Verse.AI.ThinkNode_Priority.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00022] in <1782cb69665b4d3abcdadb97df9ae541>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch5 (string) Verse.AI.ThinkNode_Priority:TryIssueJobPackage (Verse.Pawn,Verse.AI.JobIssueParams) (wrapper dynamic-method) Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.DetermineNextJob_Patch3 (Verse.AI.Pawn_JobTracker,Verse.ThinkTreeDef&) Verse.AI.Pawn_JobTracker:TryFindAndStartJob () (wrapper dynamic-method) Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.EndCurrentJob_Patch4 (Verse.AI.Pawn_JobTracker,Verse.AI.JobCondition,bool,bool) (wrapper dynamic-method) Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.JobTrackerTick_Patch0 (Verse.AI.Pawn_JobTracker) (wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch1 (Verse.Pawn) (wrapper dynamic-method) Verse.TickList:Verse.TickList.Tick_Patch2 (Verse.TickList) (wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch5 (Verse.TickManager) Verse.TickManager:TickManagerUpdate () (wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch2 (Verse.Game) (wrapper dynamic-method) Verse.Root_Play:Verse.Root_Play.Update_Patch1 (Verse.Root_Play)

Evonos commented 1 year ago

Full error message 2 Both are on repeat first 1 then 2 on repeat.

Exception in Verse.AI.ThinkNode_Tagger TryIssueJobPackage: System.NullReferenceException: Object reference not set to an instance of an object at Inventory.SafeDef..ctor (Verse.ThingDef def) [0x00016] in <267feb9b03b84327a2ed9807729c9e9e>:0 at Inventory.Filter.Allows (Verse.Thing thing) [0x00050] in <267feb9b03b84327a2ed9807729c9e9e>:0 at Inventory.Tag+<>cDisplayClass9_0.b0 (Inventory.Item item) [0x00019] in <267feb9b03b84327a2ed9807729c9e9e>:0 at System.Linq.Enumerable+WhereListIterator1[TSource].MoveNext () [0x00037] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable1[T] source) [0x00015] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at Inventory.Loadout+<>cDisplayClass36_0.b0 (Inventory.Tag t) [0x0000c] in <267feb9b03b84327a2ed9807729c9e9e>:0 at System.Linq.Enumerable.TryGetFirst[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] predicate, System.Boolean& found) [0x0003f] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at System.Linq.Enumerable.FirstOrDefault[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] predicate) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at Inventory.Loadout.WeightAtWhichLoadoutDesires (Verse.Thing thing) [0x00014] in <267feb9b03b84327a2ed9807729c9e9e>:0 at (wrapper dynamic-method) Inventory.OptimizeApparel_ApparelScoreGain_Patch.Inventory.OptimizeApparel_ApparelScoreGain_Patch.Postfix_Patch0(Verse.Pawn,RimWorld.Apparel,single&) at (wrapper dynamic-method) RimWorld.JobGiver_OptimizeApparel.RimWorld.JobGiver_OptimizeApparel.ApparelScoreRaw_Patch1(Verse.Pawn,RimWorld.Apparel) at RimWorld.JobGiver_OptimizeApparel.ApparelScoreGain (Verse.Pawn pawn, RimWorld.Apparel ap, System.Collections.Generic.List`1[T] wornScoresCache) [0x00058] in <1782cb69665b4d3abcdadb97df9ae541>:0 at (wrapper dynamic-method) RimWorld.JobGiver_OptimizeApparel.RimWorld.JobGiver_OptimizeApparel.TryGiveJob_Patch1(RimWorld.JobGiver_OptimizeApparel,Verse.Pawn) at Verse.AI.ThinkNode_JobGiver.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00000] in <1782cb69665b4d3abcdadb97df9ae541>:0 at Verse.AI.ThinkNode_Priority.TryIssueJobPackage (Verse.Pawn pawn, Verse.AI.JobIssueParams jobParams) [0x00022] in <1782cb69665b4d3abcdadb97df9ae541>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch5 (string) Verse.AI.ThinkNode_Priority:TryIssueJobPackage (Verse.Pawn,Verse.AI.JobIssueParams) Verse.AI.ThinkNode_Tagger:TryIssueJobPackage (Verse.Pawn,Verse.AI.JobIssueParams) Verse.AI.ThinkNode_Priority:TryIssueJobPackage (Verse.Pawn,Verse.AI.JobIssueParams) Verse.AI.ThinkNode_Conditional:TryIssueJobPackage (Verse.Pawn,Verse.AI.JobIssueParams) Verse.AI.ThinkNode_Priority:TryIssueJobPackage (Verse.Pawn,Verse.AI.JobIssueParams) (wrapper dynamic-method) Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.DetermineNextJob_Patch3 (Verse.AI.Pawn_JobTracker,Verse.ThinkTreeDef&) Verse.AI.Pawn_JobTracker:TryFindAndStartJob () (wrapper dynamic-method) Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.EndCurrentJob_Patch4 (Verse.AI.Pawn_JobTracker,Verse.AI.JobCondition,bool,bool) (wrapper dynamic-method) Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.JobTrackerTick_Patch0 (Verse.AI.Pawn_JobTracker) (wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch1 (Verse.Pawn) (wrapper dynamic-method) Verse.TickList:Verse.TickList.Tick_Patch2 (Verse.TickList) (wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch5 (Verse.TickManager) Verse.TickManager:TickManagerUpdate () (wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch2 (Verse.Game) (wrapper dynamic-method) Verse.Root_Play:Verse.Root_Play.Update_Patch1 (Verse.Root_Play)

simplyWiri commented 1 year ago

Fixed in https://github.com/simplyWiri/Loadout-Compositing/commit/9c5e93f234be10bf05de2a9551a4aa0146269d23, ty. I'll get this out to steam tonight, cheers.

(This is caused by removing a mod which adds stuffs, and having apparel on your map which is now 'stuff-less', because the mod that the stuff came from was nulled out).