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 savegame corruption introduced in 5abb593d #199

Merged
merged 3 commits into from Apr 22, 2017

Conversation

Ghabry
Copy link
Member

@Ghabry Ghabry commented Apr 12, 2017

Removed the asserts and changed the error handling a bit because the broken event commands are reallllly bad and result in an assert when opening Scene_load or Scene_Save otherwise :(

Fixes EasyRPG/Player#1149.

Copy link
Member

@carstene1ns carstene1ns left a comment

Choose a reason for hiding this comment

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

The title here is misleading as it currently only allows loading of broken files, it does not fix the writing ;-)

@Ghabry
Copy link
Member Author

Ghabry commented Apr 21, 2017

Yepp I just noticed that I didn't even revert the broken line >.<

@Ghabry
Copy link
Member Author

Ghabry commented Apr 22, 2017

We are actually lucky that the event data is the last in the savefile, so loading such a corrupted save fixes itself in most cases by simply reentering the map 👍 (not possible with Yume Nikki, stuck at "Loading: Please Wait" SE preload).

Tested with VH1, Yume2kki and Yume Nikki: The save/load scene opens without crashing and after loading the broken save and resaving the errors are gone.

@carstene1ns carstene1ns merged commit 4df571c into EasyRPG:master Apr 22, 2017
@carstene1ns carstene1ns added this to the 0.5.2 milestone May 14, 2017
@Ghabry Ghabry deleted the development branch January 11, 2020 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

2 participants