Warning: array_merge() [function.array-merge]: Argument #1 is not an array in [path]/archive/global.php(40) : eval()'d code on line 2
Quick testing/compiling [Archive] - TF2Maps.net Forums

PDA

View Full Version : Quick testing/compiling


Noggin
03-15-2008, 06:20 PM
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...

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\MAP NAME"
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\MAP NAME"
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\MAP NAME"

Copy "C:\Games\Steam\steamapps\SourceMods\TF2\mapsrc\MAP NAME.bsp" "c:\games\steam\steamapps\ACCOUNTNAME\team fortress 2\tf\maps\MAPNAME.bsp"


For final compiles I use...


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\MAP NAME"
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\MAP NAME"
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\MAP NAME"

Copy "C:\Games\Steam\steamapps\SourceMods\TF2\mapsrc\MAP NAME.bsp" "c:\games\steam\steamapps\ACCOUNTNAME\team fortress 2\tf\maps\MAPNAME.bsp"

trainRiderJ
03-15-2008, 09:39 PM
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
03-16-2008, 01:50 PM
Fixed... the editor kept removing the backslashes (had to double blackslash them)

Ace
05-07-2008, 04:20 PM
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?

Noggin
05-07-2008, 05:04 PM
They seemed to have broke the non-Hammer compiling :(

nossie
05-09-2008, 09:25 PM
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