Is there a function that tells you whether the game previously crashed?

Hey! My shipped game, unfortunately, crashes for some people at startup. Sometimes crashes appear after some successful startups. My suggestion is that it is my save file that is being corrupted. Is there a function that tells you whether your game crashed the last start-up so I can clear out the save files? Getting an access violation on start. I’m not using C++, so it’s either the engine, the save files, or third-party plugins.

As far as I know, nothing.

But you can record an orderly start and exit.

You can use a new save game file. When the game starts, you use an int in the save game to record which play this is ( just a count of how many times they have played the game ). And when the game exits, you record the integer the game was using when it stopped.

It should be the same int for both. If it’s not, you know how many times it crashed.

You need to get the count of play setup very early on though, to catch the early crashes.

1 Like