Ludeon Forums

Ludeon Forums

  • June 26, 2019, 06:05:05 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: NullException when trying to use Debug screen to Do Incident  (Read 100 times)

sahothron

  • Muffalo
  • *
  • Posts: 2
  • Refugee
    • View Profile

I am trying to use the debug window to start an incident, since I think there may be an error with my modded game since there are no incidents happening. I got this error with mods enabled, so I also tried with all mods disabled. I completely restarted the game by closing the application to make sure nothing got kept from the modded instance. I am still receiving this error so I am certain it is not caused by a mod. I have verified my game files via steam and nothing was wrong there. This is happening with new saves as well so I don't think my save is relevant. This is happening on the most recent full release on steam. 1.0.2282 (64-bit) on Windows 10.

The error I am receiving goes like this:

Exception filling window for Verse.Dialog_DebugActionsMenu: System.ArgumentNullException: Argument cannot be null.
Parameter name: first
  at System.Linq.Check.FirstAndSecond (System.Object first, System.Object second) [0x00000] in <filename unknown>:0
  at System.Linq.Enumerable.Intersect[IncidentTargetTagDef] (IEnumerable`1 first, IEnumerable`1 second, IEqualityComparer`1 comparer) [0x00000] in <filename unknown>:0
  at System.Linq.Enumerable.Intersect[IncidentTargetTagDef] (IEnumerable`1 first, IEnumerable`1 second) [0x00000] in <filename unknown>:0
  at RimWorld.IncidentDef.TargetAllowed (IIncidentTarget target) [0x00000] in <filename unknown>:0
  at Verse.Dialog_DebugActionsMenu+<DoIncidentDebugAction>c__AnonStorey53.<>m__1 (RimWorld.IncidentDef d) [0x00000] in <filename unknown>:0
  at System.Linq.Enumerable+<CreateWhereIterator>c__Iterator1D`1[RimWorld.IncidentDef].MoveNext () [0x00000] in <filename unknown>:0
  at System.Collections.Generic.List`1[RimWorld.IncidentDef].AddEnumerable (IEnumerable`1 enumerable) [0x00000] in <filename unknown>:0
  at System.Collections.Generic.List`1[RimWorld.IncidentDef]..ctor (IEnumerable`1 collection) [0x00000] in <filename unknown>:0
  at System.Linq.Enumerable.ToArray[IncidentDef] (IEnumerable`1 source) [0x00000] in <filename unknown>:0
  at System.Linq.QuickSort`1[RimWorld.IncidentDef]..ctor (IEnumerable`1 source, System.Linq.SortContext`1 context) [0x00000] in <filename unknown>:0
  at System.Linq.QuickSort`1+<Sort>c__Iterator21[RimWorld.IncidentDef].MoveNext () [0x00000] in <filename unknown>:0
  at Verse.Dialog_DebugActionsMenu+<DoIncidentDebugAction>c__AnonStorey53.<>m__0 () [0x00000] in <filename unknown>:0
  at Verse.Dialog_DebugOptionLister.DebugAction (System.String label, System.Action action) [0x00000] in <filename unknown>:0
  at Verse.Dialog_DebugActionsMenu.DoIncidentDebugAction (IIncidentTarget target) [0x00000] in <filename unknown>:0
  at Verse.Dialog_DebugActionsMenu.DoListingItems_MapActions () [0x00000] in <filename unknown>:0
  at Verse.Dialog_DebugActionsMenu.DoListingItems () [0x00000] in <filename unknown>:0
  at Verse.Dialog_OptionLister.DoWindowContents (Rect inRect) [0x00000] in <filename unknown>:0
  at Verse.Window+<WindowOnGUI>c__AnonStorey0.<>m__0 (Int32 x) [0x00000] in <filename unknown>:0
Verse.Log:Error(String, Boolean)
Verse.<WindowOnGUI>c__AnonStorey0:<>m__0(Int32)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, Int32, GUISkin, Int32, Single, Single, GUIStyle)

« Last Edit: June 14, 2019, 04:28:07 PM by sahothron »
Logged

Canute

  • Transcendent
  • *****
  • Posts: 7310
  • Refugee
    • View Profile
Re: NullException when trying to use Debug screen to Do Incident
« Reply #1 on: June 14, 2019, 05:50:33 PM »

Hi,
Quote
I have verified my game files via steam
i blame Steam or maybe the Ludeon studios for not being a good job for this.
It happen many times in the past that old version files may cause some trouble.
Try to delete at your Rimworld installation the folder Mods/Core and then let steam repair it.

If that still happen, please tell us what incident you want to start on a unmodded game (hugslib is allowed because it offer you a quickstart function for a test colony).
Logged

sahothron

  • Muffalo
  • *
  • Posts: 2
  • Refugee
    • View Profile
Re: NullException when trying to use Debug screen to Do Incident
« Reply #2 on: June 15, 2019, 11:43:57 AM »

Hi,
Quote
I have verified my game files via steam
i blame Steam or maybe the Ludeon studios for not being a good job for this.
It happen many times in the past that old version files may cause some trouble.
Try to delete at your Rimworld installation the folder Mods/Core and then let steam repair it.

If that still happen, please tell us what incident you want to start on a unmodded game (hugslib is allowed because it offer you a quickstart function for a test colony).

Thank you very much this has fixed the problem!
Logged