Save deletion leaving mod data behind
Posted: Fri Jan 28, 2022 11:43 am
I ran into a problem while testing a mod which I assume is caused by this:
When you delete or write over a save in the DFU save/load menus, this only deletes/overwrites the standard DFU save data. The folder is left with whatever random mod savedata has been saved there. If you have a habit of cleaning up your saves to avoid too much bloat, this starts building up over time. So the folder SAVE10, for example, might have a bunch of mod data txt files from earlier characters and earlier DFU builds. This easily causes problems for mods in the future unless they make sure to code in handlers for this unexpected problem. But also, it causes all the SAVE** folders to remain with junk data even if you clean up the saves in DFU. You have to manually go in and delete the folders to be sure the save data is actually cleaned up.
I can not see any benefit to leaving the folder and a random assortment of mod data behind when the slot is implied by DFU to be ready for a fresh save? Would it not be a better option to just wipe the folder, or at least the folder contents, before writing new save data to it?
When you delete or write over a save in the DFU save/load menus, this only deletes/overwrites the standard DFU save data. The folder is left with whatever random mod savedata has been saved there. If you have a habit of cleaning up your saves to avoid too much bloat, this starts building up over time. So the folder SAVE10, for example, might have a bunch of mod data txt files from earlier characters and earlier DFU builds. This easily causes problems for mods in the future unless they make sure to code in handlers for this unexpected problem. But also, it causes all the SAVE** folders to remain with junk data even if you clean up the saves in DFU. You have to manually go in and delete the folders to be sure the save data is actually cleaned up.
I can not see any benefit to leaving the folder and a random assortment of mod data behind when the slot is implied by DFU to be ready for a fresh save? Would it not be a better option to just wipe the folder, or at least the folder contents, before writing new save data to it?