Visual Entertainment and Technologies Forum

Full Version: [FIXED] Game fails to save if database is locked, but doesn't notify user
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
See for example lines 30904 to 30912:

14:57:48:
Attempting to save database
14:57:48: Pending:

14:57:48:
Exception Occured saving db.
file: C:\Users\gc\programming\Kompex-SQLite-Wrapper\src\KompexSQLiteDatabase.cpp
line number: 423
error: database is locked

In this case the database was locked because another program had a connection to the database open.  Probably not a problem for an average user, just for modders.

More concerning is that the UI didn't provide any notice of the failure to save, including for a manual save.  It should succeed in 99.99% of cases, but since this is a game that can be played for long sessions, I'd rather know if there's an issue saving than find out the hard way that my progress was lost in that 0.01%.
The game will now popup a failure if it fails to save and throws an exception when you're using Save or Save As. (Some reasons for save fail may not throw an exception, like Anti-virus' in Windows.) This does not work with auto-save or save on exit.

Changes will be in the next update.