Page 1 of 1
Lack of disk space crashes the game when saving
Posted: Thu Mar 13, 2008 4:18 pm
by zook08
..after I spent two hours on my turn...
RE: Lack of disk space crashes the game when saving
Posted: Thu Mar 13, 2008 6:00 pm
by Tac2i
ORIGINAL: zook08
..after I spent two hours on my turn...
Lack of adequate disk space will cause you all kinds of problems with lots of software. Just about anything that uses disk space to cache temporary files.
RE: Lack of disk space crashes the game when saving
Posted: Fri Mar 14, 2008 8:33 pm
by Vic
Sorry zook,
The engine does not check diskspace. it just assumes you have at least a few MB available.
kind regards,
Vic
RE: Lack of disk space crashes the game when saving
Posted: Fri Mar 14, 2008 9:06 pm
by zook08
I didn't notice that the odds-and-ends partition where I store my PBEM files was almost full. But I saw that game files are first written to the disk uncompressed (in that case a temp file with > 20MB) and then compressed when it's all there (resulting in a 1.6 MB save file). Perhaps you could add a simple disk space check and a warning ("less than 30 MB free, that could cause trouble") before beginning to write the file? It's only a few lines of code, you don't have to calculate the exact amount needed.
RE: Lack of disk space crashes the game when saving
Posted: Sat Mar 15, 2008 8:26 am
by Vic
i will add checks in the next gold version.