Hammer broke my maps again [Solved]
Sooo... my question is, how do i fix this, and where are the auto save files located. I really don't feel like decompiling my maps from their BSP's.
baca25 wrote:
Sooo... my question is, how do i fix this, and where are the auto save files located. I really don't feel like decompiling my maps from their BSP's.
First of all, hammer makes a .vmf backup file called a .vmx which saves after a successful compile. To open in hammer, just search for the correct .vmx in the same directory as your saved .vmf should be (make sure you change the available extentions to .vmx in the drop down menu).
Secondly, you can also load the map from an autosave which would be located usually on the main drive e.g. C:/HammerAutosave.
The extra alternative would be to actually open up the corrupt .vmf through a text editor and put in extra brackets till it does open. I would stay away from this option as probably the files were corrupt because hammer crashed half way through writing the files.
You should have a backup in that same dir as the VMF file.
When you compile a map it copies the VMF file to a VMX file as a backup. So if you rename the VMX file to VMF it should atleast give you the last version from when you compiled. That might not help if you havent compiled recently though as some stuff will be missing.
Or, you could attach your VMF here and I could take a look at it and see why its not loading, but it sounds like it only saved part of the file.
Rob.
Edit
Scratch that, lost 30min because the autosaves did save some of the work I did. A thank you.
1) as damagepy said; set the autoave time really low
2) hit ctrl+s everytime you do anything in hammer
3) invest in ram: earlier this year I went from 4gb econo-ram to 12gb of corsair dominator enthusist ram, and I really noticed an immediate and severe reduction in crashes. (Went from about 1-2 per day to about 0-1 per week.)
I had the same message but the problem was different. I found the solution on the Steam Wiki, but I'm posting it here anyway for those who would have the same problem as me and end up on this page like I did.
Plus, I'm so happy I found the solution I just have to share it.
-> SOMETIMES, it's not a braket that is messing things up. Sometimes, it's...THE QUOTES.
For example, if you put quotes within a game_text entity, like me, that's not good. The quotes are used to mark comments in the .vmf file, so that's why they can corrupt the code.
All you have to do in that case is search for the quotes in the file with NotePad, and remove it.
And that's how I didn't lose days of work.
Hope this'll help someone, someday!