Scorchio2's defaults have a lot of sounds and spam turned on, which I imagine most users immediately turn off, if it doesn't scare them away from the mod entirely. I need to change the defaults table to shut most of this off.
I'd like to change the defaults without breaking existing users' settings. I already have a framework for versioning the saved variables, and code size isn't an issue because it's in the LoD Options module. (So I don't mind if converting settings correctly means keeping a full copy of the old defaults table around.)
I imagine the conversion will go like this:
1. For every entry in the old defaults table:
1a. If the SVs are nil on the setting, make them explicit
2. For every entry in the SVs,
2a. If the SVs match the -new- defaults, nil the setting.
Are there any working examples of another mod doing this? Or just any advice?
The easiest way to change the defaults without breaking existing settings, is to create a new ##SavedVariables (you don't have to keep the old one), and migrate the old settings (the old SV still get loaded ONE time from the SV unless you keep the SV in the TOC) over.