Is there a way to import GoldSrc maps into Hammer?

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

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
I'm interested in seeing, for example, whether Valve changed the scale of some of their maps between Team Fortress Classic and their TF2 remakes.
 

AsG_Alligator

qhull precision error
aa
Aug 5, 2016
595
1,191
I mean... I guess its technically possible. Both Source and GoldSrc use vmf as map source file.

No idea if vmf structure in both is the same, but dimentions should be.

You can try decompiling a GoldSrc map, and loading it up into tf2 hammer.
 

Crowbar

Spiritual preprocessor
aa
Dec 19, 2015
1,455
1,297
GoldSrc uses RMF, which hammer also supports.
I'm however pretty sure bsp format differs a lot, and we wouldn't succeed in decompiling.
 

Blade x64

Logical insanity
aa
Sep 3, 2009
239
633
https://developer.valvesoftware.com/wiki/Porting_Half-Life_maps

Yes. However, decompiling goldsrc maps is a lot nastier. The maps only retain data for world facing surfaces, so every surface turns into its own brush.

But if it's just to evaluate scaling, shouldn't be a problem. Just a lot laggier.

You may need to grab a copy of Hammer 3.5. Our Hammer doesn't seem to take to .map kindly, so you'll have to open and save as .rmf in 3.5.
 

Pocket

Half a Lambert is better than one.
aa
Nov 14, 2009
4,694
2,579
Is Hammer 3.5 the version that comes with the Half-Life SDK? Because I do have that.
 

Blade x64

Logical insanity
aa
Sep 3, 2009
239
633
Isn't that actually better way to do it, surely planes are cheaper than all sides of a brush

In terms of filesize, yes, maps that shed unnecessary sides will be smaller. By how much is beyond me.

In terms of decompiling, figuring which sides went to which brush is really hard, not to mention filling in the blanks. You could probably publish a pretty impressive paper on the algorithm if you figure it out. But all current Goldsrc decompilers just take each face and make it one unit thick so Hammer likes it. The result is about six times the faces the map originally had. All brushes must be reconstructed by hand if you want any hope of a good compile.
 

Empyre

L6: Sharp Member
Feb 8, 2011
309
187
I have known since well before TF2 that decompiling half-Life maps made a mess, and I had heard that decompiling is a lot less messy now, but I had just figured that the algorithms had somehow gotten better. Thanks to this thread, I finally know what has changed: the bsp format now includes the whole brush, and not just the visible faces, which obviously would make decompiling much easier.
Thanks! I like learning new things.

Also, if you somehow manage to import a goldsrc map into TF2, you'll find that the scale is very different. Everything would be way too small for the TF2 characters.