Ludeon Forums

RimWorld => Mods => Help => Topic started by: Scamosul on December 02, 2021, 09:43:52 AM

Title: System.ArgumentNullException: Value cannot be null. Console Error
Post by: Scamosul on December 02, 2021, 09:43:52 AM
Hey, I got a question about some console errors. I got them after one of my colonist build some buildings (the building will disepear) and I was curious if I can fix them. Here are some examples:   

Exception in JobDriver tick for pawn Costa driver=JobDriver_ConstructFinishFrame (toilIndex=1) driver.job=(FinishFrame (Job_1987013) A=Thing_Frame_Facility_ResearchCounter321643)
System.ArgumentNullException: Value cannot be null.
Parameter name: type
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00003] in <eae584ce26bc40229c1b1aa476bfa589>:0
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
  at (wrapper dynamic-method) Verse.ThingMaker.Verse.ThingMaker.MakeThing_Patch2(Verse.ThingDef,Verse.ThingDef)
  at (wrapper dynamic-method) RimWorld.Frame.RimWorld.Frame.CompleteConstruction_Patch3(RimWorld.Frame,Verse.Pawn)
  at (wrapper dynamic-method) RimWorld.JobDriver_ConstructFinishFrame+<>c__DisplayClass4_0.RimWorld.JobDriver_ConstructFinishFrame+c__DisplayClass4_0.<MakeNewToils>b__1_Patch0(RimWorld.JobDriver_ConstructFinishFrame/<>c__DisplayClass4_0)
  at (wrapper dynamic-method) Verse.AI.JobDriver.Verse.AI.JobDriver.DriverTick_Patch0(Verse.AI.JobDriver)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.AI.JobUtility:TryStartErrorRecoverJob (Verse.Pawn,string,System.Exception,Verse.AI.JobDriver)
(wrapper dynamic-method) Verse.AI.JobDriver:Verse.AI.JobDriver.DriverTick_Patch0 (Verse.AI.JobDriver)
(wrapper dynamic-method) Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.JobTrackerTick_Patch0 (Verse.AI.Pawn_JobTracker)
(wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch1 (Verse.Pawn)
Verse.TickList:Tick ()
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch4 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
(wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch1 (Verse.Game)
Verse.Root_Play:Update ()



Root level exception in OnGUI(): System.ArgumentNullException: Value cannot be null.
Parameter name: type
  at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00003] in <eae584ce26bc40229c1b1aa476bfa589>:0
  at System.Activator.CreateInstance (System.Type type) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
  at (wrapper dynamic-method) Verse.ThingMaker.Verse.ThingMaker.MakeThing_Patch2(Verse.ThingDef,Verse.ThingDef)
  at RimWorld.Designator_Build.DesignateSingleCell (Verse.IntVec3 c) [0x00081] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0
  at Verse.DesignatorManager.ProcessInputEvents () [0x00058] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0
  at RimWorld.MapInterface.HandleMapClicks () [0x0000f] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0
  at (wrapper dynamic-method) RimWorld.UIRoot_Play.RimWorld.UIRoot_Play.UIRootOnGUI_Patch1(RimWorld.UIRoot_Play)
  at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
(wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)

Unfortunatly I have no experience in moding and I'm abismal at coding, so if someone can explain it to me in 4th grade terms it will much appreciated:).
Title: Re: System.ArgumentNullException: Value cannot be null. Console Error
Post by: Canute on December 02, 2021, 09:57:37 AM
Hi,
when you don't have experience in moding, how do you think you can solve the issue ?
Open a file with the texteditor and change a value ? Sorry but that don't work with that kind of error's.

The only thing you can do to report the issue to the mod author.
But now is the problem to identify the mod.
The only hint i see is "Thing_Frame_Facility_ResearchCounter", some research building should be finished, if you know what building that is, you prolly should know what mod add or change it.

As normal player your shouldn't add mod's that throw out error's at activation before you start a new colony.
Title: Re: System.ArgumentNullException: Value cannot be null. Console Error
Post by: Scamosul on December 03, 2021, 07:57:51 AM
I just hoped to be a way ( a fairly easy one) to find with what mod is incompatible, because i would rather disable that one.