GoldSource mapping in Hammer 4.x: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Fixed a typo: hlds to hlbs)
 
(28 intermediate revisions by 8 users not shown)
Line 1: Line 1:
Although it's not easy to set up, it is possible to map for any GoldSource game using Hammer 4.x
{{Orphan|date=January 2024}}
All you need to do is download the appropriate .fgd files and modify your GameConfig.txt file (either Episode One or Orange Box; it doesn't matter).
Using the GameInfo.txt from below will allow you to load and view Half-Life .mdl files (from Half-Life Source) when making your map.


To edit your GameConfig.txt go to c:\program files\steam\steamapps\<username>\sourcesdk\bin\ep1\bin\ or c:\program files\steam\steamapps\<username>\sourcesdk\bin\orangebox\bin\ and open it with your text editor of choice.
Although it's not easy to set up, it is possible to map for any {{goldsrc|3.1}} game using {{hammer4|4}}
You only need to download the appropriate .fgd files and modify your GameConfig.txt file (either Episode One or Orange Box; it doesn't matter).
Using the GameInfo.txt below will make Hammer use {{hls|4}} models and textures.
 
To edit your {{file|GameConfig|txt}} go to {{path|C:\program files\steam\steamapps\<username>\sourcesdk\bin\ep1\bin\}} or {{path|C:\program files\steam\steamapps\<username>\sourcesdk\bin\orangebox\bin\}} and open it with your text editor of choice.


Read the section below for a better understanding of the structure of GameConfig.txt
Read the section below for a better understanding of the structure of GameConfig.txt
{{warning|Using this setup will cause certain functions in Hammer to work improperly. It is a better idea to use a dedicated {{goldsrc|3.1}} editor like {{jack|4}} or {{sledge|4}}.}}
{{note| {{hammer4|4.1}} does not render textures from {{hl|3.1}} like .wad or .spr files.}}


== Modifiying GameConfig.txt ==
== Modifiying GameConfig.txt ==


Add any of these into your GameConfig.txt file of choice. Be sure to change <username> to your Steam username.
Add any of these to your [[GameConfig.txt]] file of choice. Be sure to change <username> to your Steam username.
Also, make sure all the paths are correct for your computer.
Also, make sure all the paths are correct for your computer.


Counter-Strike
{{Note|{{goldsrc|3.1}} maps are compiled by four tools, but {{src|3.1}} maps are compiled by only three tools. In Hammer 4.1, you will not be able to compile correctly with the setup in these game configurations, but they can be added manually in expert settings by adding executable options (for more information see [http://developer.valvesoftware.com/wiki/Hammer_Run_Map_Expert Compiling Map In Expert Mode]) and be compiled correctly by adding CSG, BSP, VIS, and RAD in that order, Zoners Half-Life Compile Tools are recommended for compiling {{goldsrc|3.1}} maps.}}
 
==={{cs|4}}===
<pre>
"Counter-Strike"
{
"GameDir" "c:\program files\steam\steamapps\<username>\counter-strike\cstrike"
"hammer"
{
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife-cs.fgd"
"TextureFormat" "2"
"MapFormat" "3"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"GameExe" "c:\program files\steam\steamapps\<username>\counter-strike\hl.exe"
"DefaultSolidEntity" "func_wall"
"DefaultPointEntity" "info_player_start"
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
"GameExeDir" "c:\program files\steam\steamapps\<username>\counter-strike"
"MapDir" "c:\program files\steam\steamapps\<username>\counter-strike\cstrike\maps"
"BSPDir" "c:\program files\steam\steamapps\<username>\counter-strike\cstrike\maps"
"CordonTexture" "sky"
"MaterialExcludeCount" "0"
}
}
</pre>
 
==={{cscz|4}}===
<pre>
<pre>
"Counter-Strike"
"Condition Zero"
{
{
"GameDir" "c:\program files\steam\steamapps\<username>\counter-strike\cstrike"
"GameDir" "c:\program files\steam\steamapps\<username>\condition zero\czero"
"hammer"
"hammer"
{
{
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife-cs.fgd"
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife-cs.fgd"
"TextureFormat" "2"
"TextureFormat" "2"
"MapFormat" "3"
"MapFormat" "3"
"DefaultTextureScale" "0.250000"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"DefaultLightmapScale" "16"
"GameExe" "c:\program files\steam\steamapps\<username>\counter-strike\hl.exe"
"GameExe" "c:\program files\steam\steamapps\<username>\condition zero\hl.exe"
"DefaultSolidEntity" "func_detail"
"DefaultSolidEntity" "func_wall"
"DefaultPointEntity" "info_player_start"
"DefaultPointEntity" "info_player_start"
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
"GameExeDir" "c:\program files\steam\steamapps\<username>\counter-strike"
"GameExeDir" "c:\program files\steam\steamapps\<username>\condition zero"
"MapDir" "c:\program files\steam\steamapps\<username>\counter-strike\cstrike\maps"
"MapDir" "c:\program files\steam\steamapps\<username>\condition zero\czero\maps"
"BSPDir" "c:\program files\steam\steamapps\<username>\counter-strike\cstrike\maps"
"BSPDir" "c:\program files\steam\steamapps\<username>\condition zero\czero\maps"
"CordonTexture" "tools\toolsskybox"
"CordonTexture" "sky"
"MaterialExcludeCount" "0"
"MaterialExcludeCount" "0"
}
}
}
}
</pre>
</pre>


Condition Zero
==={{czds|4}}===
<pre>
<pre>
"Condition Zero"
"Condition Zero Deleted Scenes"
{
{
"GameDir" "c:\program files\steam\steamapps\<username>\condition zero\czero"
"GameDir" "c:\program files\steam\steamapps\<username>\condition zero deleted scenes\czeror"
"hammer"
"hammer"
{
{
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife-cs.fgd"
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\condition_zero_deleted_scenes.fgd"
"TextureFormat" "2"
"TextureFormat" "2"
"MapFormat" "3"
"MapFormat" "3"
"DefaultTextureScale" "0.250000"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"DefaultLightmapScale" "16"
"GameExe" "c:\program files\steam\steamapps\<username>\condition zero\hl.exe"
"GameExe" "c:\program files\steam\steamapps\<username>\condition zero deleted scenes\hl.exe"
"DefaultSolidEntity" "func_detail"
"DefaultSolidEntity" "func_wall"
"DefaultPointEntity" "info_player_start"
"DefaultPointEntity" "info_player_start"
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
"GameExeDir" "c:\program files\steam\steamapps\<username>\condition zero"
"GameExeDir" "c:\program files\steam\steamapps\<username>\condition zero deleted scenes"
"MapDir" "c:\program files\steam\steamapps\<username>\condition zero\czero\maps"
"MapDir" "c:\program files\steam\steamapps\<username>\condition zero deleted scenes\czeror\maps"
"BSPDir" "c:\program files\steam\steamapps\<username>\condition zero\czero\maps"
"BSPDir" "c:\program files\steam\steamapps\<username>\condition zero deleted scenes\czeror\maps"
"CordonTexture" "tools\toolsskybox"
"CordonTexture" "sky"
"MaterialExcludeCount" "0"
"MaterialExcludeCount" "0"
}
}
}
}
</pre>
</pre>


Condition Zero Deleted Scenes
==={{dod|4}}===
<pre>
<pre>
"Condition Zero Deleted Scenes"
"Day of Defeat"
{
{
"GameDir" "c:\program files\steam\steamapps\<username>\condition zero deleted scenes\czeror"
"GameDir" "c:\program files\steam\steamapps\<username>\day of defeat\dod"
"hammer"
"hammer"
{
{
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife-cs.fgd"
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\dod.fgd"
"TextureFormat" "2"
"TextureFormat" "2"
"MapFormat" "3"
"MapFormat" "3"
"DefaultTextureScale" "0.250000"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"DefaultLightmapScale" "16"
"GameExe" "c:\program files\steam\steamapps\<username>\condition zero deleted scenes\hl.exe"
"GameExe" "c:\program files\steam\steamapps\<username>\day of defeat\hl.exe"
"DefaultSolidEntity" "func_detail"
"DefaultSolidEntity" "func_wall"
"DefaultPointEntity" "info_player_start"
"DefaultPointEntity" "info_player_allies"
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
"GameExeDir" "c:\program files\steam\steamapps\<username>\condition zero deleted scenes"
"GameExeDir" "c:\program files\steam\steamapps\<username>\day of defeat"
"MapDir" "c:\program files\steam\steamapps\<username>\condition zero deleted scenes\czeror\maps"
"MapDir" "c:\program files\steam\steamapps\<username>\day of defeat\dod\maps"
"BSPDir" "c:\program files\steam\steamapps\<username>\condition zero deleted scenes\czeror\maps"
"BSPDir" "c:\program files\steam\steamapps\<username>\day of defeat\dod\maps"
"CordonTexture" "tools\toolsskybox"
"CordonTexture" "tools\sky"
"MaterialExcludeCount" "0"
"MaterialExcludeCount" "0"
}
}
}
}
</pre>
</pre>


Day of Defeat
==={{tfc|4}}===
<pre>
<pre>
"Day of Defeat"
"Team Fortress Classic"
{
{
"GameDir" "c:\program files\steam\steamapps\<username>\day of defeat\dod"
"GameDir" "c:\program files\steam\steamapps\<username>\team fortress classic\tfc"
"hammer"
"hammer"
{
{
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\dod.fgd"
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife-tfc.fgd"
"TextureFormat" "2"
"TextureFormat" "2"
"MapFormat" "3"
"MapFormat" "3"
"DefaultTextureScale" "0.250000"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"DefaultLightmapScale" "16"
"GameExe" "c:\program files\steam\steamapps\<username>\day of defeat\hl.exe"
"GameExe" "c:\program files\steam\steamapps\<username>\team fortress classic\hl.exe"
"DefaultSolidEntity" "func_detail"
"DefaultSolidEntity" "func_wall"
"DefaultPointEntity" "info_player_allies"
"DefaultPointEntity" "info_player_teamspawn"
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
"GameExeDir" "c:\program files\steam\steamapps\<username>\day of defeat"
"GameExeDir" "c:\program files\steam\steamapps\<username>\team fortress classic"
"MapDir" "c:\program files\steam\steamapps\<username>\day of defeat\dod\maps"
"MapDir" "c:\program files\steam\steamapps\<username>\team fortress classic\tfc\maps"
"BSPDir" "c:\program files\steam\steamapps\<username>\day of defeat\dod\maps"
"BSPDir" "c:\program files\steam\steamapps\<username>\team fortress classic\tfc\maps"
"CordonTexture" "tools\toolsskybox"
"CordonTexture" "sky"
"MaterialExcludeCount" "0"
"MaterialExcludeCount" "0"
}
}
}
}
</pre>
</pre>


Team Fortress Classic
===[[Gunman Chronicles]]===
<pre>
<pre>
"Team Fortress Classic"
"Gunman Chronicles"
{
{
"GameDir" "c:\program files\steam\steamapps\<username>\team fortress classic\tfc"
"GameDir" "c:\program files\steam\steamapps\<username>\half-life\rewolf"
"hammer"
"hammer"
{
{
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife-tfc.fgd"
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\gunman.fgd"
"TextureFormat" "2"
"TextureFormat" "2"
"MapFormat" "3"
"MapFormat" "3"
"DefaultTextureScale" "0.250000"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"DefaultLightmapScale" "16"
"GameExe" "c:\program files\steam\steamapps\<username>\team fortress classic\hl.exe"
"GameExe" "c:\program files\steam\steamapps\<username>\half-life\hl.exe"
"DefaultSolidEntity" "func_detail"
"DefaultSolidEntity" "func_wall"
"DefaultPointEntity" "info_player_teamspawn"
"DefaultPointEntity" "info_player_start"
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
"GameExeDir" "c:\program files\steam\steamapps\<username>\team fortress classic"
"GameExeDir" "c:\program files\steam\steamapps\<username>\half-life"
"MapDir" "c:\program files\steam\steamapps\<username>\team fortress classic\tfc\maps"
"MapDir" "c:\program files\steam\steamapps\<username>\half-life\rewolf\maps"
"BSPDir" "c:\program files\steam\steamapps\<username>\team fortress classic\tfc\maps"
"BSPDir" "c:\program files\steam\steamapps\<username>\half-life\rewolf\maps"
"CordonTexture" "tools\toolsskybox"
"CordonTexture" "sky"
"MaterialExcludeCount" "0"
"MaterialExcludeCount" "0"
}
}
}
}
</pre>
</pre>


Half-Life
==={{hl|4}}===
<pre>
<pre>
"Half-Life"
"Half-Life"
{
{
"GameDir" "c:\program files\steam\steamapps\<username>\half-life\valve"
"GameDir" "c:\program files\steam\steamapps\<username>\half-life\valve"
"hammer"
"hammer"
{
{
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife.fgd"
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife.fgd"
"TextureFormat" "2"
"TextureFormat" "2"
"MapFormat" "3"
"MapFormat" "3"
"DefaultTextureScale" "0.250000"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"DefaultLightmapScale" "16"
"GameExe" "c:\program files\steam\steamapps\<username>\half-life\hl.exe"
"GameExe" "c:\program files\steam\steamapps\<username>\half-life\hl.exe"
"DefaultSolidEntity" "func_detail"
"DefaultSolidEntity" "func_wall"
"DefaultPointEntity" "info_player_start"
"DefaultPointEntity" "info_player_start"
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
"GameExeDir" "c:\program files\steam\steamapps\<username>\half-life"
"GameExeDir" "c:\program files\steam\steamapps\<username>\half-life"
"MapDir" "c:\program files\steam\steamapps\<username>\half-life\valve\maps"
"MapDir" "c:\program files\steam\steamapps\<username>\half-life\valve\maps"
"BSPDir" "c:\program files\steam\steamapps\<username>\half-life\valve\maps"
"BSPDir" "c:\program files\steam\steamapps\<username>\half-life\valve\maps"
"CordonTexture" "tools\toolsskybox"
"CordonTexture" "sky"
"MaterialExcludeCount" "0"
"MaterialExcludeCount" "0"
}
}
}
}
</pre>
</pre>


Half-Life Blue Shift
==={{hlbs|4}}===
<pre>
<pre>
"Half-Life: Blue Shift"
"Half-Life: Blue Shift"
{
{
"GameDir" "c:\program files\steam\steamapps\<username>\half-life blue shift\bshift"
"GameDir" "c:\program files\steam\steamapps\<username>\half-life blue shift\bshift"
"hammer"
"hammer"
{
{
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife-bs_WC33.fgd"
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife-bs_WC33.fgd"
"TextureFormat" "2"
"TextureFormat" "2"
"MapFormat" "3"
"MapFormat" "3"
"DefaultTextureScale" "0.250000"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"DefaultLightmapScale" "16"
"GameExe" "c:\program files\steam\steamapps\<username>\half-life blue shift\hl.exe"
"GameExe" "c:\program files\steam\steamapps\<username>\half-life blue shift\hl.exe"
"DefaultSolidEntity" "func_detail"
"DefaultSolidEntity" "func_wall"
"DefaultPointEntity" "info_player_start"
"DefaultPointEntity" "info_player_start"
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
"GameExeDir" "c:\program files\steam\steamapps\<username>\half-life blue shift"
"GameExeDir" "c:\program files\steam\steamapps\<username>\half-life blue shift"
"MapDir" "c:\program files\steam\steamapps\<username>\half-life blue shift\bshift\maps"
"MapDir" "c:\program files\steam\steamapps\<username>\half-life blue shift\bshift\maps"
"BSPDir" "c:\program files\steam\steamapps\<username>\half-life blue shift\bshift\maps"
"BSPDir" "c:\program files\steam\steamapps\<username>\half-life blue shift\bshift\maps"
"CordonTexture" "tools\toolsskybox"
"CordonTexture" "sky"
"MaterialExcludeCount" "0"
"MaterialExcludeCount" "0"
}
}
}
}
</pre>
</pre>


Half-Life Opposing Force
==={{hlop4|4}}===
<pre>
<pre>
"Half-Life: Opposing Force"
"Half-Life: Opposing Force"
{
{
"GameDir" "c:\program files\steam\steamapps\<username>\opposing force\gearbox"
"GameDir" "c:\program files\steam\steamapps\<username>\opposing force\gearbox"
"hammer"
"hammer"
{
{
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife-op4_wc33.fgd"
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife-op4_wc33.fgd"
"TextureFormat" "2"
"TextureFormat" "2"
"MapFormat" "3"
"MapFormat" "3"
"DefaultTextureScale" "0.250000"
"DefaultTextureScale" "0.250000"
"DefaultLightmapScale" "16"
"DefaultLightmapScale" "16"
"GameExe" "c:\program files\steam\steamapps\<username>\opposing force\hl.exe"
"GameExe" "c:\program files\steam\steamapps\<username>\opposing force\hl.exe"
"DefaultSolidEntity" "func_detail"
"DefaultSolidEntity" "func_wall"
"DefaultPointEntity" "info_player_start"
"DefaultPointEntity" "info_player_start"
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
"GameExeDir" "c:\program files\steam\steamapps\<username>\opposing force"
"GameExeDir" "c:\program files\steam\steamapps\<username>\opposing force"
"MapDir" "c:\program files\steam\steamapps\<username>\opposing force\gearbox\maps"
"MapDir" "c:\program files\steam\steamapps\<username>\opposing force\gearbox\maps"
"BSPDir" "c:\program files\steam\steamapps\<username>\opposing force\gearbox\maps"
"BSPDir" "c:\program files\steam\steamapps\<username>\opposing force\gearbox\maps"
"CordonTexture" "tools\toolsskybox"
"CordonTexture" "sky"
"MaterialExcludeCount" "0"
"MaterialExcludeCount" "0"
}
}
}
}
</pre>
</pre>


Line 232: Line 266:
"Configs"
"Configs"
{
{
"Games"
"Games"
{
{
</pre>
</pre>
and
and
<pre>
<pre>
}
}
"SDKVersion" "3"
"SDKVersion" "3"
}
}
</pre>
</pre>
Line 248: Line 282:


<pre>
<pre>
"Modname"
"Modname"
{
{
"GameDir" "c:\program files\steam\steamapps\<username>\half-life\modname"  // path to the mod directory
"GameDir" "c:\program files\steam\steamapps\<username>\half-life\modname"  // path to the mod directory
"hammer"
"hammer"
{
{
"GameData0" "c:\modname.fgd"  // path to .fgd file
"GameData0" "c:\modname.fgd"  // path to .fgd file
"TextureFormat" "2"  // leave this as 2: it tells Hammer to use .wad textures instead of .vtf
"TextureFormat" "2"  // leave this as 2; it tells Hammer to use .wad files instead of .vtf
"MapFormat" "3" // leave this as 3: it tells Hammer to use .rmf map files instead of .vmf
"MapFormat" "3" // leave this as 3: it tells Hammer to use .rmf files instead of .vmf
"DefaultTextureScale" "0.250000"  // ??? (leave it)
"DefaultTextureScale" "0.250000"  // ??? (leave it)
"DefaultLightmapScale" "16"  // ??? (leave it)
"DefaultLightmapScale" "16"  // ??? (leave it)
"GameExe" "c:\program files\steam\steamapps\<username>\half-life\hl.exe"  // path to Half-Life executable
"GameExe" "c:\program files\steam\steamapps\<username>\half-life\hl.exe"  // path to Half-Life executable
"DefaultSolidEntity" "func_detail"  // ???
"DefaultSolidEntity" "func_wall"  // should be something else?
"DefaultPointEntity" "info_player_start"  // player start entity
"DefaultPointEntity" "info_player_start"  // player start entity
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"  // set this to whatever because Hammer doesn't have support for the CSG process; you'll have to compile with a .bat file
"BSP" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"  // doesn't need to be set; compile with a .bat file
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"  // set this to whatever because Hammer doesn't have support for the CSG process; you'll have to compile with a .bat file
"Vis" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"  // doesn't need to be set; compile with a .bat file
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"  // set this to whatever because Hammer doesn't have support for the CSG process; you'll have to compile with a .bat file
"Light" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"  // doesn't need to be set; compile with a .bat file
"GameExeDir" "c:\program files\steam\steamapps\<username>\half-life"  // leave it because mods won't use any othe executable
"GameExeDir" "c:\program files\steam\steamapps\<username>\half-life"  // leave it because mods won't use any othe executable
"MapDir" "c:\program files\steam\steamapps\<username>\half-life\modname\maps"  // directory to load maps from
"MapDir" "c:\program files\steam\steamapps\<username>\half-life\modname\maps"  // directory to load maps from
"BSPDir" "c:\program files\steam\steamapps\<username>\half-life\valve\maps"  // directory to place compiled maps in: not needed because compilation needs to be donw manually
"BSPDir" "c:\program files\steam\steamapps\<username>\half-life\valve\maps"  // directory to place compiled maps in; not needed because compilation needs to be done manually
"CordonTexture" "tools\toolsskybox" // leave it (it doesn't matter)
"CordonTexture" "sky"  
"MaterialExcludeCount" "0"  // ??? (leave it )
"MaterialExcludeCount" "0"  // ??? (leave it )
}
}
}
}
</pre>
</pre>


== GameInfo.txt ==
== GameInfo.txt ==


Hammer will look for a GameInfo.txt file in the game directory it is working from.
Hammer 4.x will look for a [[GameInfo.txt]] file in the game directory it is working from, however GoldSource engine games do not have [[GameInfo.txt]] files.


Paste this into a gameinfo.txt in your game directory (steamapps\counter-strike\cstrike\, steamapps\day of defeat\dod\ etc)
Paste this into a [[GameInfo.txt]] in your game directory (steamapps\counter-strike\cstrike\, steamapps\day of defeat\dod\ etc)
<pre
 
{{note|If using the Orange Box version of hammer, replace the SteamAppId with 218.}}
<pre>


"GameInfo"
"GameInfo"
Line 288: Line 324:
FileSystem
FileSystem
{
{
SteamAppId 280 // This will mount all the GCFs we need (240=CS:S, 220=HL2).
SteamAppId 280 // Half-Life Source - if you don't own it, set this to something else
ToolsAppId 211 // Tools will load this (ie: source SDK caches) to get things like materials\debug, materials\editor, etc.
ToolsAppId 211
//
// The code that loads this file automatically does a few things here:
//
// 1. For each "Game" search path, it adds a "GameBin" path, in <dir>\bin
// 2. For each "Game" search path, it adds another "Game" path in front of it with _<langage> at the end.
//    For example: c:\hl2\cstrike on a french machine would get a c:\hl2\cstrike_french path added to it.
// 3. For the first "Game" search path, it adds a search path called "MOD".
// 4. For the first "Game" search path, it adds a search path called "DEFAULT_WRITE_PATH".
//
//
// Search paths are relative to the base directory, which is where hl2.exe is found.
//
// |gameinfo_path| points at the directory where gameinfo.txt is.
// We always want to mount that directory relative to gameinfo.txt, so
// people can mount stuff in c:\mymod, and the main game resources are in
// someplace like c:\program files\valve\steam\steamapps\<username>\half-life 2.
//
SearchPaths
SearchPaths
{
{
Line 318: Line 336:
}
}
</pre>
</pre>


== Forge Game Data ==
== Forge Game Data ==


Hammer 3.x .fgd files should work in Hammer 4.x: halflife.fgd has been tested and it does work.
Hammer 3.x .fgd files will work in Hammer 4.x
Look below for links to .fgd files.
Look below for links to .fgd files.


If you are going to use the configurations from above, copy your .fgd files to c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\
If you are going to use the configurations from above, copy your .fgd files to c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\


== Bugs ==
==See also==
 
* [[Day of Defeat.fgd|Day of Defeat's .fgd]]
* Hammer 4.x will probably not load any .spr referenced by the .fgd file.
* [[Half-Life.fgd|Half-Life's .fgd]]
* Hammer becomes buggy for some reason.
* [[halflife-cs.fgd|Counter-Strike's .fgd]]
* [[Condition_Zero_Deleted_Scenes.fgd|Counter-Strike: Condition Zero Deleted Scenes's .fgd]]
* [[Hl_bs.fgd|Half-Life: Blue shift's .fgd]]
* [[Hl_op4.fgd|Half-Life: Opposing Force's .fgd]]


== External Links ==
== External Links ==
 
* [http://cid-1bcc5bd24a241de4.skydrive.live.com/self.aspx/rewolf/gunman.fgd gunman.fgd]
* [http://files.filefront.com/dodfgd/;11056054;/fileinfo.html dod.fgd]
* [http://files.filefront.com/halflifefgd/;11056053;/fileinfo.html halflife.fgd]
* [http://files.filefront.com/halflife+csfgd/;13017382;/fileinfo.html halflife-cs.fgd]
* [http://files.filefront.com/halflife+bs+WC33fgd/;13017379;/fileinfo.html halflife-bs_WC33.fgd]
* [http://files.filefront.com/halflife+op4+wc33fgd/;13017380;/fileinfo.html halflife-op4_wc33.fgd]
* [http://files.filefront.com/halflife+op4+fgd+3xzip/;10735414;/fileinfo.html Opposing Force .fgd file]
* [http://files.filefront.com/hlbs+sdkzip/;10181849;/fileinfo.html Half-Life Blue Shift SDK] - contains .fgd file
* [http://files.filefront.com/hlbs+sdkzip/;10181849;/fileinfo.html Half-Life Blue Shift SDK] - contains .fgd file
* [http://files.filefront.com/OpForCTFdevzip/;10181832;/fileinfo.html Opposing Force CTF SDK] - contains .fgd file
* [http://files.filefront.com/OpForCTFdevzip/;10181832;/fileinfo.html Opposing Force CTF SDK] - contains .fgd file

Latest revision as of 09:24, 18 June 2024

Although it's not easy to set up, it is possible to map for any GoldSrc game using Hammer Hammer 4.x You only need to download the appropriate .fgd files and modify your GameConfig.txt file (either Episode One or Orange Box; it doesn't matter). Using the GameInfo.txt below will make Hammer use Half-Life: Source Half-Life: Source models and textures.

To edit your 🖿GameConfig.txt go to 🖿C:\program files\steam\steamapps\<username>\sourcesdk\bin\ep1\bin\ or 🖿C:\program files\steam\steamapps\<username>\sourcesdk\bin\orangebox\bin\ and open it with your text editor of choice.

Read the section below for a better understanding of the structure of GameConfig.txt

Warning.pngWarning:Using this setup will cause certain functions in Hammer to work improperly. It is a better idea to use a dedicated GoldSrc editor like J.A.C.K. J.A.C.K. or Sledge Sledge.
Note.pngNote: Hammer Hammer 4.x does not render textures from Half-Life like .wad or .spr files.

Modifiying GameConfig.txt

Add any of these to your GameConfig.txt file of choice. Be sure to change <username> to your Steam username. Also, make sure all the paths are correct for your computer.

Note.pngNote:GoldSrc maps are compiled by four tools, but Source maps are compiled by only three tools. In Hammer 4.1, you will not be able to compile correctly with the setup in these game configurations, but they can be added manually in expert settings by adding executable options (for more information see Compiling Map In Expert Mode) and be compiled correctly by adding CSG, BSP, VIS, and RAD in that order, Zoners Half-Life Compile Tools are recommended for compiling GoldSrc maps.

Counter-Strike Counter-Strike

"Counter-Strike"
{
	"GameDir"		"c:\program files\steam\steamapps\<username>\counter-strike\cstrike"
	"hammer"
	{
		"GameData0"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife-cs.fgd"
		"TextureFormat"		"2"
		"MapFormat"		"3"
		"DefaultTextureScale"		"0.250000"
		"DefaultLightmapScale"		"16"
		"GameExe"		"c:\program files\steam\steamapps\<username>\counter-strike\hl.exe"
		"DefaultSolidEntity"		"func_wall"
		"DefaultPointEntity"		"info_player_start"
		"BSP"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
		"Vis"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
		"Light"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
		"GameExeDir"		"c:\program files\steam\steamapps\<username>\counter-strike"
		"MapDir"		"c:\program files\steam\steamapps\<username>\counter-strike\cstrike\maps"
		"BSPDir"		"c:\program files\steam\steamapps\<username>\counter-strike\cstrike\maps"
		"CordonTexture"		"sky"
		"MaterialExcludeCount"		"0"
	}
}

Counter-Strike: Condition Zero Counter-Strike: Condition Zero

"Condition Zero"
{
	"GameDir"		"c:\program files\steam\steamapps\<username>\condition zero\czero"
	"hammer"
	{
		"GameData0"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife-cs.fgd"
		"TextureFormat"		"2"
		"MapFormat"		"3"
		"DefaultTextureScale"		"0.250000"
		"DefaultLightmapScale"		"16"
		"GameExe"		"c:\program files\steam\steamapps\<username>\condition zero\hl.exe"
		"DefaultSolidEntity"		"func_wall"
		"DefaultPointEntity"		"info_player_start"
		"BSP"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
		"Vis"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
		"Light"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
		"GameExeDir"		"c:\program files\steam\steamapps\<username>\condition zero"
		"MapDir"		"c:\program files\steam\steamapps\<username>\condition zero\czero\maps"
		"BSPDir"		"c:\program files\steam\steamapps\<username>\condition zero\czero\maps"
		"CordonTexture"		"sky"
		"MaterialExcludeCount"		"0"
	}
}

Condition Zero Deleted Scenes Condition Zero Deleted Scenes

"Condition Zero Deleted Scenes"
{
	"GameDir"		"c:\program files\steam\steamapps\<username>\condition zero deleted scenes\czeror"
	"hammer"
	{
		"GameData0"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\condition_zero_deleted_scenes.fgd"
		"TextureFormat"		"2"
		"MapFormat"		"3"
		"DefaultTextureScale"		"0.250000"
		"DefaultLightmapScale"		"16"
		"GameExe"		"c:\program files\steam\steamapps\<username>\condition zero deleted scenes\hl.exe"
		"DefaultSolidEntity"		"func_wall"
		"DefaultPointEntity"		"info_player_start"
		"BSP"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
		"Vis"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
		"Light"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
		"GameExeDir"		"c:\program files\steam\steamapps\<username>\condition zero deleted scenes"
		"MapDir"		"c:\program files\steam\steamapps\<username>\condition zero deleted scenes\czeror\maps"
		"BSPDir"		"c:\program files\steam\steamapps\<username>\condition zero deleted scenes\czeror\maps"
		"CordonTexture"		"sky"
		"MaterialExcludeCount"		"0"
	}
}

Day of Defeat Day of Defeat

"Day of Defeat"
{
	"GameDir"		"c:\program files\steam\steamapps\<username>\day of defeat\dod"
	"hammer"
	{
		"GameData0"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\dod.fgd"
		"TextureFormat"		"2"
		"MapFormat"		"3"
		"DefaultTextureScale"		"0.250000"
		"DefaultLightmapScale"		"16"
		"GameExe"		"c:\program files\steam\steamapps\<username>\day of defeat\hl.exe"
		"DefaultSolidEntity"		"func_wall"
		"DefaultPointEntity"		"info_player_allies"
		"BSP"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
		"Vis"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
		"Light"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
		"GameExeDir"		"c:\program files\steam\steamapps\<username>\day of defeat"
		"MapDir"		"c:\program files\steam\steamapps\<username>\day of defeat\dod\maps"
		"BSPDir"		"c:\program files\steam\steamapps\<username>\day of defeat\dod\maps"
		"CordonTexture"		"tools\sky"
		"MaterialExcludeCount"		"0"
	}
}

Team Fortress Classic Team Fortress Classic

"Team Fortress Classic"
{
	"GameDir"		"c:\program files\steam\steamapps\<username>\team fortress classic\tfc"
	"hammer"
	{
		"GameData0"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife-tfc.fgd"
		"TextureFormat"		"2"
		"MapFormat"		"3"
		"DefaultTextureScale"		"0.250000"
		"DefaultLightmapScale"		"16"
		"GameExe"		"c:\program files\steam\steamapps\<username>\team fortress classic\hl.exe"
		"DefaultSolidEntity"		"func_wall"
		"DefaultPointEntity"		"info_player_teamspawn"
		"BSP"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
		"Vis"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
		"Light"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
		"GameExeDir"		"c:\program files\steam\steamapps\<username>\team fortress classic"
		"MapDir"		"c:\program files\steam\steamapps\<username>\team fortress classic\tfc\maps"
		"BSPDir"		"c:\program files\steam\steamapps\<username>\team fortress classic\tfc\maps"
		"CordonTexture"		"sky"
		"MaterialExcludeCount"		"0"
	}
}

Gunman Chronicles

"Gunman Chronicles"
{
	"GameDir"		"c:\program files\steam\steamapps\<username>\half-life\rewolf"
	"hammer"
	{
		"GameData0"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\gunman.fgd"
		"TextureFormat"		"2"
		"MapFormat"		"3"
		"DefaultTextureScale"		"0.250000"
		"DefaultLightmapScale"		"16"
		"GameExe"		"c:\program files\steam\steamapps\<username>\half-life\hl.exe"
		"DefaultSolidEntity"		"func_wall"
		"DefaultPointEntity"		"info_player_start"
		"BSP"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
		"Vis"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
		"Light"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
		"GameExeDir"		"c:\program files\steam\steamapps\<username>\half-life"
		"MapDir"		"c:\program files\steam\steamapps\<username>\half-life\rewolf\maps"
		"BSPDir"		"c:\program files\steam\steamapps\<username>\half-life\rewolf\maps"
		"CordonTexture"		"sky"
		"MaterialExcludeCount"		"0"
	}
}

Half-Life Half-Life

"Half-Life"
{
	"GameDir"		"c:\program files\steam\steamapps\<username>\half-life\valve"
	"hammer"
	{
		"GameData0"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife.fgd"
		"TextureFormat"		"2"
		"MapFormat"		"3"
		"DefaultTextureScale"		"0.250000"
		"DefaultLightmapScale"		"16"
		"GameExe"		"c:\program files\steam\steamapps\<username>\half-life\hl.exe"
		"DefaultSolidEntity"		"func_wall"
		"DefaultPointEntity"		"info_player_start"
		"BSP"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
		"Vis"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
		"Light"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
		"GameExeDir"		"c:\program files\steam\steamapps\<username>\half-life"
		"MapDir"		"c:\program files\steam\steamapps\<username>\half-life\valve\maps"
		"BSPDir"		"c:\program files\steam\steamapps\<username>\half-life\valve\maps"
		"CordonTexture"		"sky"
		"MaterialExcludeCount"		"0"
	}
}

Half-Life: Blue Shift Half-Life: Blue Shift

"Half-Life: Blue Shift"
{
	"GameDir"		"c:\program files\steam\steamapps\<username>\half-life blue shift\bshift"
	"hammer"
	{
		"GameData0"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife-bs_WC33.fgd"
		"TextureFormat"		"2"
		"MapFormat"		"3"
		"DefaultTextureScale"		"0.250000"
		"DefaultLightmapScale"		"16"
		"GameExe"		"c:\program files\steam\steamapps\<username>\half-life blue shift\hl.exe"
		"DefaultSolidEntity"		"func_wall"
		"DefaultPointEntity"		"info_player_start"
		"BSP"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
		"Vis"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
		"Light"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
		"GameExeDir"		"c:\program files\steam\steamapps\<username>\half-life blue shift"
		"MapDir"		"c:\program files\steam\steamapps\<username>\half-life blue shift\bshift\maps"
		"BSPDir"		"c:\program files\steam\steamapps\<username>\half-life blue shift\bshift\maps"
		"CordonTexture"		"sky"
		"MaterialExcludeCount"		"0"
	}
}

Half-Life: Opposing Force Half-Life: Opposing Force

"Half-Life: Opposing Force"
{
	"GameDir"		"c:\program files\steam\steamapps\<username>\opposing force\gearbox"
	"hammer"
	{
		"GameData0"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\halflife-op4_wc33.fgd"
		"TextureFormat"		"2"
		"MapFormat"		"3"
		"DefaultTextureScale"		"0.250000"
		"DefaultLightmapScale"		"16"
		"GameExe"		"c:\program files\steam\steamapps\<username>\opposing force\hl.exe"
		"DefaultSolidEntity"		"func_wall"
		"DefaultPointEntity"		"info_player_start"
		"BSP"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"
		"Vis"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"
		"Light"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"
		"GameExeDir"		"c:\program files\steam\steamapps\<username>\opposing force"
		"MapDir"		"c:\program files\steam\steamapps\<username>\opposing force\gearbox\maps"
		"BSPDir"		"c:\program files\steam\steamapps\<username>\opposing force\gearbox\maps"
		"CordonTexture"		"sky"
		"MaterialExcludeCount"		"0"
	}
}

Make sure that you paste these configurations between

"Configs"
{
"Games"
{

and

}
"SDKVersion"		"3"
}

If your GameConfig.txt is missing a '{' or '}' because you didn't paste properly it probably won't work.

Adding your own configuration

Read through this to work out how to add in a custom configuration for a mod.

"Modname"
{
	"GameDir"		"c:\program files\steam\steamapps\<username>\half-life\modname"  // path to the mod directory
	"hammer"
	{
		"GameData0"		"c:\modname.fgd"  // path to .fgd file
		"TextureFormat"		"2"  // leave this as 2; it tells Hammer to use .wad files instead of .vtf
		"MapFormat"		"3" // leave this as 3: it tells Hammer to use .rmf files instead of .vmf
		"DefaultTextureScale"		"0.250000"  // ??? (leave it)
		"DefaultLightmapScale"		"16"  // ??? (leave it)
		"GameExe"		"c:\program files\steam\steamapps\<username>\half-life\hl.exe"  // path to Half-Life executable
		"DefaultSolidEntity"		"func_wall"  // should be something else?
		"DefaultPointEntity"		"info_player_start"  // player start entity
		"BSP"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qbsp2.exe"  // doesn't need to be set; compile with a .bat file
		"Vis"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\vis.exe"  // doesn't need to be set; compile with a .bat file
		"Light"		"c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\qrad.exe"  // doesn't need to be set; compile with a .bat file
		"GameExeDir"		"c:\program files\steam\steamapps\<username>\half-life"  // leave it because mods won't use any othe executable
		"MapDir"		"c:\program files\steam\steamapps\<username>\half-life\modname\maps"  // directory to load maps from
		"BSPDir"		"c:\program files\steam\steamapps\<username>\half-life\valve\maps"  // directory to place compiled maps in; not needed because compilation needs to be done manually
		"CordonTexture"		"sky" 
		"MaterialExcludeCount"		"0"  // ??? (leave it )
	}
}

GameInfo.txt

Hammer 4.x will look for a GameInfo.txt file in the game directory it is working from, however GoldSource engine games do not have GameInfo.txt files.

Paste this into a GameInfo.txt in your game directory (steamapps\counter-strike\cstrike\, steamapps\day of defeat\dod\ etc)

Note.pngNote:If using the Orange Box version of hammer, replace the SteamAppId with 218.

"GameInfo"
{
	game	"Counter-Strike"
	title	"Counter-Strike"
	type	multiplayer_only

	FileSystem
	{
		SteamAppId				280		// Half-Life Source - if you don't own it, set this to something else
		ToolsAppId				211		
		
		SearchPaths
		{
			Game				|gameinfo_path|.
			Game				hl2
			Game				hl1
		}
	}
}

Forge Game Data

Hammer 3.x .fgd files will work in Hammer 4.x Look below for links to .fgd files.

If you are going to use the configurations from above, copy your .fgd files to c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\

See also

External Links