OrionFive / Hospitality

Orion's "Hospitality" and more
https://www.patreon.com/orionmods
GNU General Public License v3.0
91 stars 52 forks source link

Hospitality - #625

Closed docssy closed 3 years ago

docssy commented 3 years ago

Well.. i borked the title, but it's a bug report!

On loading:

System.NullReferenceException: Object reference not set to an instance of an object at Hospitality.DefsUtility+<>c.b__2_1 (RimWorld.PawnGroupMaker pgm) [0x00000] in <30fe676ee2134c1abfb8c0f3d3d81b66>:0 at System.Collections.Generic.List1[T].FindIndex (System.Int32 startIndex, System.Int32 count, System.Predicate1[T] match) [0x0003b] in :0 at System.Collections.Generic.List1[T].FindIndex (System.Predicate1[T] match) [0x00000] in :0 at Verse.GenCollection.Any[T] (System.Collections.Generic.List1[T] list, System.Predicate1[T] predicate) [0x00000] in <3f8399aa16fa418f9dff5e3ec4ac6fc6>:0 at Hospitality.DefsUtility.CheckFactionDefs () [0x00042] in <30fe676ee2134c1abfb8c0f3d3d81b66>:0 at Hospitality.DefsUtility.CheckForInvalidDefs () [0x00005] in <30fe676ee2134c1abfb8c0f3d3d81b66>:0

During gameplay, hundreds of these lines with or without guests on the map:

SOYUZ:[NOTSOYUZ] Soyuz caught an error while a pawn is ticking. Soyuz probably didn't cause it since this is just used to catch the exception and reset the state. Unless Soyuz is in the StackTrace it's not it. with error System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00003] in :0 at System.Activator.CreateInstance (System.Type type) [0x00000] in :0 at RimWorld.InteractionDef.get_Worker () [0x00008] in <3f8399aa16fa418f9dff5e3ec4ac6fc6>:0 at Hospitality.Patches.Pawn_InteractionsTracker_Patch+TryInteractRandomly+<>cDisplayClass0_1.b__0 (RimWorld.InteractionDef x) [0x00019] in <30fe676ee2134c1abfb8c0f3d3d81b66>:0 at Verse.GenCollection.TryRandomElementByWeight[T] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] weightSelector, T& result) [0x0001f] in <3f8399aa16fa418f9dff5e3ec4ac6fc6>:0 at Hospitality.Patches.Pawn_InteractionsTracker_Patch+TryInteractRandomly.Replacement (RimWorld.Pawn_InteractionsTracker instance, System.Boolean& result, Verse.Pawn __pawn, System.Collections.Generic.List`1[T] workingList, System.Int32 ___lastInteractionTime) [0x0010e] in <30fe676ee2134c1abfb8c0f3d3d81b66>:0 at (wrapper dynamic-method) RimWorld.Pawn_InteractionsTracker.RimWorld.Pawn_InteractionsTracker.TryInteractRandomly_Patch2(RimWorld.Pawn_InteractionsTracker) at (wrapper dynamic-method) RimWorld.Pawn_InteractionsTracker.RimWorld.Pawn_InteractionsTracker.InteractionsTrackerTick_Patch1(RimWorld.Pawn_InteractionsTracker) at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.Tick_Patch6(Verse.Pawn) UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string) RocketMan.Logger:Debug (string,System.Exception,string) Soyuz.Patches.Pawn_Tick_Patch:Finalizer (Verse.Pawn,System.Exception) (wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch6 (Verse.Pawn) Verse.TickList:Tick () (wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch6 (Verse.TickManager) Verse.TickManager:TickManagerUpdate () (wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch1 (Verse.Game) Verse.Root_Play:Update ()

You're going to love me, mod list: `

OrionFive commented 3 years ago

This is a pretty sorry excuse for a bug report. I still need your log.

docssy commented 3 years ago

Sorry =)

Player.log

OrionFive commented 3 years ago

This is not a Hospitality issue... Normally I would say this is a lost cause. I wouldn't even know where to start.

Clear your mod list and start fresh. And stop adding stuff as soon as you get errors.

Alternatively, start by removing outdated or broken mods. For example, whatever mod adds the artillery, and every mod that is not using a valid package ID anymore. Do that and start a new game, until you don't get errors in the menu or when the game is created.

Good luck!

docssy commented 3 years ago

I'm sorry. But I did find the conflicting mod for you. Thank goodness there's a mod button called whats that patch, to dump harmony patches.

Boolean RimWorld.Pawn_InteractionsTracker::TryInteractRandomly() (pre) OskarPotocki.VanillaSocialInteractionsExpanded (pre) Orion.Hospitality

OrionFive commented 3 years ago

Hmm.. From the looks of it this has to be fixed on their end.