Take the 2-minute tour ×
Arqade is a question and answer site for passionate videogamers on all platforms. It's 100% free, no registration required.

While i was playing minecraft (using linux) the power went out and turned the computer off, when i turned it back on i brought minecraft (Feed the beast mod packs) back up and i noticed it all the "news" was restarted, i launched minecraft and my save was gone so i checked the files and i found that instead of the level .dat being a package it was a document.

Does anyone know how to fix the level dat?

share|improve this question
1  
What do you mean when you say "package" and "document"? Those words don't have any clear technical meaning, not enough to understand what's wrong with the file. –  SevenSidedDie Aug 28 '13 at 3:42
    
The "type" of the normal one says "Gzip archive –  My ferret is a sneezicus Aug 28 '13 at 3:48
    
The broken one is just "plain text document" –  My ferret is a sneezicus Aug 28 '13 at 3:48
    
That's odd, but not much to go on. The normal file isn't actually a "Gzip archive" in the first place. Ok, so that's not a lead, and we'll have to look elsewhere. Hm. –  SevenSidedDie Aug 28 '13 at 3:50
    
Ive tried putting everything in another save, and it made that save disappear –  My ferret is a sneezicus Aug 28 '13 at 4:02
show 4 more comments

2 Answers

"fixing" a corrupt file for the purpose of minecraft is near impossible.

If you wish to try and salvage your save and read what is left:

  1. change the extension of the document back to .dat
  2. follow SevenSidedDie's advice and use NBT Explorer to parse the file

if NBT cannot read anything legible, the file may be beyond repair.

if NBT can read it, you can copy information from it to a new save (such as inventory items / settings)

I know this isn't excactly what you want to hear but I hope it helps, Good luck :)

share|improve this answer
add comment

In the folder for that save there should be a level.dat_old file which is essentially a backup of level.dat. Try removing the _old so that it becomes level.dat and takes over.

If it's just level.dat that was affected then this should fix it.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.