Report article RSS Feed Setting Up Valve Hammer Editor

It took me a lot of time searching through the internet how to set up Hammer 3.5 and make it work flawlessly, and I never found a tutorial that had everything you needed to know so I'm making one that includes everything you need to know on setting up for the first time Hammer Editor.

Posted by altercuca on Mar 23rd, 2010
Basic Starting a mod.

So first begin by getting everything you need:

Now installing them:

  • Valve Hammer Editor 3.5: Is pretty easy, just mash on "Next" and you're done.
  • ZHLT: You need to extract the files inside the directory you installed Valve Hammer Tool.
  • Valve Model Viewer: Just like Hammer. Run the setup, mash "Next" and finish.
  • Wad Merger Tool: You need to extract whats in the RAR file. You can extract those wherever you like just as long as you remember where you put them :).

Configuring the programs:

Open Hammer. Go on Tools menu at the very bottom you have Options. You are first presented with the General tab but skip directly to Game Configurations tab. Starting from up:

  • Configuration: Here you put the name of the game you're going to map for.
  • Game Data Files: Here press Add to browse for the FGD files with are located where the Hammer install folder is, inside the FGD folder you choose the FGD of the game you are going to map for.
  • Texture Format: Automatically set to WAD3 (Half-Life/ TFC)
  • Map Type: Automatically set to Half-Life/ TFC
  • Default PointEntity Class: This is going to be your default value your Entity tool is going to have every time you use it. I suggest you put it for starters at: info_player_start. This will create a spawn location.
  • Default SolidEntity Class: Just like with the previous one put a value which will be easy for you to set while you're mapping. I suggest: func_wall

The following setting are going to depend on what game you are configuring about. I'll show for Conter-Strike since is a good way to start making map while you can test them online.

  • Game Executable Directory: Should be:
    C :\Program Files\valve\Steam\steamapps\user name here\counter-strike
  • Mod Directory:
    C:\Program Files\valve\Steam\steamapps\user name here\counter-strike\cstrike
  • Game Directory:
    C:\Program Files\valve\Steam\steamapps\user name here\counter-strike
  • RMF Directory: Basically this is where you maps are saved but I suggest:
    C:\Program Files\Steam\steamapps\user name here\counter-strike\cstrike\maps
configuration

Note that configured this for steam. For the CD version is the same basic thing. You just need to find the same folders.

Now go on the Build Programs tab. Starting from up:

  • Configuration: The game you are mapping for.
  • Game Executable: C:\Program Files\Steam\Steam.exe. (for CD version you need to select hl.exe in your CD install directory)
  • CSG Executable: C:\Program Files\Valve Hammer Editor\hlcsg.exe
  • BSP Executable: C:\Program Files\Valve Hammer Editor\hlbsp.exe
  • VIS Executable: C:\Program Files\Valve Hammer Editor\hlvis.exe
  • RAD Executable: C:\Program Files\Valve Hammer Editor\hlrad.exe
  • Place compiled maps...: C:\Program Files\Steam\steamapps\user name here\counter-strike\cstrike\maps

Now go to Textures tab:

Basically here you add the texture packages (WAD file) found on you game directory. If you want other WAD files i suggest you for the easy way to look on your CD install folders or the internet. For adventurers you need GCFscape which allows you to see inside the GCF packages installed with your steam game. You can find more information and download GCFscape Here.

NOTE: If you manage to find more than 8 WAD files than you might crash Hammer, so in order to prevent this use less than 8 WAD files, OR if you really need more textures you need to use the Wally Wad Merger Tool. Here is again the link to explain how to merge .wad files: Link.

When you finish selecting your WAD files press OK and you are done.


Now the TRICKY part.

If you put on textures only the original games .wad files then you are OK to go and make maps. Unfortunately if you included CUSTOM WAD files or other than the original one Hammer WON'T compile the map with your custom textures and when you compile the map Hammer will give you an error and maybe crash. So here is how we prevent this:

