GoldSource mapping in Hammer 4.x: Difference between revisions
(changed a fe things that were wrong, some small changes e.g. better explanations) |
(added gunman chronicles stuff, added some internal links) |
||
Line 13: | Line 13: | ||
== 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 into 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. | ||
NOTE: There GoldSource maps get compiled by four tools, but only Source maps get compiled by only three tools. In Hammer 4.1, you will not be able to compile correctly with the setup in these game configurations. It is recommended that you use [http://nemesis.thewavelength.net/index.php?p=2 Batch Compiler] instead, which allows all the compile tools to be used with all their options.}} | NOTE: There GoldSource maps get compiled by four tools, but only Source maps get compiled by only three tools. In Hammer 4.1, you will not be able to compile correctly with the setup in these game configurations. It is recommended that you use [http://nemesis.thewavelength.net/index.php?p=2 Batch Compiler] instead, which allows all the compile tools to be used with all their options.}} | ||
Counter-Strike | [[Counter-Strike]] | ||
<pre> | <pre> | ||
"Counter-Strike" | "Counter-Strike" | ||
Line 45: | Line 45: | ||
</pre> | </pre> | ||
Condition Zero | [[Condition Zero]] | ||
<pre> | <pre> | ||
"Condition Zero" | "Condition Zero" | ||
Line 72: | Line 72: | ||
</pre> | </pre> | ||
Condition Zero Deleted Scenes | [[Condition Zero Deleted Scenes]] | ||
<pre> | <pre> | ||
"Condition Zero Deleted Scenes" | "Condition Zero Deleted Scenes" | ||
Line 79: | Line 79: | ||
"hammer" | "hammer" | ||
{ | { | ||
"GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\ | "GameData0" "c:\program files\steam\steamapps\<username>\sourcesdk\bin\halflife\bin\condition_zero_deleted_scenes.fgd" | ||
"TextureFormat" "2" | "TextureFormat" "2" | ||
"MapFormat" "3" | "MapFormat" "3" | ||
Line 99: | Line 99: | ||
</pre> | </pre> | ||
Day of Defeat | [[Day of Defeat]] | ||
<pre> | <pre> | ||
"Day of Defeat" | "Day of Defeat" | ||
Line 126: | Line 126: | ||
</pre> | </pre> | ||
Team Fortress Classic | [[Team Fortress Classic]] | ||
<pre> | <pre> | ||
"Team Fortress Classic" | "Team Fortress Classic" | ||
Line 153: | Line 153: | ||
</pre> | </pre> | ||
Half-Life | [[Gunman Chronicles]] | ||
<pre> | |||
"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_detail" | |||
"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" | |||
} | |||
} | |||
</pre> | |||
[[Half-Life]] | |||
<pre> | <pre> | ||
"Half-Life" | "Half-Life" | ||
Line 180: | Line 207: | ||
</pre> | </pre> | ||
Half-Life Blue Shift | [[Half-Life Blue Shift]] | ||
<pre> | <pre> | ||
"Half-Life: Blue Shift" | "Half-Life: Blue Shift" | ||
Line 207: | Line 234: | ||
</pre> | </pre> | ||
Half-Life Opposing Force | [[Half-Life Opposing Force]] | ||
<pre> | <pre> | ||
"Half-Life: Opposing Force" | "Half-Life: Opposing Force" | ||
Line 281: | Line 308: | ||
== GameInfo.txt == | == 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. | 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) | ||
{{note|If using the Orange Box version of hammer, replace the SteamAppId with 218.}} | {{note|If using the Orange Box version of hammer, replace the SteamAppId with 218.}} | ||
Line 319: | Line 346: | ||
* [http://files.filefront.com/dodfgd/;11056054;/fileinfo.html dod.fgd] | * [http://files.filefront.com/dodfgd/;11056054;/fileinfo.html dod.fgd] | ||
* [http://cid-1bcc5bd24a241de4.skydrive.live.com/self.aspx/rewolf/gunman.fgd gunman.fgd] | |||
* [http://files.filefront.com/halflifefgd/;11056053;/fileinfo.html halflife.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+csfgd/;13017382;/fileinfo.html halflife-cs.fgd] | ||
* [http://developer.valvesoftware.com/wiki/Condition_Zero_Deleted_Scenes.fgd condition_zero_deleted_scenes.fgd] | |||
* [http://files.filefront.com/halflife+bs+WC33fgd/;13017379;/fileinfo.html halflife-bs_WC33.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+wc33fgd/;13017380;/fileinfo.html halflife-op4_wc33.fgd] |
Revision as of 19:05, 18 September 2009
Although it's not easy to set up, it is possible to map for any GoldSource game using Hammer 4.x 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 make Hammer use 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



Modifiying GameConfig.txt
Add any of these into 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: There GoldSource maps get compiled by four tools, but only Source maps get compiled by only three tools. In Hammer 4.1, you will not be able to compile correctly with the setup in these game configurations. It is recommended that you use Batch Compiler instead, which allows all the compile tools to be used with all their options.}}
"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_detail" "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" } }
"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_detail" "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" { "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_detail" "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" { "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_detail" "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" { "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_detail" "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" { "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_detail" "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" { "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_detail" "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" { "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_detail" "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" { "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_detail" "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_detail" // 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)

"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\
External Links
- dod.fgd
- gunman.fgd
- halflife.fgd
- halflife-cs.fgd
- condition_zero_deleted_scenes.fgd
- halflife-bs_WC33.fgd
- halflife-op4_wc33.fgd
- Opposing Force .fgd file
- Half-Life Blue Shift SDK - contains .fgd file
- Opposing Force CTF SDK - contains .fgd file