RimWorld

RimWorld

LWM's Deep Storage
[1.3] Bug while saving settings - FIXED
While saving storage settings, this error appears:
Exception while saving LWM.DeepStorage.Settings: System.NullReferenceException: Object reference not set to an instance of an object
at LWM.DeepStorage.Dialog_DS_Settings.ExposeDSUSettings (System.Collections.Generic.IEnumerable`1[T] units) [0x000dd] in <c4aa24530bb64a6b97e2ebfd4f39f9c1>:0
at LWM.DeepStorage.Settings.ExposeData () [0x000fe] in <c4aa24530bb64a6b97e2ebfd4f39f9c1>:0
at Verse.Scribe_Deep.Look[T] (T& target, System.Boolean saveDestroyedThings, System.String label, System.Object[] ctorArgs) [0x00167] in <cdbd0ed5089a418da09b9a259f9dbd8f>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch3 (string)
Verse.Scribe_Deep:Look<Verse.ModSettings> (Verse.ModSettings&,bool,string,object[])
Verse.Scribe_Deep:Look<Verse.ModSettings> (Verse.ModSettings&,string,object[])
Verse.LoadedModManager:WriteModSettings (string,string,Verse.ModSettings)
Verse.ModSettings:Write ()
Verse.Mod:WriteSettings ()
RimWorld.Dialog_ModSettings:PreClose ()
(wrapper dynamic-method) Verse.WindowStack:Verse.WindowStack.TryRemove_Patch1 (Verse.WindowStack,Verse.Window,bool)
(wrapper dynamic-method) Verse.Window:Verse.Window.Close_Patch2 (Verse.Window,bool)
Verse.Window:InnerWindowOnGUI (int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)

And when you restart the game, it discards all saved settings.

Courtesy of @Zombee Bacon here's the fix for us at least.
Move LWM Deep Storage above VE Mechanoids.
Last edited by Winnie Xi Jin Ping; Dec 12, 2021 @ 10:53am
< >
Showing 1-7 of 7 comments
Lamar Dec 12, 2021 @ 12:50am 
Exact same issue here
Zombee Bacon Dec 12, 2021 @ 8:53am 
I had a similar issue with the latest update to Vanilla Mechanoids Expanded. It's not exactly the same as yours (different error messages), but I was also losing all saved settings. Re-arranging the mod-order so that LWM Deep Storage was above the Vanilla Mechanoids Expanded in the load-order resolved the issue.

Perhaps you can figure out which mod is causing your issue, and load LWM before it?
Winnie Xi Jin Ping Dec 12, 2021 @ 10:54am 
Heyo it worked! Updated the desc and title!
ꙮktober Dec 13, 2021 @ 5:28pm 
Unfortunately having this issue too and this fix didn't work :/
I'm guessing something has altered the saving system, because even a map generation mod throws up saving errors. I sadly don't want to take apart my mod list looking for it. Do you want to try and do that to see if that'll help?
ꙮktober Dec 14, 2021 @ 5:27pm 
I've ran it with just base game, the DLCs, Deep Storage, the GUI, and Deep Storage Plus and have the same result. I've also ran it with Vanilla Expanded props and functional VE props, which is based on Deep Storage, and those props often don't even have a working "accept" button when changing settings.

So I'm not sure what's up, but both functional vanilla expanded props and the saving system for Deep Storage broke at the same time and still don't function even when keeping it barebones.

Oh well, can't expect 100% perfection from mods. Just happy that this exists.
you can do what I did before I found the fix. I wrote a custom patch that just patches it with the settings I wanted and deleted the defs of things I didn't want
< >
Showing 1-7 of 7 comments
Per page: 1530 50