When you Run the compiler on Hammer the Run Map dialog box appears. Down on the left is a Expert button you need to press to go on expert mode. Now you are presented with the Advanced Run Map dialog box. You need to do 2 things here:

  1. Configurations: choose the game you are mapping for, in our case: Half-Life: Counterstrike (full)
  2. After you choose the configurations go on compile/run commands:

    a. Select: $csg_exe $path\$file. After you select it above is a Parameters field in which you write: -nowadtextures.

    b. Select the last command on the list: $game_exe -game..., there are 2 scenarios here:

    If you have steam you need to open regedit and go to this address: HKEY_LOCAL_MACHINE\SOFTWARE\Valve\Steam\Apps

    The numbers there are your APPID which depending on the game you are mapping for you need to choose and enter on the parameter this way: -applaunch APPID -dev -console +sv_lan <1> +sv_cheats <0>

    If you installed from a CD you need to write on the Parameter field: hl2.exe -game cstrike -dev -console +sv_lan <1> +sv_cheats <0>

For more info about this last one go here: Link. It will look like this:


Congratulations

Now you can GO! and no error will pop up. Plus you map will include all the textures. Enjoy from altercuca

Post comment Comments
m82sniper
m82sniper Mar 23 2010, 8:42pm says:

Nice tutorial, I used to use the one on SnarkPit to set up Hammer with Steam, good to see a similar one on Moddb.

+2 votes     reply to comment
altercuca
altercuca Mar 23 2010, 8:44pm replied:

u're welcome :), it's my first tutorial here. I'll keep posting different things on the way :)

+1 vote     reply to comment
WunderFanStudio
WunderFanStudio May 10 2011, 10:03am replied:

could you make a tutorial for BLue Shift? :3

+1 vote     reply to comment
altercuca
altercuca Jul 27 2011, 4:44am replied:

it's the same process as counter-strike only that you change the name and directories according to where your blue shift folders are

+1 vote     reply to comment
AlekZanDer
AlekZanDer Mar 24 2010, 6:18am says:

ZHLT 3.4 are old. There is a newer version: Svencoop.com But the sky texture in the shlt.wad is with a wrong texture. This f**ks the map pretty bad.

+1 vote     reply to comment
altercuca
altercuca Mar 24 2010, 12:40pm replied:

yeah, thats why i choose the old one, i went with the tutorial to make it as BUGFREE as possible!

+1 vote     reply to comment
Unknown12345678900
Unknown12345678900 Jun 17 2010, 6:03pm replied:

too bad yours wont let me access my Gldsrc games.

+1 vote     reply to comment
JohnnyStark
JohnnyStark May 5 2010, 9:39am says:

Oh! I always wanted to make cs maps again :D I had it before when it acually was EASY to get it. Thank you kind sir.

+1 vote     reply to comment
altercuca
altercuca May 13 2010, 8:26am replied:

u're most welcome

+1 vote     reply to comment
Blue_Dust
Blue_Dust Jul 1 2010, 2:51pm says:

I can't find the stupid fgd file!

+1 vote     reply to comment
altercuca
altercuca Jul 6 2010, 10:34pm replied:

picture nr. 1, that path shown there is the default one.

+1 vote     reply to comment
ericxianrocks
ericxianrocks Jul 15 2010, 3:58am says:

i put my appid code and everything. but once i run it, my valve editor just malfunctions. and it is not responding and i have to shut it down. Please help . i really want to test my map .

+1 vote     reply to comment
altercuca
altercuca Jul 15 2010, 7:41pm replied:

the file u gave me compiled without any error! please check again the settings of your hammer editor. try and change the compatibility but I doubt is that. there MUST be something wrong with the settings so triple check them!!!

+1 vote     reply to comment
ericxianrocks
ericxianrocks Jul 16 2010, 12:13am replied:

i doubled checked everything. It still crashes the same way. Why cant i run it ):

+1 vote     reply to comment
altercuca
altercuca Jul 16 2010, 8:57am replied:

make some screenshots of your settings, lemme see if u have something wrong! (hide ur steamid plz)

+1 vote     reply to comment
ericxianrocks
ericxianrocks Jul 16 2010, 4:18pm replied:

Tell me the reviews if anything is wrong

+1 vote     reply to comment
reusingbattery
reusingbattery Aug 2 2010, 6:03pm says:

