spelunky-fyi / overlunky

An overlay for Spelunky 2 to help you with modding, exploring the depths of the game and practicing with tools like spawning arbitrary items, warping to levels and teleporting.
MIT License
86 stars 32 forks source link

Add a directory that mods can safely read/write any number of files to. #336

Closed jaythebusinessgoose closed 1 year ago

jaythebusinessgoose commented 1 year ago

For some mods, it's nice/necessary to read and write more/larger files. This can be done in unsafe mode, but it would be great to do in normal safe play.

I think a generated folder Mods/Data/ for a mod in Mods/Packs/ would be a good safe spot for a mod's files and internal directories.

Dregu commented 1 year ago

Sounds reasonable and it's probably pretty straightforward to sandbox io.open to one folder. I suppose it would also be useful to copy files that shipped with the mod to this persistent data folder.