Corrupt vmf files

Corrupt vmf files

Re: Corrupt vmf files Posted by ben_j_davis on Tue Nov 1st 2005 at 9:43am
ben_j_davis
69 posts
Posted 2005-11-01 9:43am
69 posts 27 snarkmarks Registered: Mar 22nd 2004
Long story short, I recovered my vmf file using an un-delete program
(See General Banter for full story). The problem is that the file is
corrupted and gives an 'Out of memory' error when opening it in Hammer.
Is there anyway I can save this file? I do not have a back-up.

I read some where that you can Edit the vmf file in notepad and bypass
all the corrupted info, but i don't have the first clue. Can anyone
help?
Glu Mobile

QA Tech
Re: Corrupt vmf files Posted by Captain P on Tue Nov 1st 2005 at 11:12am
Captain P
1370 posts
Posted 2005-11-01 11:12am
1370 posts 1995 snarkmarks Registered: Nov 6th 2003 Occupation: Game-programmer Location: Netherlands
Well, this could get hard to do... you're sure you don't have the .vmx
file of that map anymore either? Those are backup files from the .vmf's

Otherwise, going through the whole file trying to find stuff that looks
wrong is probably the only solution, but it's probably a lot of work...
You can open it in wordpad or notepad or any simple text editor, but
even simple maps already are long, very long text files...
Create-ivity - a game development blog
Re: Corrupt vmf files Posted by ben_j_davis on Tue Nov 1st 2005 at 12:10pm
ben_j_davis
69 posts
Posted 2005-11-01 12:10pm
69 posts 27 snarkmarks Registered: Mar 22nd 2004
Luckily someone was able to do just that and edit the vmf file in notepad.
Glu Mobile

QA Tech
Re: Corrupt vmf files Posted by Paladin[NL] on Tue Nov 1st 2005 at 2:38pm
Paladin[NL]
157 posts
Posted 2005-11-01 2:38pm
157 posts 56 snarkmarks Registered: May 4th 2004 Occupation: Student/mapper Location: Netherlands
Well, at any rate, people who know how a vmt looks like(or should look
like) in notepad could probably very easily recover/repair corrupted
vmt's.
Re: Corrupt vmf files Posted by Captain P on Tue Nov 1st 2005 at 4:38pm
Captain P
1370 posts
Posted 2005-11-01 4:38pm
1370 posts 1995 snarkmarks Registered: Nov 6th 2003 Occupation: Game-programmer Location: Netherlands
To some extend, yes, Paladin. It's just that .vmf files are long, very
long... which makes it a bit harder. You could write a script that
validates a .vmf and points out errors though, which I think that
person did who fixed ben_j_davis' .vmf.
Create-ivity - a game development blog
Re: Corrupt vmf files Posted by rs6 on Tue Nov 1st 2005 at 8:49pm
rs6
640 posts
Posted 2005-11-01 8:49pm
rs6
member
640 posts 94 snarkmarks Registered: Dec 31st 2004 Occupation: koledge Location: New Jersey, USA
If you can remeber what you changed last that made it corrupt, then you can search teh vmf in notepad for that entity or brush, or whatever.
Re: Corrupt vmf files Posted by ben_j_davis on Wed Nov 2nd 2005 at 9:20am
ben_j_davis
69 posts
Posted 2005-11-02 9:20am
69 posts 27 snarkmarks Registered: Mar 22nd 2004
The file was corrupt because the file had accidently overwritten and then retrieved using an undelete program. :smile:
Glu Mobile

QA Tech
Re: Corrupt vmf files Posted by ben_j_davis on Fri Nov 4th 2005 at 11:02am
ben_j_davis
69 posts
Posted 2005-11-04 11:02am
69 posts 27 snarkmarks Registered: Mar 22nd 2004
Well last nite I finally got the chance to have a look of what was left of my map.

It was a lot worse than I had imagined. Most of the brushe's were gone.
The carefully made huge window was in peices, all the water, sky box
and some of the models.

All is not lost though as I can quite easily repair it, bit of a set back though. Nevermind, gotta learn from your mistakes.
Glu Mobile

QA Tech