natronium / GatorRando

A(n Archipelago) randomizer for Lil Gator Game
1 stars 0 forks source link

Saves location checked in game into save data #52

Closed roseasromeo closed 2 months ago

roseasromeo commented 2 months ago

Write the locations checked in game into the save data to prevent loss of checks due to disconnection or other server connection hiccups. Any locations checked in the save file will be checked server-side upon a successful "Connect to Server." Note that if you connect a finished AP save to a new world's slot, that could result in a release of checks. (You should not connect an old save to a new slot anyway and the number of items received would likely be higher client-side, resulting in no successful connection.)

Additionally, implement client-side authority on whether !collect-ed locations (due to another game finishing/being forfeited) affects in-game behavior (i.e. advancing quests where steps are checks that have been collected). Defaults to true (you don't have to redo checks that have been completed), but toggleable in the settings menu before connection.

This change is back-compatible with games started on prior versions; however, games started on prior versions should leave "!collect counts as checked" on (checkmark) because the save file will not contain data on locations checked prior to this change.

Resolves #43