mrimer
Level: Legendary Smitemaster
Rank Points: 5056
Registered: 02-04-2003
IP: Logged
|
Re: #1 Most Wanted - Losing the Text (0)
That's indeed very observant, Clayton. (some developer talk here) I'm wondering whether the DB text info is getting corrupted, and then when it tries to save the text info to disk on closing DROD, the DB crashes during the write and the app closes anyway. So it appears like a normal exit, but when you open DROD the next time, then you see that the text info wasn't completely saved to disk and the text file's been corrupted. In short, it "looks" like DROD quits normally, but some bug has occurred and it doesn't rear its ugly head until the info is saved out to disk on exit.
But I'm not sure...what DB commits would occur on exit that hadn't happened before? Hmm...another question for Clayton! What screen did you exit from: did you click on the "X" to close from the game, or from the editor, or did you go back to the Title screen and click on Quit or hit esc, or...? Anyone else who's lost text could also mention what in way they usually exit the app...and if they recall what they were doing on exit the time before they noticed the text was gone.
(Since I'm rambling: another possibility, since this is an SDL exception, is that something weird is happening with deiniting the graphics from a certain screen on exit, catching the Metakit save in the middle and interrupting it... Saving the DB stuff before deiniting the graphics might avoid this...although of course this wouldn't fix it or be the ideal solution. BTW, which libs use threads? SDL doesn't, does it? Does Metakit? Or just the sound?)
[Edited by mrimer on 09-20-2003 at 05:04 AM]
____________________________
Gandalf? Yes... That's what they used to call me.
Gandalf the Grey. That was my name.
I am Gandalf the White.
And I come back to you now at the turn of the tide.
|