RimWorld

RimWorld

Vanilla Traits Expanded
Jedia Kyrol 23 May, 2023 @ 6:03pm
Visiting trader with "Prodigy" Trait throwing errors
Exception while recalculating VTE_NoDedicatedLaboratory thought state for pawn Catmint: System.InvalidOperationException: Sequence contains no elements at System.Linq.Enumerable.First[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00010] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at zed_0xff.CPS.Patch_ProperRoom.Postfix (System.Boolean& __result, Verse.Room& __instance) [0x0000c] in <cfe36684b24a4e329ee51a609e90391b>:0 at (wrapper dynamic-method) Verse.Room.Verse.Room.get_ProperRoom_Patch1(Verse.Room) at (wrapper dynamic-method) Verse.Room.Verse.Room.UpdateRoomStatsAndRole_Patch1(Verse.Room) at Verse.Room.get_Role () [0x00008] in <95de19971c5d40878d8742747904cdcd>:0 at VanillaTraitsExpanded.ThoughtWorker_NoDedicatedLab.HasLab (Verse.Map map) [0x0001a] in <5310e368466646adababb881b6e131f4>:0 at VanillaTraitsExpanded.ThoughtWorker_NoDedicatedLab.CurrentStateInternal (Verse.Pawn p) [0x00049] in <5310e368466646adababb881b6e131f4>:0 at RimWorld.ThoughtWorker.CurrentState (Verse.Pawn p) [0x00010] in <95de19971c5d40878d8742747904cdcd>:0 at (wrapper dynamic-method) RimWorld.SituationalThoughtHandler.RimWorld.SituationalThoughtHandler.TryCreateThought_Patch1(RimWorld.SituationalThoughtHandler,RimWorld.ThoughtDef) UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string) (wrapper dynamic-method) RimWorld.SituationalThoughtHandler:RimWorld.SituationalThoughtHandler.TryCreateThought_Patch1 (RimWorld.SituationalThoughtHandler,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) (wrapper dynamic-method) RimWorld.Need_Mood:RimWorld.Need_Mood.get_CurInstantLevel_Patch0 (RimWorld.Need_Mood) RimWorld.Need_Seeker:NeedInterval () (wrapper dynamic-method) RimWorld.Need_Mood:RimWorld.Need_Mood.NeedInterval_Patch1 (RimWorld.Need_Mood) RimWorld.Pawn_NeedsTracker:NeedsTrackerTick () Verse.Pawn:Tick () 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_Patch1 (Verse.Game) Verse.Root_Play:Update ()