my map just was deleted

( INSERT NAME HERE )

L1: Registered
Feb 18, 2017
3
0
one day i just went into hammer to work on a hard working koth map but when i went into my file for the map there was nothing there just blackness, i tried restarting my computer, to opening different files but nothing worked. i don't want to have to lose hard work like that so if i can some how get it back i would really appreciate it.
 

sooshey

:3c
aa
Jan 7, 2015
514
410
one day i just went into hammer to work on a hard working koth map but when i went into my file for the map there was nothing there just blackness, i tried restarting my computer, to opening different files but nothing worked. i don't want to have to lose hard work like that so if i can some how get it back i would really appreciate it.
Unfortunately there isn't a way to reverse this, but you can do one of two things to recover some of your work. If you had autosave turned on, great! Just go load one of those and carry on. If not, then take the most recent bsp of your map and decompile it using BSPSource; it will be mostly intact. If you haven't compiled your map recently or at all, then I'm sorry, but it's gone. Hammer is an ancient, buggy software and it's best to take preventative measures for when -- not if -- something goes wrong
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
And you tried opening the .vmx file yet, or no?
 

EmNudge

L4: Comfortable Member
Sep 23, 2015
184
60
Unfortunately there isn't a way to reverse this, but you can do one of two things to recover some of your work. If you had autosave turned on, great! Just go load one of those and carry on. If not, then take the most recent bsp of your map and decompile it using BSPSource; it will be mostly intact. If you haven't compiled your map recently or at all, then I'm sorry, but it's gone. Hammer is an ancient, buggy software and it's best to take preventative measures for when -- not if -- something goes wrong
The problem with BSPSource is that it mostly seems to delete or displace many props. Is there a way to ensure most of the map stays intact when decompiling?
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,277
The problem with BSPSource is that it mostly seems to delete or displace many props. Is there a way to ensure most of the map stays intact when decompiling?
I'm pretty sure that's not just a BSPSource problem. There's an ancient bug that deletes every entity in a vmf if you choose to re-save the map with invalid solids removed when prompted. As long as you don't click "yes" you'll be fine. I haven't seen this happen in a long time though, so I assume it's been fixed and only happens to vmfs decompiled from older bsps.
 

EmNudge

L4: Comfortable Member
Sep 23, 2015
184
60
I'm pretty sure that's not just a BSPSource problem. There's an ancient bug that deletes every entity in a vmf if you choose to re-save the map with invalid solids removed when prompted. As long as you don't click "yes" you'll be fine. I haven't seen this happen in a long time though, so I assume it's been fixed and only happens to vmfs decompiled from older bsps.
It's not that entities get deleted, it's the prop models I have getting moved and deleted. These bugs usually happen when decompiling maps and getting something similar to this error message:
e829c5065156f706aa1be09c078fb18a.png


I then have to add an ending curly brace ( } )to the vmf file for it to run, since it usually stops before closing off an entity. I don't even get an error message about invalid solids when opening it up. The map will not open in hammer if I don't add that curly brace and will instead crash.