Problems with BSPsource

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

Dadema

L-3: Not very succesful map maker
Jan 27, 2016
163
83
Everytime that I decompile a map with BSPsource and load it up in hammer, it crashes.
Does anyone know a solution to this?
 

Vel0city

func_fish
aa
Dec 6, 2014
1,947
1,589
Well, decompiling isn't 100% flawless. Does Hammer give any error messages before it crashes?
 

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,257
999
Are you decompiling a CS:GO map? Those use a newer type of VMF, so you will need to decompile them to the type that TF2 uses, by configuring BSPSource's output settings.
 

Dadema

L-3: Not very succesful map maker
Jan 27, 2016
163
83
Are you decompiling a CS:GO map? Those use a newer type of VMF, so you will need to decompile them to the type that TF2 uses, by configuring BSPSource's output settings.
No, I was decompiling a custom tf2 map
 

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,257
999
That shouldn't be happening commonly. BSpSource is great. It can handle repacked maps and gets around every type of anti-decompile trick. You could try adjusting the settings, turning things off one by one, to see what happens. Try decompiling a Valve map, or downloading one of the pre-decompiled maps from this post, and see if you can open them in Hammer.
 

Viemärirotta

sniffer
aa
Feb 5, 2016
1,013
590
What's the map you're trying to decompile? Perhaps someone could take a look at it and try to figure it out.
 

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,257
999
BSPSource ignores custom content when it decompiles. It only gives the VMF. Lack of custom content won't prevent the opening of a VMF.
 

Frosty Scales

L2: Junior Member
Mar 22, 2015
93
30
and gets around every type of anti-decompile trick.
False. The IID nodraw hack is still a thing. (It's detected but not reversed by BSPSource)
 

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,257
999
I know, but that's irrelevant. We are trying to work out what is causing DaDema problems, and while BSPSource does have an option to dump the pak at the same time as the decompile, it's an optional feature and doesn't affect the resulting VMF.
 

Dadema

L-3: Not very succesful map maker
Jan 27, 2016
163
83
BSPsource does give two warnings:
[warning] BspFile: Negative game lump length -13.628.908 in prpd, assuming 0
[warning] LzmaBuffer: Difference in LZMA data length: found 30.095 bytes, expected 30.094

I don't know if this has something to do with it
 

Frosty Scales

L2: Junior Member
Mar 22, 2015
93
30
BSPsource does give two warnings:
[warning] BspFile: Negative game lump length -13.628.908 in prpd, assuming 0
[warning] LzmaBuffer: Difference in LZMA data length: found 30.095 bytes, expected 30.094

I don't know if this has something to do with it
Use "bsp_repack -nocompress maps/<mapname>.bsp maps/<mapname>.bsp" in console, and then try again.

Can someone tell me what is that?
An old anti-decompile program that replaces all the textures with a single texture when you try to decompile the map. It's #5 on this page. What he says about it was a bit off, it definitely destroys the map's textures rather than just "messing them up".
 

worMatty

Repacking Evangelist
aa
Jul 22, 2014
1,257
999
BSPSource can decompile repacked maps.