Quick testing/compiling

  • If you're asking a question make sure to set the thread type to be a question!

Noggin

L5: Dapper Member
Nov 17, 2007
226
48
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...
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:

trainRiderJ

L5: Dapper Member
Mar 14, 2008
203
31
This looks great, but I have a question about the batch files. Is there a reason you didn't include backslahes in any of the path names?

Also, I'm a noob with batch files, so should I use a text editor to make files named something like "fast.bat" and "final.bat" and include the stuff in your code blocks?
 

Noggin

L5: Dapper Member
Nov 17, 2007
226
48
Fixed... the editor kept removing the backslashes (had to double blackslash them)
 

Ace

L3: Member
Feb 15, 2008
112
9
Opening up the thread again.

Does anybody know if you can run these programs outside steam.

I.E. Transfer any necessary files onto a machine that don't have steam installed. Then run them through that?
 

nossie

L3: Member
May 9, 2008
107
4
hey there
first post :)

i started making a tf2 map sorta like dustbowl (loosely based off it) and ive done the first cp area and i want to play it and test it does this compile thing work? because I've done css compiles and they took forever so just wondering if this still works


thanks in advance
nossie