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

Do not crash when loading save files with unknown content #41

Open
wants to merge 1 commit into
base: beta
Choose a base branch
from

Conversation

dmchurch
Copy link

This update fixes the crash that happens when you try to load a save exported from a version of Idle Loops with unknown stats, skills, buffs, or options (like the prestige fork or the dmchurch fork). It keeps the unknown entries in the save file to allow two-way migration between forks without losing any (or at least, without losing much) data.

For context: my fork currently does a lot of extra work to try and keep its save files compatible with this fork and/or WaylonJ's prestige fork and is only marginally successful (I can only export to one or the other at a time, and I have to strip a lot of things out of the file to export to your fork), and I'd much rather not have to do that. Also, merging this PR means people will be able to migrate freely between the lloyd-delacroix and WaylonJ forks, which is currently a one-way conversion.

This update fixes the crash that happens when you try to load a save exported from a
version of Idle Loops with unknown stats, skills, buffs, or options (like the prestige
fork or the dmchurch fork). It keeps the unknown entries in the save file to allow
two-way migration between forks without losing any (or at least, without losing much) data.
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.

1 participant