I was running through the final tests for my game and suddenly found this bug. It happens whenever I try to load a game.
There's a point in the game when the character changes clothes. Up until that point, games load fine. Whenever I try to load a game that was saved after the change of clothes, however, I get this message and it crashes. Any ideas?
If you load the last save game that works, then play the game past that point and save again, does it work?
It's likely that you've changed something in the editor since the save game was saved. I'd recommend deleting all your save games, and playing through again from the beginning to make sure that the game state is all properly saved. If you do that, all the save games should work.
Sort of. I've been playing it over and over, saving the game in different places and sometimes it works and sometimes it doesn't. Maybe it's a memory thing.
Just to be clear - if you haven't re-compiled your game in the editor, then if you save a game it should always load again successfully.
What causes problems is if you modify the game in the editor, then try to load a save game saved under an older version.
If your game is unmodified and it won't load, then there may be a bug that needs investigation.
Yes, it is unmodified; I know it is because I was being thrown out of the game and going straight back in without changing anything. Like I said, sometimes it works and sometimes not. I can definitely say now that it's not the clothes thing though; I saved a couple more games and they loaded fine. I wonder if it's because it's trying to save the game and there isn't enough free disk space...?
Is disk space likely to be a problem? How much do you have free? Save game files shouldn't need more than about 1 MB each.
Ah. Problem right there then. I checked my save games and they're roughly between 500 and 700kb. And for me, yes, disk space is a real problem. 1MB might as well be 100GB for all the hope I have of obtaining it. It did seem to run better when I had more memory free; it's just when I saw it complain about the GUI I thought there was a problem in my scripting somewhere.
The most I have is about 10MB at any time. That's not counting when I'm running any other programs. Nine times out of ten I have to delete files here and there to free up enough space to even test the game. Maybe it's struggling. That only really occurred to me a while ago and I wasn't sure if it could have anything to do with the problem :-[
If you save the game, but there isn't enough disk space, it will fail to write the whole save game file but it won't tell you - so yes, that could well be the problem. I'll see if I can improve it to check for disk space before saving.