Ludeon Forums

RimWorld => Bugs => Topic started by: pipey992 on June 21, 2020, 08:51:12 AM

Title: Incident menu bug
Post by: pipey992 on June 21, 2020, 08:51:12 AM
In my games I enjoy triggering random incidents however recently i get this error every time I try to open the incident menu: exception filling window for Verse.DialogDebugActionsMenu: System.InvalidOperationException: Sequence contains no elements at System.Linq.Enumerable.Min[TSource] (System.Collections.Generic.IEnumerable1[T] source, System.Func2[T,TResult] selector) [0x00030] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 at RimWorld.ManhunterPackIncidentUtility.TryFindManhunterAnimalKind (System.Single points, System.Int32 tile, Verse.PawnKindDef& animalKind) [0x00042] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at RimWorld.IncidentWorker_ManhunterPack.CanFireNowSub (RimWorld.IncidentParms parms) [0x00023] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at RimWorld.IncidentWorker.CanFireNow (RimWorld.IncidentParms parms, System.Boolean forced) [0x00155] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at Verse.DebugActionsIncidents.DoIncidentDebugAction (RimWorld.IIncidentTarget target, System.Int32 iterations) [0x000d0] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at Verse.DebugActionsIncidents+<>cDisplayClass5_0.<GetIncidentDebugAction>b_0 () [0x00000] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at Verse.Dialog_DebugOptionLister.DebugAction (System.String label, System.Action action) [0x0003e] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at Verse.Dialog_DebugActionsMenu.DoListingItems () [0x00084] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at Verse.Dialog_OptionLister.DoWindowContents (UnityEngine.Rect inRect) [0x000fb] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0 at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x00165] in <0ee2c524c4be441e9b7f8bfcb20aca6f>:0

Has anyone come across anything similar? i cant pinpoint it to a mod and i have no mods installed that should really touch incidents. Edit: It also doesn't happen straight away only after a few in game days.
Title: Re: Incident menu bug
Post by: Canute on June 21, 2020, 09:40:30 AM
Hi,
even first time poster should read the stickies before you post anything.
You allready notice it is a mod problem and not a vanilla gameplay bug, so it isn't anything for this subforum.

You try to execute an manhunter incident, so the problem isn't at the incident it is at the manhunter or animals.
So onr or more of your mod's add or modify animal's and that is the problem, IMO.

Title: Re: Incident menu bug
Post by: pipey992 on June 21, 2020, 10:11:21 AM
Im not sure that it is a mod problem, i've tried switching off mods to correct for that but im still getting the same error.

and i have not tried to execute any incident, the error appears on trying to open the menu itself
Title: Re: Incident menu bug
Post by: Canute on June 21, 2020, 10:55:47 AM
QuoteIm not sure that it is a mod problem,
Pretty simple to verify this.
Deactivate all mods, then open the incident menu.
If you got the same error, it is a Rimworld problem, then you should verfiy your Rimworld installation.

No error, one of your mods cause the problem.
Hugslib offer the quickstart feature, the top right icon.
After you reactivate all mods, shift-left click to create a small test colony.
Open the incident menu, if you got the errorr, be happy.
Then you just need to deactivate some mods and repeat to create test colonies, until no error happen.
Title: Re: Incident menu bug
Post by: spawarotti on July 02, 2020, 11:59:14 PM
I believe I have run into the same issue. Similarly to this thread, the problem persist even if I unload mods and it doesn't always manifest.

For details, please see https://ludeon.com/forums/index.php?topic=52543.msg480569#msg480569
Title: Re: Incident menu bug
Post by: ison on July 27, 2020, 12:19:01 PM
Fixed, thanks.