Relative newbie to modding, and... well, I'm doing some work on a mod, and I'd like to change the name (of the directory/zip file, and the "name" field in info.json) of it, but I have some saves that have data from it, and I'd ideally like to somehow keep that data but make it available to the mod under its new name. It seems that the way this is handled ("Each mod has access to its own instance of this table, so there is no need to worry about namespacing", per the docs) doesn't really provide for this, which... mostly makes sense, and... anyway, just wondering if there's a clean way to do this.
I figure there are some options, since I control both old and new versions -- e.g. I could use write_file and either table_to_json or serpent.block to write out a file, then turn that into a lua function that I call in on_init.
This would work for me, and I'm not opposed to doing it, I'm just wondering if there might be some easier way (partly because I've already gone several points beyond this stage when working in new saves, before realizing I wanted to keep data from some old saves, if possible.)
Any tips welcome, including just "yeah, do it with write_file like you said"... but, ya know, hopeful there might be some other hack that I'm not finding that would make it trivially easy to do somehow.


