|
|
| Line 1: |
Line 1: |
| This page will walk you through setting up Hammer++ with our custom tools for TF2Classic map development. | | This page will walk you through setting up Hammer++ with our custom tools for TF2 Classified map development. |
| Valve's Hammer will not display materials correctly without using the [https://www.moddb.com/mods/mapbase/downloads/mapbase-multi-tool Mapbase Multi-Tool] to create a shortcut. This page will guide you through installing Hammer++ instead, which does ''not'' require using the Multi-Tool.
| | |
| __TOC__ | | __TOC__ |
| == Step 1: Installing Hammer++ == | | == Step 1: Installing Hammer++ == |
| === For the new Team Fortress 2 Classified ===
| |
| Go to the [https://ficool2.github.io/HammerPlusPlus-Website/download.html download page for Hammer++], scroll down until you find the "Team Fortress 2" option and click it. This will download a ZIP file.
| |
|
| |
| If you open the ZIP file, you'll find a ''hammerplusplus_tf2_buildXXXX'' folder, which itself contains a ''bin'' folder. You should merge the ''bin'' folder inside of the ZIP with the ''bin'' folder in your ''Team Fortress 2 Classified'' directory that contains hammer.exe. After that's finished, hammerplusplus.exe and hammer.exe should be in the same folder.
| |
|
| |
| === For the legacy Team Fortress 2 Classic ===
| |
| Go to the [https://ficool2.github.io/HammerPlusPlus-Website/download.html download page for Hammer++], scroll down until you find the "Source SDK 2013 Multiplayer" option and click it. This will download a ZIP file.
| |
|
| |
| If you open the ZIP file, you'll find a ''hammerplusplus_2013mpbuildXXXX'' folder, which itself contains a ''bin'' folder. You should merge the ''bin'' folder inside of the ZIP with the ''bin'' folder in your ''Source SDK Base 2013 Multiplayer'' directory that contains hammer.exe. After that's finished, hammerplusplus.exe and hammer.exe should be in the same folder.
| |
|
| |
| == Step 2: Installing the custom compilation tools ==
| |
| NOTE:May '''''NOT''''' work in the new TF2 Classified!
| |
|
| |
| A custom set of compile tools is required in order to have proper lighting on your maps, due to the default compilers not supporting custom shaders, and relying on DX8 models. We use the Mapbase VBSP and Slammin' VRAD which fix both of these problems, along with many other bugs.
| |
|
| |
| [https://tf2classic.com/downloads/compilers.zip Download TF2C's custom map compile tools.]
| |
|
| |
| Like with Hammer++, this is an archive you'll need to open and extract. The entire contents of the ZIP file you download should be extracted into your ''bin'' folder in your ''Source SDK Base 2013 Multiplayer'' directory. This will add vbsp_tf2c and vrad_tf2c executable files, alongside the regular vbsp and vrad files.
| |
|
| |
| == Step 3: Configuring Hammer++ for TF2C ==
| |
| === For the new Team Fortress 2 Classified ===
| |
| Go to {{code|steamDir/steamapps/common/Team Fortress 2 Classified/bin/x64}} and run the {{code|hammer_tf2c_setup.bat}} file.
| |
|
| |
| === For the legacy Team Fortress 2 Classic ===
| |
| Open up Hammer++ by double-clicking "hammerplusplus.exe". After it's started, in the main interface, go to '''Tools''' -> '''Options''' -> '''"Game Configurations" tab''' -> Click "Edit" next to the "Configurations" drop-down. Add a new one, titled however you like.
| |
|
| |
| Edit this new configuration to point to the TF2C gamedata (the FGD files in the ''tf2classic'' folder), the game executable directory (your Source SDK Base 2013 Multiplayer folder), and the game directory (your ''tf2classic'' folder, containing GameInfo.txt)
| |
|
| |
| [[File:Hammer Config.png|780px|thumb|center|upright=3|Example image showcasing what your configuration should look like]]
| |
|
| |
|
| Now you're ready to get mapping for TF2 Classic!
| | # Make sure Team Fortress 2 Classified is installed on Steam. |
| | # Download the latest [https://ficool2.github.io/HammerPlusPlus-Website/download.html Team Fortress 2 build of Hammer++]. |
| | # Copy the files of the Team Fortress 2 build of H++ into the <code>steamapps\common\Team Fortress 2 Classified</code> folder, as if you were installing it for Live TF2. |
| | # Navigate to the <code>steamapps\common\Team Fortress 2 Classified\bin\x64</code> folder, and run <code>hammer_tf2c_setup.bat</code> (this should be right next to <code>hammerplusplus.exe</codE> if you have installed everything correctly). |
| | # Run <code>hammerplusplus.exe</code>. |
|
| |
|
| === Configuring VRAD ===
| | As of the Steam release (3.0.0) we include new customized versions of the compilers with the game. Older versions of TF2C's VBSP, VRAD, and VVIS are no longer compatible. VBSP++ and VRAD++ are not supported as they are missing TF2C-specific features we use, but VVIS++ should work if you wish to use it. |
| When you're ready to compile your map, you need to make sure that the parameters you're passing to VRAD are supported by our custom build. Some, such as -staticproplighting, are now enabled by default and will produce a RAD error if you include them, causing your map to appear fullbright in-game.
| |
|
| |
|
| In the "Run Map..."/F9 dialog, you should click the "Expert..." button in the bottom-left corner of the panel to view your configurations, and adjust the parameters for the $light_exe command in the configuration you use for your final compile to be:
| | == Step 2: Configuring VRAD == |
| {{pre|-final -hdr -ambientocclusion -aoscale 0.5 -LargeDispSampleRadius -softencosine -worldtextureshadows -game $gamedir $path\$file}}
| |
|
| |
|
| Meanwhile, for fast compiles when prototyping your map, you can simply use:
| | When preparing a final compile of your map, you need to make sure that the parameters you're passing to VRAD are supported by our custom build. Some, such as -staticproplighting, are now enabled by default and will produce an error if you include them. The default VRAD settings we use for most official TF2C maps are: |
| {{pre|-fast -hdr -game $gamedir $path\$file}}
| |
|
| |
|
| == Troubleshooting ==
| | {{pre|-final -hdr -softencosine -ao -aoradius 2 -LargeDispSampleRadius -worldtextureshadows -StaticPropIndirectMode 2 -choptexlights}} |
| === "Cannot load the static props... encountered a stale map version. Re-vbsp the map." ===
| |
| This can happen after upgrading to the newer set of compile tools released in 2.1.2 after previously using the older set. The exact cause hasn't been discovered yet, but it seems to be caching related. Our developers initially had this issue, and then it would randomly fix itself while they were trying to figure it out, and then it would never happen again.
| |
|
| |
|
| We recommend deleting output files related to your map or tweaking $light_exe parameters. Specifically, this has sometimes been caused by using '-both' in your VRAD flags, which is now obsolete and recommended against. If you're completely unable to solve it, you can also use the [https://drive.google.com/drive/folders/17pQY8wDkednZi0kMZOSpAtNBNmFWm6GJ Slammin' Source Map Tools] to compile your map. These should be equal, with the exception of lacking support for parallax-corrected cubemaps. These will ''overwrite'' the tools provided by the SDK, so you'll need to modify your Hammer++ configuration again to point to vbsp.exe and vrad.exe. You'll also need to delete the "vrad.redirect" file inside the folder.
| | You can add these to your final compile settings in H++ by going to the the "Run Map..."/F9 dialog, click the "Expert..." button in the bottom-left corner of the panel to view your configurations, and add those the parameters to the $light_exe command in your final compile configuration. |
| | | |
| [[Category:Guides]] | | [[Category:Guides]] |