边缘世界 RimWorld

边缘世界 RimWorld

Allow Tool
BruhRaptor123 2022 年 11 月 2 日 上午 7:17
System.NullReferenceException: Object reference not set to an instance of an object
System.NullReferenceException: Object reference not set to an instance of an object
at Verse.GridsUtility.Fogged (Verse.IntVec3 c, Verse.Map map) [0x00000] in <c81fc4e5348f4e9480b5f4bc7b581f3d>: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_Patch3(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 ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (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 ()
(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)
< >
正在显示第 1 - 15 条,共 15 条留言
Choosechee 2022 年 12 月 3 日 下午 1:52 
I keep getting these errors too! Someone please help!
Dyantier 2022 年 12 月 13 日 上午 6:47 
Also getting this error. I'm gonna try disabling Haul Urgently or PUAH, because I heard those may cause issues with this mod.
anheye 2022 年 12 月 18 日 下午 10:58 
same
Lightja 2023 年 1 月 7 日 下午 1:41 
This error is thrown when determining if AllowTool will draw the "Haul Urgently" icon when a thing is selected.

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.
Xtrem532 2023 年 3 月 21 日 上午 7:20 
I get those when something designanted to be hauled urgently gets picked up by a pawn while I have the item still selected

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)
Dragonmaster Cale 2023 年 4 月 3 日 下午 4:57 
Getting this error as well:
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)
bonesbro 2023 年 4 月 13 日 下午 5:09 
You get a 100% repro with this when you click on a pawn being carried by another pawn, for example a baby being carried by a mother.
bonesbro 2023 年 4 月 13 日 下午 5:13 
Based on decompilation, I think you can fix the crash by nullchecking thing.Map and returning false on it.
Angrysquirrel 2023 年 5 月 2 日 上午 10:12 
Checked my player.log and found this was a cause of my red errors. It sucks because I now have to choose between allow tool (with haul urgently) and pickup and haul. The biggest things after s raid for me. Allow everything and haul urgently.
最后由 Angrysquirrel 编辑于; 2023 年 5 月 2 日 下午 2:00
Tsunderecracker 2023 年 5 月 14 日 上午 10:32 
引用自 bonesbro
Based on decompilation, I think you can fix the crash by nullchecking thing.Map and returning false on it.

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.
最后由 Tsunderecracker 编辑于; 2023 年 5 月 14 日 上午 10:39
Poindexter1985 2023 年 6 月 1 日 上午 7:05 
The DLL shared by tsunderecracker also seems to have stopped the errors for me.
Cream of Botulism Soup 2023 年 6 月 9 日 下午 6:28 
Getting the same error. Just going to disable the Haul urgently option, I rarely use it anyway, hopefully it clears up the issue, though it appears to be more of a nuisance error rather than anything major
Stormtail 2023 年 10 月 15 日 下午 5:47 
Seems just disabling the Haul Urgent option (Since you can) doesn't fix this, thought it might but just letting everyone else know beforehand. Going to try that dll now :)
gh0stashes 2023 年 11 月 6 日 下午 11:03 
I just started having this error. The DLL did not work and it is preventing me from drafting pawns when I select them. Game is unplayable with this mod now but so painful without it. :(
-=JkJkLoL=- tk421storm 2024 年 4 月 27 日 上午 11:14 
note that this error happens on all Things that are being carried if the player has the Thing selected as it is being picked up, even if they weren't designated for Haul Urgently
< >
正在显示第 1 - 15 条,共 15 条留言
每页显示数: 1530 50