The Ur-Quan Masters Home Page Welcome, Guest. Please login or register.
Did you miss your activation email?
April 19, 2024, 08:15:22 am
Home Help Search Login Register
News: Celebrating 30 years of Star Control 2 - The Ur-Quan Masters

+  The Ur-Quan Masters Discussion Forum
|-+  The Ur-Quan Masters Re-Release
| |-+  Technical Issues (Moderator: Death 999)
| | |-+  Corrupted savegame files cause serious problems
« previous next »
Pages: [1] Print
Author Topic: Corrupted savegame files cause serious problems  (Read 1638 times)

Corrupted savegame files cause serious problems
« on: January 16, 2003, 11:26:18 pm »

(note: the report pertains to a recent CVS checkout built on Linux with (IIRC) gcc-2.95)

My sister was playing uqm the other day while visiting me.  After playing for a short time (she said she had just discovered another race and was about to talk to them, but it wasn't clear which one), she tried to save her game and the program crashed while saving.

When she re-loaded the game, everything was screwed up: she had millions of RUs, her ship had apparently random components installed in an asymmetric pattern (many of which weren't even allowable -- bits of the crystal device, ion guns in non-weapon slots, planet landers appearing in module slots, etc)  Even worse, loading this game -- or merely loading the preview -- apparently caused some sort of memory corruption in the program: all her other saved games (which are correct, and appeared correct before loading the bad game) appeared to have similar problems, random artifacts appeared in some parts of the display, etc.

Obviously, crashing during a save is bad; unfortunately, there's probably no way to reproduce that right now.  However, even if a saved game is massively corrupted, this other behavior is pretty ugly.  I don't know exactly how to fix it since I'm not familiar with the code, but for a start I'd suggest checksumming the game and sanity-checking values in the file.

I moved the problem saved game out of the way, and I still have it available (unless she deleted it) if a developer would like to analyze it.  This forum doesn't seem to support attachments -- is there a mailing list I can send it to?

Pages: [1] Print 
« previous next »
Jump to:  

Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!