empty vmf :/

empty vmf :/

Re: empty vmf :/ Posted by Hench on Mon Apr 18th 2005 at 10:33pm
Hench
38 posts
Posted 2005-04-18 10:33pm
Hench
member
38 posts 64 snarkmarks Registered: Nov 11th 2003
Lo there...

I had a pc crash and when i rebooted and opend the map file i was working on it turned out to be completly empty :/

google told me that i had to rename the .VMX file to VMF, i did that but then hammer give a error : line 18258 unexpected end of file

mmmkay... google also said that i had to open the .VMX with notepad but what it shows is something i dont understand :sad:

my question is , what can i do to get the map back? :sad:

i got the .BSP btw, but there`s no bsp --> vmf thing right?
Re: empty vmf :/ Posted by French Toast on Mon Apr 18th 2005 at 11:31pm
French Toast
3043 posts
Posted 2005-04-18 11:31pm
3043 posts 304 snarkmarks Registered: Jan 16th 2005 Occupation: Kicking Ass Location: Canada
Sounds to me like you have lost your map, and don't have a way of getting it back. The only thing that you can do, is in the future make multiple copies of the map along the way, so if something like this happens, you can jsut load a previous version of the map and quickly fix whatever youchanged.

Sorry, unless someone else has a way to restore it.
Re: empty vmf :/ Posted by CLs on Tue Apr 19th 2005 at 1:51am
CLs
66 posts
Posted 2005-04-19 1:51am
CLs
member
66 posts 7 snarkmarks Registered: Mar 17th 2005 Occupation: Student Location: Canada
Mmekay heres what to do,

Fire up Notepad and check for any strange lines in the VMF file or any lines with unclosed brackets {.......

So be prepared for a long day of digging through notepad :confused:
OR

If all else fails, and you have compiled your my recently you can decompile the BSP into a fully functional VMF. Aside from a few messed up entities and lose of lightmap assignements, defaults back to 16, its a real life saver :smile: .

-Hope that helps-

CLs
Re: empty vmf :/ Posted by French Toast on Tue Apr 19th 2005 at 2:16am
French Toast
3043 posts
Posted 2005-04-19 2:16am
3043 posts 304 snarkmarks Registered: Jan 16th 2005 Occupation: Kicking Ass Location: Canada
oh damn, sorry I misread the post. I thought he said he couldn't get the .bsp. Nm, go with CLs.
Re: empty vmf :/ Posted by SaintGreg on Tue Apr 19th 2005 at 6:41am
SaintGreg
212 posts
Posted 2005-04-19 6:41am
212 posts 51 snarkmarks Registered: Dec 3rd 2004
Theres a HL2 map decompiler somewhere around here. Seems to do a
pretty good job. At the very least you'll have to do a little bit
of fixing, but better than losing it all.
Re: empty vmf :/ Posted by OtZman on Tue Apr 19th 2005 at 7:27am
OtZman
1890 posts
Posted 2005-04-19 7:27am
OtZman
member
1890 posts 218 snarkmarks Registered: Jul 12th 2003 Occupation: Student Location: Sweden
google told me that i had to rename the .VMX file to VMF, i did that
but then hammer give a error : line 18258 unexpected end of file
Dunno if this will work but give it a try.

Open up a folder, anyone will do. Then click Tools -> Folder
Options... -> View -> then scroll down the list and untick the
"Hide extensions for known file types".

Now, try again to change the extension of the .vmx file.
Re: empty vmf :/ Posted by Dark Tree on Tue Apr 19th 2005 at 8:39am
Dark Tree
646 posts
Posted 2005-04-19 8:39am
646 posts 264 snarkmarks Registered: Apr 30th 2004 Occupation: DigiPen student Location: USA
forget notepad editing.

<DIV class=quote>
<DIV class=quotetitle>? quote:</DIV>
<DIV class=quotetext>i got the .BSP btw, but there`s no bsp --> vmf thing right?</DIV></DIV>

Yes, there IS a bsp --> vmf thing. IT is called VMEX. The latest version is .095. Here is a link to that program. All you need to do is open up that bsp with this small <100k program and decompile it. It comes with a very easy interface OR you can just run the decompiler through a command line. There is a readme file included that you probably won't need to read unless the program doesn't work.

If the program doesn't work, it is probably because you don't have Java 5 installed. you can get Java 5 HERE.

Your VMF will be back on your system in no time. It is true though, that these decompilers aren't 100% accurate and you may have to go back and re align a few things but the basic structure will be all back for ya :smile:

Hope this helps and happy mapping :smile:
Re: empty vmf :/ Posted by Orpheus on Tue Apr 19th 2005 at 10:22am
Orpheus
13860 posts
Posted 2005-04-19 10:22am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
as harsh as this is gonna sound.. if you did not create multiple backup's, you deserve it to be missing.

consider it a learning experience.. even if you salvage the situation i bet you will now create multiple backups.

chose for yourself exactly how many, but i create a new one after each new addition, this way you only lose one if anything but a total hard drive crash happens.

good luck :/
Re: empty vmf :/ Posted by Hench on Tue Apr 19th 2005 at 10:34am
Hench
38 posts
Posted 2005-04-19 10:34am
Hench
member
38 posts 64 snarkmarks Registered: Nov 11th 2003
I gave up on the notepad thingy every time a new line with an error arf..

gonna try the decompiler, tnx guys !! ( i didnt knew such a program was there)

