Day of Defeat

Day of Defeat

Not enough ratings
[MAPPING] Setting up valve hammer for mapping
By LiveWire and 1 collaborators
Jack is a more recent editor that can do many more things than hammer, you might be better off using it instead of hammer.

Free version
http://jack.hlfx.ru/en/

Paid version.
https://store.steampowered.com/app/496450/JACK/


This is a tutorial about setting up valve hammer so you can create maps for Day of Defeat, in this tutorial we will update the 20+ year old compilers and update Hammer and FGD so that models are rendered which makes life much easier for placing and clipping models.
   
Award
Favorite
Favorited
Unfavorite
Download the tools
Lets start by downloading the tools we need.

Start steam
Mouse over the Libary tab, and click on tools.
Find "Half-life SDK" right click and install.
Depending on your connection this might take a while to download.



We need a few more things, there are new versions of hammer, compilers and FGD that are much better.


https://files.gamebanana.com/bitpit/dod-h35.fgd

Head over to slacker and download the following tools

Valve Hammer Editor 3.5
http://www.slackiller.com/hlprograms/hammer_testbuild04.zip


Zoner's Half-Life Tools 32 bit or 64 bit, if your not sure use the 32 bit version.

32bit version
http://www.slackiller.com/hlprograms/zhlt34x86final.zip.zip

64bit version
http://www.slackiller.com/hlprograms/zhlt34x64final.zip.rar


Updating the tools
Once the `Half-life SDK` has downloaded we need to update these tools.
The new version of hammer renders models which makes it easy to add and move things like tanks and other models in our maps.

Update Hammer

First replace the old hammer editor with a new version.

open folder C:\Program Files (x86)\Steam\SteamApps\common\Half-Life SDK\Hammer Editor
rename hammer.exe to hammer-old.exe.

Open hammer_testbuild04.zip and extract the new version of hammer to this folder.

Update FGD

For the new version of hammer to work properly we need to use a new FGD.
Place the dod-h35.fgd file to the following folder.

C:\Program Files (x86)\Steam\SteamApps\common\Half-Life SDK\Hammer Editor\fgd\day of defeat

Update compile tools

The sdk compilers are very old and as these do all the hard work we need to update them. we will be using Zhlt because they are much easier to use, but once you get going you will want to use Vluzacn's ZHLT which offers advanced features.

Open
C:\Program Files (x86)\Steam\SteamApps\common\Half-Life SDK\Hammer Editor
Add a new directory called ZHLT

Zhlt tools come in 64bit & 32 bit versions, extract the one you need to your new ZHLT folder.

C:\Program Files (x86)\Steam\SteamApps\common\Half-Life SDK\Hammer Editor\ZHLT

zhlt34x64final.zip.rar (for 64bit os)
zhlt34x86final.zip.zip (for 32 bit os)












Setting up Hammer
These settings are for 64 bit, you may need to adjust them for 32bit windows

Start hammer either by making a shourt cut to the hammer.exe or double clicking Half-life SDK in your steam libary tab.


Game configurations

Hammer will ask if you need help setting it up, click no.

You should now have the main settings menu for hammer, click the Game configurations tab

Press the top Edit button, next to the Configuration.
Click Add and type Dod-zhlt
Click ok, and then click close.



Click the Add button next to Game Data files
Select dod.fgd from C:\Program Files (x86)\Steam\SteamApps\common\Half-Life SDK\Hammer Editor\fgd\day of defeat



Click browse next to game executable and browse to our steam folder.

C:\Program Files (x86)\Steam


Set Mod directory to C:\Program Files (x86)\Steam\SteamApps\common\Half-Life\dod
set Game directory to C:\Program Files (x86)\Steam\SteamApps\common\Half-Life\dod
set Rmf directory to C:\Program Files (x86)\Steam\SteamApps\common\Half-Life SDK\Map Files



Build Programs

click the Build Programs tab

In game executable type steam.exe

Use the following paths, but adjust for 32bit os.
Csg executable =

C:\Program Files (x86)\Steam\SteamApps\common\Half-Life SDK\Hammer Editor\ZHLT\hlcsg.exe

Bsp executable =
C:\Program Files (x86)\Steam\SteamApps\common\Half-Life SDK\Hammer Editor\ZHLT\hlbsp.exe

Vis executable =
C:\Program Files (x86)\Steam\SteamApps\common\Half-Life SDK\Hammer Editor\ZHLT\hlvis.exe

Rad executable =
C:\Program Files (x86)\Steam\SteamApps\common\Half-Life SDK\Hammer Editor\ZHLT\hlrad.exe

"Place compiled maps" =
C:\Program Files (x86)\Steam\SteamApps\common\Half-Life\dod\maps



Adding textures

Before you start you need to add a few textures, we will just add a couple of common wads.
sclick the Textures tab
Click add wad
Select and add

halflife.wad (C:\Program Files (x86)\Steam\SteamApps\common\Half-Life\valve)
hlbasics.wad (C:\Program Files (x86)\Steam\SteamApps\common\Half-Life\dod)

Run map options

To make things easy we will add a few extra settings, click the run map icon its top right in hammer (or press F9)
Click expert

This is a little cheat to make things easy for you, Adding nowadtextures will put all used textures into your map, but once you know your way around use wadinclude instead of nowadtextures to speed up downloading of your maps.

Heighlight Csg and add -nowadtextures to the parameters



If you want to have dod start when you map is compiled then add the following to game_exe
-applaunch 30, most people uncheck this and run dod though steam and keep it running in the background.





Thats it you should be now ready to start mapping, have a look on youtube for mapping tutorials.





9 Comments
Castle Jul 21, 2022 @ 2:08pm 
Sorry I had not posted anything then because i hoped it being in my D: drive would be the issue and I wouldn't have to bother the subreddit. I've made a post now with the DoD console and compile window text included. Its quite long so if you do look at it and find the problem please let me know. My name on reddit is OtisGod11. Thanks again
LiveWire  [author] Jul 21, 2022 @ 10:28am 
It wont matter so long as all the tools point to the correct place. Where did you post I can`t see it?
Castle Jul 20, 2022 @ 1:41pm 
Alright thanks again. By the way before i went and made a post I was wondering if I could ask whether or not having Half life and the SDK in my D: drive would create this problem? Or does it not matter. Thanks again
LiveWire  [author] Jul 20, 2022 @ 1:28pm 
If it still wont work post in the forum, copy and paste the text from your compile (looks like text in pic below)
https://developer.valvesoftware.com/wiki/File:Hammer_compile_process_window.jpg
Castle Jul 20, 2022 @ 1:23pm 
Ok thanks for the help and making the guide :steamthumbsup:
LiveWire  [author] Jul 20, 2022 @ 1:03pm 
Hi Otis check that your compiled folder reads as follows

"Place compiled maps" =
C:\Program Files (x86)\Steam\SteamApps\common\Half-Life\dod\maps


If you still have problems make a post on the DOD forum, or https://www.reddit.com/r/hammer/
Castle Jul 20, 2022 @ 5:04am 
This seems to work but im not sure where to save my maps as when i go to compile them and run it hammer tells me it cant find the specified file. Where do i save the maps?
stone cold steve austin Jun 12, 2021 @ 6:47pm 
i followed this....i am big dumb dumb i caint do it right, probably doing something wrong :steamthumbsup:
gangster Jan 12, 2021 @ 9:21am 
Thank you guys.