[0.10.x][slpwnd] Save file lost if lua error in onsave.
Posted: Wed Aug 13, 2014 9:09 pm
If you try to save over an old savefile, saving can fails due to lua error. You will loose the file you are overwriting and possibly the currently active game, if it crashes.
Possiple steps:
1.Make new game
2.Save it
3.Type this code to console4.Try to save again
I was able to crash it too, when I tried calling error without any parameters. It left me 2kB zip and when I tried unzip it, XP asked to insert last floppy in drive
Possiple steps:
1.Make new game
2.Save it
3.Type this code to console
Code: Select all
game.onsave(function() error("bye-bye") end)
I was able to crash it too, when I tried calling error without any parameters. It left me 2kB zip and when I tried unzip it, XP asked to insert last floppy in drive