btw orpheus offcourse i made some backups but the last one was from 3 days ago and the file that is broken now was the file i spend a whole day working on and offcourse i didnt backupped that one :sad:

just my bad luck ...
Re: empty vmf :/ Posted by Orpheus on Tue Apr 19th 2005 at 10:42am
Orpheus
13860 posts
Posted 2005-04-19 10:42am
Orpheus
member
13860 posts 2024 snarkmarks Registered: Aug 26th 2001 Occupation: Long Haul Trucking Location: Long Oklahoma - USA
Hench said:
I gave up on the notepad thingy every time a new line with an error arf..

gonna try the decompiler, tnx guys !! ( i didnt knew such a program was there)

btw orpheus offcourse i made some backups but the last one was from 3 days ago and the file that is broken now was the file i spend a whole day working on and offcourse i didnt backupped that one :sad:

just my bad luck ...
wanna bet, you remember now :razz:

i, and i assume many others, had to learn the hard way as well.
i just automatically save a new version after a smallish time frame.
Re: empty vmf :/ Posted by Nanodeath on Wed Apr 20th 2005 at 7:28am
Nanodeath
356 posts
Posted 2005-04-20 7:28am
356 posts 66 snarkmarks Registered: Nov 11th 2004 Occupation: Student - Bioengineering Location: Seattle, WA, USA
Nitpick: Java 1.5 and Java 2 are the same thing, but there's no Java 5 :smile:

Also: for backup software, I use and like
Back2zip. It allows you to
vary the compression on your backups, while backing up as frequently as
you like and keeping old copies as long as you like. And it's
free!

Heh...it's the height of paranoia ;-) you COULD set it to backup files every 20 minutes and keep a backup a day for two weeks...
Re: empty vmf :/ Posted by omegaslayer on Wed Apr 20th 2005 at 4:43pm
omegaslayer
2481 posts
Posted 2005-04-20 4:43pm
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
CLs said:
If all else fails, and you have compiled your my recently you can decompile the BSP into a fully functional VMF. Aside from a few messed up entities and lose of lightmap assignements, defaults back to 16, its a real life saver :smile: .
Fully functional is a matter of opinion, if you want paper thin brushes sure, I would never think of re-compiling a decompiled map, mainly because everythings messed up. I dont know about the new version of the decompiler, but from my experience it doesnt do a good job of making the original brushes, it just makes planes with the texture on one side and the the invisable texture on the other :sad: ????? Well good luck finding your map, Ill just say that making back-ups is better than decompiling the bsp.
Re: empty vmf :/ Posted by Rof on Wed Apr 20th 2005 at 5:25pm
Rof
210 posts
Posted 2005-04-20 5:25pm
Rof
member
210 posts 41 snarkmarks Registered: Dec 3rd 2004
New versions of the decompiler (after v0.80) can recover 95-99%
of the original map brushes, if you use it in "brushes and planes" mode.

Old versions did the same "wafer-thin brush for each face" trick that
HL1 decompilers did. But later, I realised that HL2 BSPs contain almost
all of the original brush data, and the newer versions use that instead.

That said, there are still inevitable problems due to rounding errors,
etc. Certainly I'd try fixing the .vmx file before resorting to
decompiling. OTOH, the .vmf file format can be tricky to repair if you
don't know it.
Re: empty vmf :/ Posted by CLs on Wed Apr 20th 2005 at 8:00pm
CLs
66 posts
Posted 2005-04-20 8:00pm
CLs
member
66 posts 7 snarkmarks Registered: Mar 17th 2005 Occupation: Student Location: Canada
Yeah VMF editing in notepad can be quite a consuming process, I gave up after an hour or so and went with the decompiling route, worked great for me, only spent 15 minutes fixing brushes and ents on a medium sized map and it compiled perfectely. Thanks to Rof for this great tool :smile:

CLs
Re: empty vmf :/ Posted by Leperous on Wed Apr 20th 2005 at 8:48pm
Leperous
3382 posts
Posted 2005-04-20 8:48pm
Leperous
Creator of SnarkPit!
member
3382 posts 1635 snarkmarks Registered: Aug 21st 2001 Occupation: Lazy student Location: UK
Added your decompiler to the files section here Rof :smile:
Re: empty vmf :/ Posted by omegaslayer on Wed Apr 20th 2005 at 9:28pm
omegaslayer
2481 posts
Posted 2005-04-20 9:28pm
2481 posts 595 snarkmarks Registered: Jan 16th 2004 Occupation: Sr. DevOPS Engineer Location: Seattle, WA
I guess im using a way old version, does it work on displacements yet?
Re: empty vmf :/ Posted by rs6 on Wed Apr 20th 2005 at 9:47pm
rs6
640 posts
Posted 2005-04-20 9:47pm
rs6
member
640 posts 94 snarkmarks Registered: Dec 31st 2004 Occupation: koledge Location: New Jersey, USA
I used notepad when i did somethign like this, only i knew what i screwed up so it was easy to find.

BTW it must be so hard to map with notepad.
Re: empty vmf :/ Posted by Dark Tree on Wed Apr 20th 2005 at 10:28pm
Dark Tree
646 posts
Posted 2005-04-20 10:28pm
646 posts 264 snarkmarks Registered: Apr 30th 2004 Occupation: DigiPen student Location: USA
Yes, VMEX 095 does displacements.