I cant find any of the build programs anywhere. Please help me!
Edit: oh nevermind. I didn't see that link to the ZHLT tools before. Sorry. :) Great tutorial BTW.

+2 votes     reply to comment
Hartliss
Hartliss Sep 11 2010, 5:27pm says:

how do i add wads???

0 votes     reply to comment
altercuca
altercuca Oct 30 2010, 4:10am replied:

read the Textures part!

+1 vote     reply to comment
Timm64
Timm64 Nov 8 2010, 8:07pm says:

Hello there i was wondering if you can make your own mod with this? If not can anyone send me a link what program to use to mod? Thanks! Verry good tutorial altercuca :)

+1 vote     reply to comment
altercuca
altercuca May 22 2011, 9:59am replied:

yes thou you need a lot more background on using VHE

+1 vote     reply to comment
saurabhchauhan54321
saurabhchauhan54321 Dec 27 2010, 9:28am says:

plzz help me....
when searching for nodraw texture searching in browse..
which wad file will i nead??? or what to do plzz reply...

+1 vote     reply to comment
altercuca
altercuca May 22 2011, 10:00am replied:

the nodraw in VHE is not the same as in Source so you need to look for something else...looks like purple checkers...or you can make a new custom texture with wally tools

+1 vote     reply to comment
gelgamesh
gelgamesh May 18 2011, 5:13pm says:

thankx evry one
i get evry think but when i run my map its telme this

** Executing...
** Command: Copy File
** Parameters: "d:\program files\valve hammer editor\fgd\counter-strike\cs-18.bsp" "F:\counter collection\cs 1.8\cstrike\maps\cs-18.bsp"

The command failed. Windows reported the error:
"The system cannot find the file specified."

** Executing...
** Command: Copy File
** Parameters: "d:\program files\valve hammer editor\fgd\counter-strike\cs-18.pts" "F:\counter collection\cs 1.8\cstrike\maps\cs-18.pts"

The command failed. Windows reported the error:
"The system cannot find the file specified."

** Executing...
** Command: Copy File
** Parameters: +map "cs-18" -dev -console

it look like the prog dont creat the *.psb and *.pst file
so is there anyone can help ^_^

+1 vote     reply to comment
altercuca
altercuca May 22 2011, 10:04am replied:

