AaronCRobinson / ExpandedRoofing

RimWorld Mod - expands roofing types and options
MIT License
9 stars 13 forks source link

Solar Controller missing an NetID value #33

Open Erokusan opened 6 months ago

Erokusan commented 6 months ago

Made a Solar Controller in my colony, realized I had a better spot to put it, and tried to move it, my colonist then no longer wanted to path or anything. Tested it with all means of movement, up to literally debug deleting it and having the colonists make a new one from scratch.

Exception in JobDriver tick for pawn Crouchy driver=JobDriver_HaulToContainer (toilIndex=2) driver.job=(HaulToContainer (Job_8934873) A=Thing_SolarController941218 B=Thing_Blueprint_Install_SolarController953765) System.InvalidOperationException: Nullable object must have a value. at System.Nullable`1[T].get_Value () [0x00008] in :0 at ExpandedRoofing.CompPowerPlantSolarController.get_NetId () [0x00000] in <595f9dd0c97d4eb485bdff44a709f167>:0 at (wrapper dynamic-method) ExpandedRoofing.SolarRoofingTracker.ExpandedRoofing.SolarRoofingTracker.RemoveController_Patch0(ExpandedRoofing.SolarRoofingTracker,Verse.Thing) at (wrapper dynamic-method) ExpandedRoofing.CompPowerPlantSolarController.ExpandedRoofing.CompPowerPlantSolarController.PostDeSpawn_Patch0(ExpandedRoofing.CompPowerPlantSolarController,Verse.Map) at Verse.ThingWithComps.DeSpawn (Verse.DestroyMode mode) [0x00026] in :0 at (wrapper dynamic-method) Verse.Building.Verse.Building.DeSpawn_Patch4(Verse.Building,Verse.DestroyMode) at Verse.Thing.DeSpawnOrDeselect (Verse.DestroyMode mode) [0x0001f] in :0 at RimWorld.MinifyUtility.MakeMinified (Verse.Thing thing) [0x00024] in :0 at RimWorld.Toils_Construct+<>c__DisplayClass1_0.b__1 () [0x00089] in :0 at (wrapper dynamic-method) Verse.AI.JobDriver.Verse.AI.JobDriver.DriverTick_Patch0(Verse.AI.JobDriver) UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch4 (string) (wrapper dynamic-method) Verse.AI.JobUtility:Verse.AI.JobUtility.TryStartErrorRecoverJob_Patch1 (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_Patch2 (Verse.Pawn) Verse.TickList:Tick () (wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch6 (Verse.TickManager) Verse.TickManager:TickManagerUpdate () (wrapper dynamic-method) Verse.Game:Verse.Game.UpdatePlay_Patch3 (Verse.Game) (wrapper dynamic-method) Verse.Root_Play:Verse.Root_Play.Update_Patch1 (Verse.Root_Play)

This is directly copied from the debug log, unfortunately, I am bad at getting the better means of log reporting, so I hope this suffices enough?