ToransuShoujo / quesoqueue_plus

A queue system for Mario Maker 2
GNU General Public License v3.0
5 stars 3 forks source link

Add new save file handling #22

Closed liquidnya closed 2 years ago

liquidnya commented 2 years ago

This will fix issue #12. This is a draft for introducing a new save file and better handling of saving such file.

The current changes as of now include using the library write-file-atomic to write one single save file for queue state and wait time. The old files are loaded and converted to the new file on startup if needed. The new file is also in the newly introduced directory data. The library node-graceful-fs is also used for automatically retrying renaming of files, since that can fail sporadically under windows when the directory is locked, e.g. by virus scanner. Documentation for the old and new file formats is available as comments in persistence.js.

The following things need to be done still before this can be merged:

Feedback to these changes are highly appreciated and there are open questions:

liquidnya commented 2 years ago

Adding a level will now add an initial wait time of 1.

liquidnya commented 2 years ago

This will fix #10 (additionally to #12).