Post tutorial Report content 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 on - 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  (0 - 50 of 51)
m82sniper
m82sniper

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

Reply Good karma Bad karma+2 votes
altercuca Author
altercuca

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

Reply Good karma+1 vote
WunderFanStudio
WunderFanStudio

could you make a tutorial for BLue Shift? :3

Reply Good karma Bad karma+1 vote
altercuca Author
altercuca

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

Reply Good karma+1 vote
AlekZanDer
AlekZanDer

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.

Reply Good karma Bad karma+1 vote
altercuca Author
altercuca

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

Reply Good karma+1 vote
Unknown12345678900
Unknown12345678900

too bad yours wont let me access my Gldsrc games.

Reply Good karma Bad karma+1 vote
JohnnyStark
JohnnyStark

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.

Reply Good karma Bad karma+1 vote
altercuca Author
altercuca

u're most welcome

Reply Good karma+1 vote
Blue_Dust
Blue_Dust

I can't find the stupid fgd file!

Reply Good karma Bad karma+1 vote
altercuca Author
altercuca

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

Reply Good karma+1 vote
ericxianrocks
ericxianrocks

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 .

Reply Good karma Bad karma+1 vote
altercuca Author
altercuca

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!!!

Reply Good karma+1 vote
ericxianrocks
ericxianrocks

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

Reply Good karma Bad karma+1 vote
altercuca Author
altercuca

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

Reply Good karma+1 vote
ericxianrocks
ericxianrocks

Tell me the reviews if anything is wrong

Reply Good karma Bad karma+1 vote
reusingbattery
reusingbattery

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.

Reply Good karma Bad karma+2 votes
Hartliss
Hartliss

how do i add wads???

Reply Good karma Bad karma0 votes
altercuca Author
altercuca

read the Textures part!

Reply Good karma+1 vote
Timm64
Timm64

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 :)

Reply Good karma Bad karma+1 vote
altercuca Author
altercuca

yes thou you need a lot more background on using VHE

Reply Good karma+1 vote
saurabhchauhan54321
saurabhchauhan54321

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

Reply Good karma Bad karma+1 vote
altercuca Author
altercuca

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

Reply Good karma+1 vote
gelgamesh
gelgamesh

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 ^_^

Reply Good karma Bad karma+1 vote
altercuca Author
altercuca

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

Reply Good karma+1 vote
gelgamesh
gelgamesh

smoe tim the game give me this

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

Reply Good karma Bad karma+1 vote
altercuca Author
altercuca

banned?

Reply Good karma+2 votes
Un_Nem
Un_Nem

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

Reply Good karma Bad karma+1 vote
altercuca Author
altercuca

sigh....

Reply Good karma+1 vote
phillipr
phillipr

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

Reply Good karma Bad karma+1 vote
phillipr
phillipr

I ALSO USE THE SOFTWARE VERSION IF IT MAKES A DIFFERENCE

Reply Good karma Bad karma+1 vote
altercuca Author
altercuca

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

Reply Good karma+1 vote
horiaonofrei
horiaonofrei

the wad merger tool link is not working.

Reply Good karma Bad karma+1 vote
altercuca Author
altercuca

all links work fine!

Reply Good karma+1 vote
CommanderScorch229
CommanderScorch229

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?

Reply Good karma Bad karma+1 vote
altercuca Author
altercuca

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

Reply Good karma+1 vote
CECZI
CECZI

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?

Reply Good karma Bad karma+1 vote
Th3darkfunk
Th3darkfunk

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

Reply Good karma Bad karma+1 vote
CECZI
CECZI

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?

Reply Good karma Bad karma+1 vote
altercuca Author
altercuca

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

Reply Good karma+2 votes
broken_teeth123
broken_teeth123

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

Reply Good karma Bad karma+1 vote
CECZI
CECZI

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

Reply Good karma Bad karma+1 vote
Guest
Guest

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

Guest
Guest

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

connaito
connaito

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

Reply Good karma Bad karma+1 vote
Guest
Guest

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

unnAMD
unnAMD

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

Reply Good karma Bad karma+1 vote
Guest
Guest

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

Guest
Guest

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

SoldierGSM
SoldierGSM

How come the lights won't show in my map?

I put a light ent. down and the light wont some up

HELP!

Reply Good karma Bad karma+2 votes
Half-Rats
Half-Rats

Halloo! When you go to "Run" the map, options will appear - check the box next to "Normal" under the section that reads "Run RAD".

Reply Good karma Bad karma+1 vote
Post a comment

You are not logged in, your comment will be anonymous unless you join the community. Or sign in with your social account:

Tutorial
Browse
Tutorials
Share
Related Games
Counter-Strike
Counter-Strike First Person Shooter
Counter-Strike: Condition Zero
Counter-Strike: Condition Zero First Person Shooter
Half-Life
Half-Life First Person Shooter
Half-Life: Opposing Force
Half-Life: Opposing Force First Person Shooter
Related Engines
GoldSource
GoldSource Commercial
Related Groups
Gearbox Software
Gearbox Software Developer
Sierra Entertainment
Sierra Entertainment Developer & Publisher
Valve
Valve Developer & Publisher
Vivendi
Vivendi Developer & Publisher