Danimineiro / BundleOfTraits

A Rimworld Mod that adds new traits
https://steamcommunity.com/sharedfiles/filedetails/?id=2600986277
MIT License
0 stars 2 forks source link

[BUG] Another NRE error: System.NullReferenceException: Object reference not set to an instance of an object at More_Traits.BOTTraitsManager.ShouldSkipFleeingForPawn (Verse.Pawn pawn) [0x00001] #3

Closed Taranchuk closed 2 years ago

Taranchuk commented 2 years ago

Describe the bug After update, getting another error every 2-3 seconds

System.NullReferenceException: Object reference not set to an instance of an object
  at More_Traits.BOTTraitsManager.ShouldSkipFleeingForPawn (Verse.Pawn pawn) [0x00001] in <e5d4bbc969344d0f96183f0360354682>:0 
  at More_Traits.BOTTraitsManager.<ManageFleeing>b__29_0 (Verse.Pawn pawn) [0x00000] in <e5d4bbc969344d0f96183f0360354682>:0 
  at System.Linq.Enumerable+WhereEnumerableIterator`1[TSource].MoveNext () [0x00037] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at More_Traits.BOTTraitsManager.ManageFleeing (System.Int32 whenTicksDivisibleBy, System.Collections.Generic.HashSet`1[T] hashSet) [0x00101] in <e5d4bbc969344d0f96183f0360354682>:0 
  at More_Traits.BOTTraitsManager.GameComponentTick () [0x0001a] in <e5d4bbc969344d0f96183f0360354682>:0 
  at Verse.GameComponentUtility.GameComponentTick () [0x00017] in <34cd8c64c0e04e56a196186f1b4f7089>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch4 (string)
Verse.GameComponentUtility:GameComponentTick ()
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch5 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch3 (Verse.Game)
Verse.Root_Play:Update ()

To Reproduce As soon as I loaded my save, I'm getting these errors Expected behavior No errors Logs https://gist.github.com/HugsLibRecordKeeper/8cebc2259539e147efe7bf0d66b6dcf8 Screenshots My mod list

Danimineiro commented 2 years ago

I'm sorry, I hope these are gone now. I wish I had testers for this. Thank you so much for giving me the reports!

should be fixed in 2e0cdeee585a793b869268a603b1b405bf059f5e