Decompiling bsp maps

  • If you're asking a question make sure to set the thread type to be a question!

KaydemonLP

L5: Dapper Member
Nov 17, 2015
204
63
Is there a better program than bspsource or VMEX. Im asking because when i saved my map something went wrong and now its completley empty when i load the VMF file but i still have the bsp from the last export.
 
Last edited:

Crowbar

Spiritual preprocessor
aa
Dec 19, 2015
1,455
1,297
I mean, don't you have autosave files that contain at least something?
 

Crowbar

Spiritual preprocessor
aa
Dec 19, 2015
1,455
1,297
By default, C:\HammerAutosave\. Note that these files have not .vmf, but .vmfautosave extension, and you'd have to manually edit the name to have a .vmf extension in order to get Hammer to load it.
 

KaydemonLP

L5: Dapper Member
Nov 17, 2015
204
63
By default, C:\HammerAutosave\. Note that these files have not .vmf, but .vmfautosave extension, and you'd have to manually edit the name to have a .vmf extension in order to get Hammer to load it.
I re checked and i dont have autosave on.
 

Crowbar

Spiritual preprocessor
aa
Dec 19, 2015
1,455
1,297
OK. It might be VMF having been written wrong way so hammer can't read it anymore. Might be an omited bracket or something like that, just because hammer had a chance to do that. You could be able to fix that, but I'm not sure. Could send the VMF.
 

KaydemonLP

L5: Dapper Member
Nov 17, 2015
204
63
OH sory here.
 

Attachments

  • cp_hill_island.vmf
    263.9 KB · Views: 86

Crowbar

Spiritual preprocessor
aa
Dec 19, 2015
1,455
1,297
No deal.
The VMF seems to actually be empty and containing no information on what it has been. Probably, decompiling is what you do (or remaking the map). What is your problem with the decompilers you listed? Because that might turnout to be problems with the whole decompiling idea, as you can barely ever get a decompiled vmf to be half as good as the original. Or do they not work at all?
 

KaydemonLP

L5: Dapper Member
Nov 17, 2015
204
63
I cant run BspSource and when i decompile with VMEX it says line 9962 unexpected end of file.
I do have java installed.
 

KaydemonLP

L5: Dapper Member
Nov 17, 2015
204
63
Here is the bsp if it helps
 

Attachments

  • cp_hill_island.bsp
    40.7 MB · Views: 119

Diva Dan

hello!
aa
Mar 20, 2016
1,024
1,951
Open the vmf in notepad and add/remove a closed curly bracket to the very end. Sometimes the bracket count can be off, it happened to me. Make sure there are as many {'s as }'s. It might not fix it but it's worth trying!
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,277
Unfortunately, this vmf was completely corrupted; the text file is nothing but a string of null characters now. As far as I know, there's no way to reverse this, so your best defense is to save new internal versions frequently (or whenever you make a major change or addition). Autosaves aren't as reliable, but there's no harm in turning them on too.

I've attached a decompiled version of your map. Because of the way the compiler handles displacements, they're always rebuilt as 1u-thick brushes, so you may want to remake those for easier editing.
 

Attachments

  • cp_hill_island_d.vmf
    250.8 KB · Views: 94

KaydemonLP

L5: Dapper Member
Nov 17, 2015
204
63
Unfortunately, this vmf was completely corrupted; the text file is nothing but a string of null characters now. As far as I know, there's no way to reverse this, so your best defense is to save new internal versions frequently (or whenever you make a major change or addition). Autosaves aren't as reliable, but there's no harm in turning them on too.

I've attached a decompiled version of your map. Because of the way the compiler handles displacements, they're always rebuilt as 1u-thick brushes, so you may want to remake those for easier editing.
Thank you. The map is in the same state as i left it!
 

Vel0city

func_fish
aa
Dec 6, 2014
1,947
1,589
One good thing to remember in Hammer is this.

Mash ctrl+s after ever change you make.
 

killohurtz

Distinction in Applied Carving
aa
Feb 22, 2014
1,016
1,277
One good thing to remember in Hammer is this.

Mash ctrl+s after ever change you make.
Even the most frequent ctrl+s mashing won't save you from this bug. You could save a hundred times, and a random BSOD would still take out that vmf (yes, that's happened to me before). Having multiple copies of the file, or some other kind of accessible version history, is your best bet.
 

KaydemonLP

L5: Dapper Member
Nov 17, 2015
204
63
Even the most frequent ctrl+s mashing won't save you from this bug. You could save a hundred times, and a random BSOD would still take out that vmf (yes, that's happened to me before). Having multiple copies of the file, or some other kind of accessible version history, is your best bet.
Yeah because i always mash ctrl + s. Good thing that i now know that autosave exists thanks to crowbar.