Post new topic    
"RPG file appears to be corrupt (bad header)" 
 PostSat Mar 21, 2020 1:49 am
Send private message Reply with quote
Recently I unintentionally closed the window of ohrrpgce while it was in the middle of "lumping data" to save the changes I had made to the game. And now when trying to open the game it gives the error message:

"Fatal Error. General data is missing: RPG file appears to be corrupt (bad header)"

I do have backups, but the newest backup is from around a week ago, and it would take hours to redo the work.

Is there any way I can save my corrupted RPG file so that I don't have to redo work on my backup?
dQw4w9WgXcQ
Slime Knight
Send private message
 
 PostSat Mar 21, 2020 7:55 am
Send private message Reply with quote
Terrible! Still, the newer OHR versions do automatic backups every time you close Custom in a folder called "autobackups". Maybe a more current version is there?
Metal King Slime
Send private message
 
 PostSat Mar 21, 2020 12:20 pm
Send private message Reply with quote
Yes, every time you save the game (not just when quitting but also "Save and continue"), the .rpg is also copied to autobackups.

It's probably also possible to recover data out of that corrupt .rpg since it doesn't sound like it's completely empty. I could take a look if you want, but basically you unlump the .rpg, unlump an older copy of the same game, and copy all the files over from the new to the old except for the last one, which is probably cut short and corrupt.

But what I don't understand is how you managed to accidentally force quit the program. I would think the OS would ask first, and wouldn't even give the option unless the program is frozen for several seconds. What OS is that?
 
 PostSat Mar 21, 2020 4:13 pm
Send private message Reply with quote
I wasn't aware of the auto backups folder, It had the latest version of my game, and my progress is saved! thank you.

My computer had started freezing up in the middle of saving due to being a potato and having too many apps open at once, trying to close more apps to get my computer going at normal speed again, I had impatiently clicked on the x button repeatedly until it force quit, not realizing it would corrupt my file.
dQw4w9WgXcQ
Metal King Slime
Send private message
 
 PostSun Mar 22, 2020 12:22 am
Send private message Reply with quote
Ah OK, it's not strange that programs freeze while they compete for harddisk access.

You aren't the first person asking for help with a corrupt file who didn't know about autobackups. The only hint in the engine is the brief message when you save, "Saved, and copied to autobackups" (which I added in Fufluns for this exact reason). Maybe I need to make the message display longer. And ideally the corrupt .rpg error message should mention it too.

Also, I thought maybe it would be nice to have a list of tips randomly displayed on Custom's splash screen. We have a lot of somewhat obscure features.
Display posts from previous: