Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve save loading #168

Merged
merged 6 commits into from
Nov 3, 2024
Merged

Improve save loading #168

merged 6 commits into from
Nov 3, 2024

Conversation

BarthPaleologue
Copy link
Owner

Remove failure points by providing safe defaults for missing properties in the player part of the save file.
This means that a save file coming from an earlier version can be extended with the new save properties.

A notification will also be displayed if the save file is not a correct JSON file, which will of course also fail to load (without crashing the game!)

Save files coming from earlier versions will also display a notification with a warning that behavior might not be optimal.

@BarthPaleologue BarthPaleologue added the enhancement New feature or request label Nov 3, 2024
@BarthPaleologue BarthPaleologue merged commit 44cd6bf into main Nov 3, 2024
6 checks passed
@BarthPaleologue BarthPaleologue deleted the ImproveSaveLoading branch November 4, 2024 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant