New games every week!
Save Issue Blog
16th February 2018
Over the past few weeks, I've noticed my highscores seemingly vanish for no reason.
I initially put this down to the fact that I was compiling over and over, and occasionally deleting the build folder, thus losing the save file.

Yesterday, I finally wrote a stress test for the save files, and was shocked to find that, indeed, it's losing highscores.

-=-=-

I spent a few hours trying to track down the issue. I'm fairly confident now that I've managed to find it. It's to do with the checksums, Big/Little Endian quirks, and unsigned integers.
Really not something I was expecting to have to deal with.

Today I have to double check everything, and will be leaving a stress-tester running on my system for most of the day, saving and loading over and over and over, to ensure it isn't still doing it.

I should probably also get the tester running on Linux and Mac, too, just to be sure!
Which reminds me. Mac still isn't saving, is it?
Hmm.. I need to fix that, too, then!

Plenty to do!
A busy day ahead.
Views 83, Upvotes 21  
Daily Blog , 2018 Framework
New games every week!
Site credits : Jayenkai, one crazy fool who has far too much time on his hands.
(c) Jayenkai 2023 and onwards, RSS feed 78

Blog - Save Issue - AGameAWeek