Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
private bool ThingIsRelevant(Thing thing) => thing.def != null && !thing.Position.Fogged(thing.Map) && (thing.def.alwaysHaulable || thing.def.EverHaulable) && !thing.IsInValidBestStorage();
!thing.Position.Fogged(thing.Map) being the specific function throwing the error. That function is part of the base game. I reported the bug to the developers but if UnlimitedHugs wants to temporarily resolve the issue, they could remove the Fogged check from this function and I think it would have minimal impact, but its not a perfect solution.
Exception in RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor: System.NullReferenceException: Object reference not set to an instance of an object
at Verse.GridsUtility.Fogged (Verse.IntVec3 c, Verse.Map map) [0x00000] in <38562b1a2ab64eacb931fb5df05ca994>:0
at AllowTool.Designator_HaulUrgently.ThingIsRelevant (Verse.Thing thing) [0x00015] in <d3e3fec3eced4dceb8190139680bcabd>:0
at AllowTool.Designator_HaulUrgently.CanDesignateThing (Verse.Thing t) [0x00001] in <d3e3fec3eced4dceb8190139680bcabd>:0
at Verse.Designator.CreateReverseDesignationGizmo (Verse.Thing t) [0x00017] in <38562b1a2ab64eacb931fb5df05ca994>:0
- postfix UnlimitedHugs.AllowTool: Void AllowTool.Patches.Designator_CreateReverseDesignationGizmo_Patch:CreateReverseDesignationGizmo_Postfix(Designator __instance, Command_Action __result)
at RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor (System.Collections.Generic.IEnumerable`1[T] selectedObjects, Verse.Gizmo& mouseoverGizmo) [0x0015e] in <38562b1a2ab64eacb931fb5df05ca994>:0
- transpiler net.pardeike.rimworld.lib.harmony: IEnumerable`1 VisualExceptions.ExceptionsAndActivatorHandler:Transpiler(IEnumerable`1 instructions, MethodBase original)
- transpiler UnlimitedHugs.AllowTool: IEnumerable`1 AllowTool.Patches.InspectGizmoGrid_DrawInspectGizmoGridFor_Patch:ClearReverseDesignators(IEnumerable`1 instructions)
System.NullReferenceException: Object reference not set to an instance of an object
at Verse.GridsUtility.Fogged (Verse.IntVec3 c, Verse.Map map) [0x00000] in <3cca3e6203e64b109fd8ce21f7120d03>:0
at AllowTool.Designator_HaulUrgently.ThingIsRelevant (Verse.Thing thing) [0x00015] in <d3e3fec3eced4dceb8190139680bcabd>:0
at AllowTool.Designator_HaulUrgently.CanDesignateThing (Verse.Thing t) [0x00001] in <d3e3fec3eced4dceb8190139680bcabd>: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.IEnumerable`1<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.IEnumerable`1<object>,Verse.Gizmo&)
RimWorld.MainTabWindow_Inspect:DrawInspectGizmos ()
RimWorld.InspectPaneUtility:ExtraOnGUI (RimWorld.IInspectPane)
RimWorld.MainTabWindow_Inspect:ExtraOnGUI ()
Verse.WindowStack:WindowStackOnGUI ()
RimWorld.UIRoot_Play:UIRootOnGUI ()
(wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)
I think I can confirm this fixes that issue. I tried that change and recompiled the 1.4 dll,[www.dropbox.com] and I haven't gotten the error again in ~6 hours of play.
Nothing seems to have changed functionality-wise in regards to Haul Urgently so far as I've noticed. I linked it if anyone else wants to try it -- back up your original dll first, I can't guarantee this is a fix.