RimWorld

RimWorld

Ore Overlay
Fridgemagnet Sep 13, 2023 @ 1:09am
[bug] Can't close mod settings menu
I'm not sure if this is Linux-specific (or caused by this mod) or not, but I'm unable to close the mod settings (both the button and the 'x' do nothing. This means I have to shut and restart the game if I open the settings for this mod.

I'm pretty sure this error below is the relevant part of my logs (I can upload them if that's easier for you, or if this is missing anything):

Root level exception in OnGUI(): System.NullReferenceException: Object reference not set to an instance of an object
at OreOverlay.OreOverlayModOptionHandler.WriteSettings () [0x00015] in <d0d14c446ce04e17bbd437dbb6a8478a>:0
at RimWorld.Dialog_ModSettings.PreClose () [0x00006] in <badc476ef0d446b498e5b20480e435f8>:0
at Verse.WindowStack.TryRemove (Verse.Window window, System.Boolean doCloseSound) [0x00051] in <badc476ef0d446b498e5b20480e435f8>:0
at Verse.Window.Close (System.Boolean doCloseSound) [0x00005] in <badc476ef0d446b498e5b20480e435f8>:0
at Verse.Window.OnCancelKeyPressed () [0x00008] in <badc476ef0d446b498e5b20480e435f8>:0
at Verse.WindowStack.Notify_PressedCancel () [0x00056] in <badc476ef0d446b498e5b20480e435f8>:0
at Verse.WindowStack.HandleEventsHighPriority () [0x00049] in <badc476ef0d446b498e5b20480e435f8>:0
at (wrapper dynamic-method) Verse.UIRoot.Verse.UIRoot.UIRootOnGUI_Patch1(Verse.UIRoot)
at Verse.UIRoot_Entry.UIRootOnGUI () [0x00000] in <badc476ef0d446b498e5b20480e435f8>:0
at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root)
(Filename: ./Runtime/Export/Debug/Debug.bindings.h Line: 39)

NullReferenceException: Object reference not set to an instance of an object
at OreOverlay.OreOverlayModOptionHandler.WriteSettings () [0x00015] in <d0d14c446ce04e17bbd437dbb6a8478a>:0
at RimWorld.Dialog_ModSettings.PreClose () [0x00006] in <badc476ef0d446b498e5b20480e435f8>:0
at Verse.WindowStack.TryRemove (Verse.Window window, System.Boolean doCloseSound) [0x00051] in <badc476ef0d446b498e5b20480e435f8>:0
at Verse.Window.Close (System.Boolean doCloseSound) [0x00005] in <badc476ef0d446b498e5b20480e435f8>:0
at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x000e9] in <badc476ef0d446b498e5b20480e435f8>:0
at UnityEngine.GUI.CallWindowDelegate (UnityEngine.GUI+WindowFunction func, System.Int32 id, System.Int32 instanceID, UnityEngine.GUISkin _skin, System.Int32 forceRect, System.Single width, System.Single height, UnityEngine.GUIStyle style) [0x00078] in <f4178c429bf24ee4bfa1f613c2b17ea9>:0

(Filename: <d0d14c446ce04e17bbd437dbb6a8478a> Line: 0)
< >
Showing 1-5 of 5 comments
[ ] Nov 20, 2023 @ 11:38am 
Nope. Not just linux. Just came around to say I had this problem. Windows install. I was just derping around with all my mod settings before loading up. So it's not really game breaking in a sense. But I had to exit rimworld.

I don't know if this matters. But I also have "Perspective: Ores" mod enabled too
Last edited by [ ]; Nov 20, 2023 @ 11:40am
AerosAtar Mar 22, 2024 @ 9:36pm 
I am seeing this in the 1.5Unstable version.
Space Moth  [developer] Mar 23, 2024 @ 1:05am 
I'll see if I can work out what is going on over the weekend. Tested on 1.5 without any other mods and it was working, but something is going wrong!
Space Moth  [developer] Mar 24, 2024 @ 9:36am 
Sorry that took so long, its finally fixed!
R4nD0mI3z Apr 13, 2024 @ 2:56pm 
I have encountered the problem on fresh install of RW and mods, but stack trace is now different:
Root level exception in OnGUI(): System.ArgumentNullException: Value cannot be null. Parameter name: key [Ref D127ABC5] at System.Collections.Generic.Dictionary`2[TKey,TValue].FindEntry (TKey key) [0x00008] in <eae584ce26bc40229c1b1aa476bfa589>:0 at System.Collections.Generic.Dictionary`2[TKey,TValue].TryGetValue (TKey key, TValue& value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.OreOverlay.OreOverlayModOptionHandler.WriteSettings_Patch0(OreOverlay.OreOverlayModOptionHandler) at RimWorld.Dialog_ModSettings.PreClose () [0x00006] in <9b17790b066e46d08be4026d65926375>:0 at Verse.WindowStack.TryRemove (Verse.Window window, System.Boolean doCloseSound) [0x00051] in <9b17790b066e46d08be4026d65926375>:0 at Verse.WindowStack.CloseWindowsBecauseClicked (Verse.Window clickedWindow) [0x0005f] in <9b17790b066e46d08be4026d65926375>:0 at Verse.WindowStack.HandleEventsHighPriority () [0x00023] in <9b17790b066e46d08be4026d65926375>:0 at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Verse.UIRoot.UIRootOnGUI_Patch1(Verse.UIRoot) at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Verse.UIRoot_Entry.UIRootOnGUI_Patch1(Verse.UIRoot_Entry) at (wrapper dynamic-method) MonoMod.Utils.DynamicMethodDefinition.Verse.Root.OnGUI_Patch2(Verse.Root) (Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)
< >
Showing 1-5 of 5 comments
Per page: 1530 50