Setting up Hammer for 1.6/Steam by Mobiltune

Okay, this tutorial will show you how to update your pathnames and some other extra bits so Hammer will be setup for Steam and CS 1.6. This mostly consists of updating pathnames and parameters and adding the 1.6 fgd.


1.Preparation
   First, we probably should download the 1.6 fgd. It is not necessary, but if you want to use the new entities like env_rain, you might want it. You can download it here at Tommy14's site. Unzip this fgd, and move it here,or something like this:
"C:\Program Files\Valve Hammer Editor\fgd\counter-strike"
The actual location of the VHE folder may vary depending on where you installed VHE. This is the default value.
Next, hopefully you never uninstalled CS 1.5, or atleast made a back up copy of your cstrike folder, because in steam, all the texture wads are locked up in .gcf files, so we can't access them. What you need to do is copy all the .wads into your steam Cstrike folder, which is by default:
"C:\Program Files\Steam\SteamApps\[[email protected]]\counter-strike\cstrike"
If you don't have these files, and most notable don't have the Half-life.wad, I truly pain for you. You need to either reinstall, CS or HL, and copy the wad, (then you may unistall if you so choose), or your other option is to download the HL dedicated server files, which also contain the Half-Life.wad

2. Game Configurations Tab
   Open VHE or WC and go to Tools on the top menu bar. Under Tools, click Options, and the options window should open up. Click the Game Configurations tab. The Configuration should be set to CS, if it is not click edit, then click add, and type CS.
Now on to Game Data Files. Whatever fgd you have there, select it and hit remove. Now click Add, and browse to the 1.6 fgd (or your original fgd) we just added.    Now the other stuff her is either unchangeable or just a preference, until we get to Game Executable Directory. Set the Game Executable Directory should be like this:
"C:\Program Files\Steam\SteamApps\[[email protected]]\counter-strike"
Next is the Mod Directory, which should be like this:
"C:\Program Files\Steam\SteamApps\[[email protected]]\counter-strike\cstrike"
Now onto the Game Directory which we will set the same as Game Executable Directory:
"C:\Program Files\Steam\SteamApps\[email protected]\counter-strike"
Lastly, we have the RMF Directory. Now this actually doesn't really matter. It is just simply the place where your map base files, the RMF's, are stored. This could be a folder in my documents, or you could used the supplied folder with Hammer. If you want to use Hammer's provided folder, the RMF Directory should be set like this:
"C:\Program Files\Valve Hammer Editor\maps"

Click here for a screenshot of my tab.

There, finally, the Game Configurations tab is all set.

3.Build Programs Tab
nbsp;  OK, first, set the configuration to CS, if you did it correctly it should be a choice in the pull down menu. Next, we have Game Executable. This would be the actual game program, normally, Counter-strike.exe; however, there is a problem. We can not set Game Executable to Counter-strike.exe for 2 reasons. Foremost, CS.exe does not even exist anymore. Now, you might just think well, we can set it to HL.exe then. Wrong. The fact of the matter is, we can no longer make CS start automatically, because it is started from steam, so if we set it to HL.exe, all that happens is we get multiple steam installations (not good, one steam is enough anyway). So what I'm getting at in a very oddly drawn out way is that we leave this, Game Executable, Blank. Don't type anything there.
Right, now onto CSG executable. If you put your tools in the correct play, and you using Zoners, it will look like this:
"C:\Program Files\Valve Hammer Editor\tools\hlcsg.exe"
BSP Executable will look like this:
"C:\Program Files\Valve Hammer Editor\tools\hlbsp.exe"
VIS Executable will look like this:
"C:\Program Files\Valve Hammer Editor\tools\hlvis.exe"
And RAD Executable will look like this:
"C:\Program Files\Valve Hammer Editor\tools\hlrad.exe"
OK, last option, Place Compiled Maps in This Folder Before Running Game. This one is probably the only one that changed on this whole tab. We want our .bsp maps to go into our steam directories so we can play them right? Right, so we are going to set this value to:
"C:\Program Files\Steam\SteamApps\[[email protected]]\counter-strike\cstrike\maps"

Click here for a screenshot of my tab.

Wow, ok guys, we're almost done! 4.Textures Tab    Remember how we copied all the .wad files into the steam cstrike folder? Well, now we need to add them to Hammer. Also, if you have any .wads listed in the Texture file window, select them and hit remove. Now hit Add Wad, and browse to:
"C:\Program Files\Steam\SteamApps\[[email protected]]\counter-strike\cstrike"
Add a wad. Repeat until you add all the wads you need to make your map. (Warning: Do not add more than 8 wads. This can sometimes cause your map to have strange errors whilst compiling.).
After you finish adding your .wads, hit "Apply", then "OK" at the bottom of the Options window.


YAY! We're done, and all ready to begin mapping for Steam/CS 1.6, and use all the cool new entities like env_rain and env_snow! Hooray Hooray Hooray! I hoped my tutorial helped you, and please email me if there is anything wrong, unclear, or that simply does not work. Thank you!

*******************************************************
NOTE: I Just want to add this here: There is a way to launch CS (steam) through your compiler. I did not originally include it because I did not want any confusion, but if you think your up for this, then by all means do it!

Under the Game Configurations, set your game executable for steam.exe.
Then, hit apply, ok, and then go to File>Run (f9).

Make sure your on expert compile!
Find the $game_exe command.
Add these params: -applaunch 10 +map $file
After that you may add your other params like -dev and -console.

How it works
First, after compile, it will run the game executable to launch Steam.exe.
what -applaunch 10 does is select your actually game within steam. Applaunch 10 is Counter-Strike, therefore CS launches.
Now +map adds the command "map" to the console, then $file gets replaced with the name of the compiled .bsp. This cause "map .bsp to be entered in the console, starting a custom game.
So in conclusion, this will automatically launch steam, launch CS, starts a game, and loads your map up for you. Great eh?
Special thanks to [DNV]-Cross- whom without his combined effort, this would not have been discovered!

Hosted by www.Geocities.ws