the game is failing to copy the files you just executed to the default map folder the game has...my suggestion is change the folder where your maps get rendered to the default one I wrote above or before u run the map copy it to the default location and when u get ingame open the console (`) and type: map yourmapnamehere (enter)

PS: make sure you wrote the correct address on the Build Programs tab

+1 vote     reply to comment
gelgamesh
gelgamesh May 19 2011, 4:16am says:

smoe tim the game give me this

couldn't exec banned_user.cfg
couldn't exec banned_ip.cfg

+1 vote     reply to comment
altercuca
altercuca May 22 2011, 10:01am replied:

banned?

+2 votes     reply to comment
Un_Nem
Un_Nem Jun 9 2011, 4:34am says:

now show ppls how to use KBAT.
so everybody can skip noob-vhe compilation and settings.

+1 vote     reply to comment
altercuca
altercuca Jun 11 2011, 10:37am replied:

sigh....

+1 vote     reply to comment
phillipr
phillipr Jul 21 2011, 5:47pm says:

PLEASE HELP I CANT FIND THE GAME DATA FILES AND THE ONE ON THE PICTURE DOESN'T WORK

+1 vote     reply to comment
phillipr
phillipr Jul 21 2011, 5:48pm says:

I ALSO USE THE SOFTWARE VERSION IF IT MAKES A DIFFERENCE

+1 vote     reply to comment
altercuca
altercuca Jul 27 2011, 4:43am replied:

the FGD is in thte folder where Valve Hammer Edit (it was automatic for me so there is no difference what version of the game u have). You need to find the executable files and put them according to ur installation folders, ie: C:\Program Files\Valve\half-life\cstrike might be your mod directory if u're mappin' for CS

+1 vote     reply to comment
horiaonofrei
horiaonofrei Jul 27 2011, 11:45am says:

the wad merger tool link is not working.

+1 vote     reply to comment
altercuca
altercuca Aug 15 2011, 12:49pm replied:

all links work fine!

+1 vote     reply to comment
CommanderScorch229
CommanderScorch229 Aug 13 2011, 11:11pm says:

You say that there should be wads in the game directory, does it not have wads because its steam version, I can't really find them?

+1 vote     reply to comment
altercuca
altercuca Aug 15 2011, 12:33pm replied:

there is a wad file installed with ZHLT tools when u install it, (named zhlt.wad). Use that for starters, if you want more wads you have to use a program called GCFScape to extract them from the game you want to mod with GCF's File inside steamapps folder. I didn't cover that here since all I wanted to cover is how to set up Hammer 3.5. For more info google GCFScape from Nemesis on Nem's Tools

+1 vote     reply to comment
CECZI
CECZI Nov 25 2011, 1:06pm says:

Example I have to put to configuration the name of the game I'm going to map for I want to map for HL so I don't write counter-strike but I write Half-Life?

+1 vote     reply to comment
Th3darkfunk
Th3darkfunk Apr 9 2012, 11:09am says:

the link for the wad merger tool isnt working for me, it just goes to the websites homepage

+1 vote     reply to comment
CECZI
CECZI Apr 29 2012, 6:36am says:

Then try to find tools from google. I have get my valve hammer editor working. This tutorial is ok but why using counter strike files if want to make HL mod?

+1 vote     reply to comment
altercuca
altercuca May 11 2012, 8:50am replied:

eh sorry about that, i was making maps for cs and used that knowledge to make the tutorial

+2 votes     reply to comment
broken_teeth123
broken_teeth123 Jun 17 2012, 9:17am says:

Hi....I have created a map..Its working fine but when I play with my friend on internet using that map it give him a high latency (lag)....tricky part is that even if he create server I dont get very much latency...but he gets...please help me this is my first map....thanx in advance

+1 vote     reply to comment
CECZI
CECZI Nov 18 2012, 7:13am says:

What should Compile Process Window look like when runing map and using custom wad files? That would help me very much. Thx

+1 vote     reply to comment
Guest
Guest Feb 20 2013, 11:56am says:

This comment is currently awaiting admin approval, join now to view.

Guest
Guest Jun 7 2013, 9:55pm says:

This comment is currently awaiting admin approval, join now to view.

connaito
connaito Aug 6 2013, 2:49am says:

sorry, how to import an exist map in CS or CZ?
I just want to edit maps.

+1 vote     reply to comment
Guest
Guest Dec 16 2013, 4:34pm says:

This comment is currently awaiting admin approval, join now to view.

unnAMD
unnAMD May 20 2014, 6:21pm says:

it's been so long since i last used VHE... that i don't even remembered how to configure the damn thing hahaha
thanks for the guide man :D
let's see if i can finally pull out a decent map out of VHE ...lol

+1 vote     reply to comment
Guest
Guest Jun 23 2014, 1:15pm says:

This comment is currently awaiting admin approval, join now to view.

Guest
Guest Jul 6 2014, 12:43pm says:

This comment is currently awaiting admin approval, join now to view.

Post a Comment
click to sign in

You are not logged in, your comment will be anonymous unless you join the community today (totally free - or sign in with your social account on the right) which we encourage all contributors to do.

2000 characters limit; HTML formatting and smileys are not supported - text only

Tutorial
Browse
Tutorials
Report Abuse
Report article
Related Games
Counter-Strike
Counter-Strike Single & Multiplayer First Person Shooter
Counter-Strike: Condition Zero
Counter-Strike: Condition Zero Single & Multiplayer First Person Shooter
Half-Life
Half-Life Single & Multiplayer First Person Shooter
Half-Life: Opposing Force
Half-Life: Opposing Force Single Player First Person Shooter
Related Engines
GoldSource
GoldSource Commercial Released Nov 17, 1998
Related Groups
Sierra Entertainment
Sierra Entertainment Developer & Publisher
Valve
Valve Developer & Publisher
Vivendi
Vivendi Developer & Publisher