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

Fix: use Escoria plugin version from plugin.cfg in savegames #489

Merged
merged 1 commit into from
Feb 15, 2022

Conversation

StraToN
Copy link
Collaborator

@StraToN StraToN commented Feb 11, 2022

Save manager used escoria.ESCORIA_VERSION constant value, which is now incorrect. We now use plugin.cfg's version instead.

@balloonpopper
Copy link
Collaborator

I can confirm this fixes the bug with the infinite loop, however I did find a edge case that isn't handled. I manually deleted save games 1-3 but still had save game 4 in the folder.
This results in an error on line 38 of load_game.gd
Invalid get index '1' (on base: 'Dictionary').

@StraToN
Copy link
Collaborator Author

StraToN commented Feb 11, 2022

Good point. I'll add a check to manage this case.

@StraToN StraToN marked this pull request as draft February 11, 2022 13:02
Copy link
Collaborator

@dploeger dploeger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a very small remark.

.gitignore Outdated Show resolved Hide resolved
Copy link
Collaborator

@BHSDuncan BHSDuncan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm good with things and agree w Dennis.

@StraToN StraToN force-pushed the fix-savegames-esc-version branch from 40ac083 to 7de0da6 Compare February 13, 2022 21:10
+ Fix issue happening when save folder misses some savegames for slots
@StraToN StraToN force-pushed the fix-savegames-esc-version branch from 7de0da6 to feab576 Compare February 13, 2022 21:12
@StraToN StraToN marked this pull request as ready for review February 13, 2022 21:13
Copy link
Collaborator

@dploeger dploeger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great. Thanks. 🎁

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants