Page 1 of 1

[0.5.1] Crash after corrupting a savefile

Posted: Wed Jun 19, 2013 5:26 am
by drs9999
Steps to reproduce:

1) Create a mod an write something stupid in the onsave-event. E.g. I used this for testing-purpose:

Code: Select all

a = "test"
	b=1
	c=b/a
2) start factorio, start/load a game and try to save it

3) game will crash "softly" - Errormessage will appear which specify the error

4) exit factorio/ return to main-menu and try to load a save-game

--> I will receive a "Content title"-error after I hit the load-game button, because factorio can not find the savefile in which you tried to save before. So the load-UI is not shown at all and factorio is closed.

I have to delete the related savefile and everything is fine again.

Re: [0.5.1] Crash after corrupting a savefile

Posted: Wed Jun 19, 2013 7:58 pm
by kovarex
The problem has been resolved (0.5.2), by deleting the save when it fails.
It is not perfect, as you can delete previously working save this way, but it is probably better than saving to different location and then copying, and spending even more time by the saving ....