Make reader_struct more fault tolerant and SaveActor::Fixup #175

merged 2 commits into from Mar 16, 2016


None yet

2 participants

Ghabry commented Mar 15, 2016

This fixes problems with the savegame sent by K風鈴 (negima.0824@)

It doesn't load in RPG_RT but looks like a RPG_RT savegame. No idea what happened, the pending field has a strange size. Also the Actor IDs are wrong.

reader_struct realigns now the read pointer when the size is incorrect and shows an error message on the console when this happens.

Ghabry added some commits Mar 15, 2016
@Ghabry Ghabry Overwrite the ID of the actor with our ID because a bug reported had …
…a save game with invalid IDs values, no idea how this happened.
@Ghabry Ghabry Make reader_struct more error tolerant by realigning the read pointer…
… instead of generating an assert when a Primitive type has the wrong size. A reported save game has a strange size of 4 for "pending". (See #174)
@Ghabry Ghabry changed the title from Change pending data type and SaveActor::Fixup to Make reader_struct more fault tolerant and SaveActor::Fixup Mar 15, 2016
@fdelapena fdelapena merged commit 7d9e325 into EasyRPG:master Mar 16, 2016

4 checks passed

Linux Build finished.
OSX Build finished.
Windows Build finished.
web Build finished.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment