JSearUK / Playthroughs

The aim is to create the system in such a way that it can be safely dropped into any other project
The Unlicense
0 stars 0 forks source link

No playthrough appears selected after persistent wipe/playthrough regeneration #14

Closed JSearUK closed 2 years ago

JSearUK commented 3 years ago

However, one clearly is because there are save slots visible. Will update once save names are visible

JSearUK commented 3 years ago

The visible saves are quick saves. The quick save button either is not or does not appear selected. I wonder what might have shown up if I had not happened to have a quick save present?

JSearUK commented 3 years ago

If there is no file in either save location and a persistent wipe is triggered, starting the game and entering the Playthrough save page shows no playthroughs, no files, and no + New Save + button.

However, triggering any screen update promptly added files from the auto saves that had spawned since the disk purge, highlighted the current (and therefore selected) sorting button, and added a + New Save + button at the bottom.

Additionally, reintroducing Oscar-style saves from the earlier Test Playthrough Renaming playthrough correctly selected this playthrough after picking it up via file-based playthrough generation

JSearUK commented 3 years ago

Code needs to be put in place to always select the most recent playthrough, EXCEPT when moving between save systems (or indeed any tag menu screen). My original code did this whenever viewingptname was an empty string, which happened whenever the playthrough was deleted, or the game_menu was exited, or after a load (the last two were handled by replacing the functionality of the relevant transitions)

This should also fix Issue #18