Cubemaps
Building cubemaps can be kinda laborious so I exec a dev.cfg which binds these commands.
bind "KP_END" "mat_specular 0"
bind "KP_DOWNARROW" "buildcubemaps"
bind "KP_PGDN" "mat_hdr_level 0"
bind "KP_LEFTARROW" "buildcubemaps"
bind "KP_5" "mat_hdr_level 2"
bind "KP_RIGHTARROW" "mat_specular 1"
This maps to 1,2,3,4,5,6 on the number keypad.
Quick map tests: load up your map, press 1, wait a sec, press 2, reload map, press 6.
Final compile: load up your map, press 1, wait a sec, press 2, press 3, reload map, press 4, reload map, press 6.
__________________________________________
Batch files > Hammer
I dont use the Hammer compile function at all, I use batch files, this allows me to keep on working on the map while Im compiling in the background.
I generally use 2 batch files, one for quick tests and final compile.
I use certain switches so as not to kill the PC, notably -low and -threads.
If you use these, be sure to change ACCOUNTNAME, MAPNAME and game dir!
For fast compiles I use...
For final compiles I use...
Building cubemaps can be kinda laborious so I exec a dev.cfg which binds these commands.
bind "KP_END" "mat_specular 0"
bind "KP_DOWNARROW" "buildcubemaps"
bind "KP_PGDN" "mat_hdr_level 0"
bind "KP_LEFTARROW" "buildcubemaps"
bind "KP_5" "mat_hdr_level 2"
bind "KP_RIGHTARROW" "mat_specular 1"
This maps to 1,2,3,4,5,6 on the number keypad.
Quick map tests: load up your map, press 1, wait a sec, press 2, reload map, press 6.
Final compile: load up your map, press 1, wait a sec, press 2, press 3, reload map, press 4, reload map, press 6.
__________________________________________
Batch files > Hammer
I dont use the Hammer compile function at all, I use batch files, this allows me to keep on working on the map while Im compiling in the background.
I generally use 2 batch files, one for quick tests and final compile.
I use certain switches so as not to kill the PC, notably -low and -threads.
If you use these, be sure to change ACCOUNTNAME, MAPNAME and game dir!
For fast compiles I use...
Code:
c:\games\steam\steamapps\ACCOUNTNAME\sourcesdk\bin\orangebox\bin\vbsp.exe -game "c:\games\steam\steamapps\ACCOUNTNAME\team fortress 2\tf" "C:\Games\Steam\steamapps\SourceMods\TF2\mapsrc\MAPNAME"
c:\games\steam\steamapps\ACCOUNTNAME\sourcesdk\bin\orangebox\bin\vvis.exe -fast -low -threads 2 -game "c:\games\steam\steamapps\ACCOUNTNAME\team fortress 2\tf" "C:\Games\Steam\steamapps\SourceMods\TF2\mapsrc\MAPNAME"
c:\games\steam\steamapps\ACCOUNTNAME\sourcesdk\bin\orangebox\bin\vrad.exe -low -threads 2 -hdr -noextra -bounce 2 -game "c:\games\steam\steamapps\ACCOUNTNAME\team fortress 2\tf" "C:\Games\Steam\steamapps\SourceMods\TF2\mapsrc\MAPNAME"
Copy "C:\Games\Steam\steamapps\SourceMods\TF2\mapsrc\MAPNAME.bsp" "c:\games\steam\steamapps\ACCOUNTNAME\team fortress 2\tf\maps\MAPNAME.bsp"
For final compiles I use...
Code:
c:\games\steam\steamapps\ACCOUNTNAME\sourcesdk\bin\orangebox\bin\vbsp.exe -game "c:\games\steam\steamapps\ACCOUNTNAME\team fortress 2\tf" "C:\Games\Steam\steamapps\SourceMods\TF2\mapsrc\MAPNAME"
c:\games\steam\steamapps\ACCOUNTNAME\sourcesdk\bin\orangebox\bin\vvis.exe -low -threads 2 -game "c:\games\steam\steamapps\ACCOUNTNAME\team fortress 2\tf" "C:\Games\Steam\steamapps\SourceMods\TF2\mapsrc\MAPNAME"
c:\games\steam\steamapps\ACCOUNTNAME\sourcesdk\bin\orangebox\bin\vrad.exe -low -threads 2 -both -final -game "c:\games\steam\steamapps\ACCOUNTNAME\team fortress 2\tf" "C:\Games\Steam\steamapps\SourceMods\TF2\mapsrc\MAPNAME"
Copy "C:\Games\Steam\steamapps\SourceMods\TF2\mapsrc\MAPNAME.bsp" "c:\games\steam\steamapps\ACCOUNTNAME\team fortress 2\tf\maps\MAPNAME.bsp"
Last edited: