UnlimitedHugs / RimworldAllowTool

A set of tools to simplify common tasks in Rimworld.
https://ludeon.com/forums/index.php?topic=17218.0
Other
60 stars 34 forks source link

Getting this error all the time #51

Closed ghost closed 5 months ago

ghost commented 1 year ago

System.NullReferenceException: Object reference not set to an instance of an object at Verse.GridsUtility.Fogged (Verse.IntVec3 c, Verse.Map map) [0x00000] in <8c412d4a16f94d4cb337e846f2dee469>:0 at AllowTool.Designator_HaulUrgently.ThingIsRelevant (Verse.Thing thing) [0x00015] in :0 at AllowTool.Designator_HaulUrgently.CanDesignateThing (Verse.Thing t) [0x00001] in :0 at (wrapper dynamic-method) Verse.Designator.Verse.Designator.CreateReverseDesignationGizmo_Patch1(Verse.Designator,Verse.Thing) at (wrapper dynamic-method) RimWorld.InspectGizmoGrid.RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0(System.Collections.Generic.IEnumerable1<object>,Verse.Gizmo&) currentSelectable: null UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch1 (string) Verse.Log:ErrorOnce (string,int) (wrapper dynamic-method) RimWorld.InspectGizmoGrid:RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0 (System.Collections.Generic.IEnumerable1,Verse.Gizmo&) RimWorld.MainTabWindow_Inspect:DrawInspectGizmos () RimWorld.InspectPaneUtility:ExtraOnGUI (RimWorld.IInspectPane) RimWorld.MainTabWindow_Inspect:ExtraOnGUI () Verse.WindowStack:WindowStackOnGUI () (wrapper dynamic-method) RimWorld.UIRoot_Play:RimWorld.UIRoot_Play.UIRootOnGUI_Patch1 (RimWorld.UIRoot_Play) (wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)

ghost commented 1 year ago
Celivalg commented 1 year ago

AllowTool.Designator_HaulUrgently.ThingIsRelevant does not check if Thing has a null map... Could be fixed by either using Thing.MapHeld or checking for Thing.Map != null beforehand

5trick commented 1 year ago

I also get this error repeatedly. I've had to disable Haul Urgently completely because of the near constant red error popups.

System.NullReferenceException: Object reference not set to an instance of an object at Verse.GridsUtility.Fogged (Verse.IntVec3 c, Verse.Map map) [0x00000] in <446267b72ea8432286db63aecc70cf59>:0 at AllowTool.Designator_HaulUrgently.ThingIsRelevant (Verse.Thing thing) [0x00015] in :0 at AllowTool.Designator_HaulUrgently.CanDesignateThing (Verse.Thing t) [0x00001] in :0 at (wrapper dynamic-method) Verse.Designator.Verse.Designator.CreateReverseDesignationGizmo_Patch1(Verse.Designator,Verse.Thing) at (wrapper dynamic-method) RimWorld.InspectGizmoGrid.RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0(System.Collections.Generic.IEnumerable1<object>,Verse.Gizmo&) currentSelectable: null UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) Verse.Log:ErrorOnce (string,int) (wrapper dynamic-method) RimWorld.InspectGizmoGrid:RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0 (System.Collections.Generic.IEnumerable1,Verse.Gizmo&) RimWorld.MainTabWindow_Inspect:DrawInspectGizmos () RimWorld.InspectPaneUtility:ExtraOnGUI (RimWorld.IInspectPane) RimWorld.MainTabWindow_Inspect:ExtraOnGUI () Verse.WindowStack:WindowStackOnGUI () (wrapper dynamic-method) RimWorld.UIRoot_Play:RimWorld.UIRoot_Play.UIRootOnGUI_Patch1 (RimWorld.UIRoot_Play) (wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch2 (Verse.Root)