OrionFive / Hospitality

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

Unstable branch-cross expansion integration- breaks Hospitality #711

Closed iloverugs closed 1 year ago

iloverugs commented 1 year ago

Describe the bug Tried new unstable branch that links Biotech and Ideology. After rescuing a pawn, he eventually turned into a guest. When he did so, I got an error referencing a "GuestsHasNoFood thought state".

To Reproduce Steps to reproduce the behavior:

  1. New Game on unstable Branch
  2. Click on '....'
  3. Open '....'
  4. First Guest appeared, got error that repeats.
  5. Console log [Press Ctrl-F12 after the issue has occurred. You will get a link. Put it here.]

(https://gist.github.com/e1e6b6921dedfbd086b21f40f704a1cd)

Error stacktrace The error has extra information that is not included in the log. Please select it in the console and copy the whole error message.

Exception while recalculating GuestHasNoFood thought state for pawn Nathan: System.MissingMethodException: bool RimWorld.FoodUtility.TryFindBestFoodSourceFor(Verse.Pawn,Verse.Pawn,bool,Verse.Thing&,Verse.ThingDef&,bool,bool,bool,bool,bool,bool,bool,bool,bool,bool,RimWorld.FoodPreferability)
  at Hospitality.ThoughtWorker_HasNoFood.GetStateToCache (Verse.Pawn pawn) [0x00000] in <c9b8dd3a547c43e09bc279a45ca07b1e>:0 
  at Hospitality.ThoughtWorkerCached.CurrentStateInternal (Verse.Pawn pawn) [0x0001b] in <c9b8dd3a547c43e09bc279a45ca07b1e>:0 
  at RimWorld.ThoughtWorker.CurrentState (Verse.Pawn p) [0x00010] in <76578f4634ad4d0aafa6fbcdbf948806>:0 
  at RimWorld.SituationalThoughtHandler.TryCreateThought (RimWorld.ThoughtDef def) [0x0001e] in <76578f4634ad4d0aafa6fbcdbf948806>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch4 (string)
RimWorld.SituationalThoughtHandler:TryCreateThought (RimWorld.ThoughtDef)
RimWorld.SituationalThoughtHandler:CheckRecalculateMoodThoughts ()
RimWorld.SituationalThoughtHandler:AppendMoodThoughts (System.Collections.Generic.List`1<RimWorld.Thought>)
RimWorld.ThoughtHandler:GetAllMoodThoughts (System.Collections.Generic.List`1<RimWorld.Thought>)
RimWorld.ThoughtHandler:GetDistinctMoodThoughtGroups (System.Collections.Generic.List`1<RimWorld.Thought>)
(wrapper dynamic-method) RimWorld.ThoughtHandler:RimWorld.ThoughtHandler.TotalMoodOffset_Patch2 (RimWorld.ThoughtHandler)
RimWorld.Need_Mood:get_CurInstantLevel ()
RimWorld.Need_Seeker:NeedInterval ()
(wrapper dynamic-method) RimWorld.Need_Mood:RimWorld.Need_Mood.NeedInterval_Patch1 (RimWorld.Need_Mood)
(wrapper dynamic-method) RimWorld.Pawn_NeedsTracker:RimWorld.Pawn_NeedsTracker.NeedsTrackerTick_Patch2 (RimWorld.Pawn_NeedsTracker)
(wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch1 (Verse.Pawn)
Verse.TickList:Tick ()
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch3 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch2 (Verse.Game)
Verse.Root_Play:Update ()

Screenshots If you think it helps, add screenshots to help explain the problem.

Fixing bugs takes a lot of time. Please consider becoming a patron to support development.

OrionFive commented 1 year ago

Thanks, but I can't support the unstable branch.