RimWorld

RimWorld

Replimat
This topic has been locked
darkzero Mar 17, 2021 @ 10:22pm
Cavaver Repocessor Bug.
I ran into an interesting bug. When trying to place the replimat corpse processor I get this.

Root level exception in OnGUI(): System.NullReferenceException: Object reference not set to an instance of an object
at Replimat.ModCompatibility.AlienCorpseHasOrganicFlesh (Verse.ThingDef def) [0x0001a] in <aca7c4c751b94bdfb6c2307293304117>:0
at Replimat.Building_ReplimatCorpseRecycler+<>c.<GetParentStoreSettings>b__21_0 (Verse.ThingDef def) [0x00000] in <aca7c4c751b94bdfb6c2307293304117>:0
at System.Collections.Generic.HashSet`1[T].RemoveWhere (System.Predicate`1[T] match) [0x0003a] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at Replimat.Building_ReplimatCorpseRecycler.GetParentStoreSettings () [0x00018] in <aca7c4c751b94bdfb6c2307293304117>:0
at RimWorld.StorageSettings..ctor (RimWorld.IStoreSettingsParent owner) [0x00010] in <c36f9493c9844ddaa7fb5c788416098f>:0
at Replimat.Building_ReplimatCorpseRecycler.PostMake () [0x00006] in <aca7c4c751b94bdfb6c2307293304117>:0
at (wrapper dynamic-method) Verse.ThingMaker.Verse.ThingMaker.MakeThing_Patch1(Verse.ThingDef,Verse.ThingDef)
at RimWorld.Designator_Build.DesignateSingleCell (Verse.IntVec3 c) [0x0006a] in <c36f9493c9844ddaa7fb5c788416098f>:0
at (wrapper dynamic-method) Verse.DesignatorManager.Verse.DesignatorManager.ProcessInputEvents_Patch1(Verse.DesignatorManager)
at RimWorld.MapInterface.HandleMapClicks () [0x0000f] in <c36f9493c9844ddaa7fb5c788416098f>: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)
Verse.Log:Verse.Log.Error_Patch2(String, Boolean)
Verse.Root:Verse.Root.OnGUI_Patch1(Root)

There's only one thing I can think of immediately off hand. Android Tiers and Androids. Both add 'races' without flesh. They get disassembled. That might be causing the error but I was hoping for a second set of eyes from you incase I'm wrong.
< >
Showing 1-3 of 3 comments
ArgentDread Apr 23, 2021 @ 6:10pm 
I'm getting this one that looks very similar while having the exact same problem. This one was specifically from a droid constructing it. If I try to place it in Dev mode I get a similar (but shorter) error and it still doesn't appear.
---------
Exception in JobDriver tick for pawn Droid 8 driver=JobDriver_ConstructFinishFrame (toilIndex=1) driver.job=(FinishFrame (Job_6283798) A=Thing_Frame_ReplimatCorpseRecycler237690)
System.NullReferenceException: Object reference not set to an instance of an object
at Replimat.ModCompatibility.AlienCorpseHasOrganicFlesh (Verse.ThingDef def) [0x0001a] in <aca7c4c751b94bdfb6c2307293304117>:0
at Replimat.Building_ReplimatCorpseRecycler+<>c.<GetParentStoreSettings>b__21_0 (Verse.ThingDef def) [0x00000] in <aca7c4c751b94bdfb6c2307293304117>:0
at System.Collections.Generic.HashSet`1[T].RemoveWhere (System.Predicate`1[T] match) [0x0003a] in <351e49e2a5bf4fd6beabb458ce2255f3>:0
at Replimat.Building_ReplimatCorpseRecycler.GetParentStoreSettings () [0x00018] in <aca7c4c751b94bdfb6c2307293304117>:0
at RimWorld.StorageSettings..ctor (RimWorld.IStoreSettingsParent owner) [0x00010] in <c36f9493c9844ddaa7fb5c788416098f>:0
at Replimat.Building_ReplimatCorpseRecycler.PostMake () [0x00006] in <aca7c4c751b94bdfb6c2307293304117>:0
at Verse.ThingMaker.MakeThing (Verse.ThingDef def, Verse.ThingDef stuff) [0x000ca] in <c36f9493c9844ddaa7fb5c788416098f>:0
at (wrapper dynamic-method) RimWorld.Frame.RimWorld.Frame.CompleteConstruction_Patch2(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_Patch1(Verse.AI.JobDriver)
Verse.Log:Error(String, Boolean)
Verse.AI.JobUtility:TryStartErrorRecoverJob(Pawn, String, Exception, JobDriver)
Verse.AI.JobDriver:Verse.AI.JobDriver.DriverTick_Patch1(JobDriver)
Verse.AI.Pawn_JobTracker:JobTrackerTick()
Verse.Pawn:Verse.Pawn.Tick_Patch2(Pawn)
Verse.TickList:Tick()
Verse.TickManager:Verse.TickManager.DoSingleTick_Patch1(TickManager)
Verse.TickManager:TickManagerUpdate()
Verse.Game:Verse.Game.UpdatePlay_Patch2(Game)
Verse.Root_Play:Update()
---------
Just for the sake of being thorough I tried HAR 2.0 with Nyarons and Kijins but no Androids. Then just Nyarons then just Kijins. I got basically the same error all three times. For the sake of being REALLY thorough (and because I think it's HAR 2.0 itself) I then tried it with HAR 2.0 but no race mods. Exact same problem with pretty much the same error message.
The solution for me is "Don't have Humanoid Alien Races 2.0 at all." A solution with which I am less than satisfied...
Last edited by ArgentDread; Apr 23, 2021 @ 6:11pm
saekikatsuya Jul 4, 2021 @ 10:25am 
me too,I just can't find this one.
looks like the old-fashioned way is answer.
sumghai  [developer] Jul 11, 2021 @ 2:18am 
This issue has been fixed as of version 1.2.5.

If it re-occurs, please file a bug report on the mod's GitHub issue tracker.
< >
Showing 1-3 of 3 comments
Per page: 1530 50