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

SOLVED: Error between Hugs Lib & AllowTool #50

Closed Genaeve closed 1 year ago

Genaeve commented 1 year ago

Hi! Not sure if I need to post this here or over at HugsLib (Obviously, I'm going over there as well). But, in the case that this is the correct area to post errors, here is what I'm getting every time. (For the record, if I ignore the error and go straight into the game, AllowTool offers no tools at all.)

WITH OTHER MODS: [HugsLib][ERR]` AllowTool caused an exception during OnGUI: System.NullReferenceException: Object reference not set to an instance of an object at AllowTool.HotKeyHandler.CheckForHotkeyPresses () [0x00021] in :0 at AllowTool.HotKeyHandler.OnGUI () [0x00013] in :0 at AllowTool.AllowToolController.OnGUI () [0x00001] in :0 at HugsLib.HugsLibController.OnGUI () [0x00043] in <4a46802aeab646ab99159f7eecb6b57e>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) HugsLib.Utils.ModLogger:ReportException (System.Exception,string,bool,string) HugsLib.HugsLibController:OnGUI () HugsLib.Patches.UIRoot_OnGUI_Patch:OnGUIHook () (wrapper dynamic-method) Verse.UIRoot:Verse.UIRoot.UIRootOnGUI_Patch2 (Verse.UIRoot) (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)

WITHOUT OTHER MODS: System.TypeInitializationException: The type initializer for 'AllowTool.AllowThingToggleHandler' threw an exception. ---> System.NullReferenceException: Object reference not set to an instance of an object at AllowTool.Designator_DefBased.UseDesignatorDef (AllowTool.ThingDesignatorDef def) [0x00009] in :0 at AllowTool.Designator_Allow..ctor () [0x00013] in :0 at AllowTool.AllowThingToggleHandler..cctor () [0x00000] in :0 --- End of inner exception stack trace --- at AllowTool.Patches.CompForbiddable_Gizmos_Patch.InjectDesignatorFunctionality (System.Collections.Generic.IEnumerable1[Verse.Gizmo]& __result) [0x00013] in <d3e3fec3eced4dceb8190139680bcabd>:0 at (wrapper dynamic-method) RimWorld.CompForbiddable.RimWorld.CompForbiddable.CompGetGizmosExtra_Patch1(RimWorld.CompForbiddable) at Verse.ThingWithComps+<GetGizmos>d__33.MoveNext () [0x000b2] in <f4c3e52a3fec4807a874d50b5e1c361f>:0 at System.Collections.Generic.List1[T].InsertRange (System.Int32 index, System.Collections.Generic.IEnumerable1[T] collection) [0x000db] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Collections.Generic.List1[T].AddRange (System.Collections.Generic.IEnumerable1[T] collection) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 at (wrapper dynamic-method) RimWorld.InspectGizmoGrid.RimWorld.InspectGizmoGrid.DrawInspectGizmoGridFor_Patch0(System.Collections.Generic.IEnumerable1,Verse.Gizmo&) currentSelectable: Silver14635 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,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)

Genaeve commented 1 year ago

Nevermind! It was a USER ERROR!! Please forgive this User. I downloaded it straight from here and it works beautifully.