Cleanup is going to take awhile, so the site is back up but editing has been disabled.

Expert Compile Options

From HalfLife 2 Knowledge Base

Jump to: navigation, search

Ok after fighting with hammer for countless hours I've finally gotten an advanced compile configuration that automates pretty much everything you could possibly need to do.

You don't have to use every one of my lines, you should be able to pick and choose which you want. For instance I delete my .prt and .log files as they tend to clutter up my map dir and if I get a leak I'll usually fix it on the spot. That screwy line never made much sense to me anyway, I'll use the coordinates.

Before you say I did a lot of unneeded things; that was the only way it worked. For instance I couldn't copy a file to another file using a wildcard. It would put quotes around the name and give an 'access denied' error. So I copied it to a specific name, and then renamed it instead.

Also, I've put quotes around certain things so spaces in your path won't screw you up.

Copy everything exactly how it is, except change 'YOUR USERNAME' to your actual steam username.


Format:

Command
Parameters
Explanation


Change Directory

"$exedir"

Change dir to sourcesdk


$bsp_exe

"$path\$file"

VBSP


$vis_exe

"$path\$file"

VVIS


$light_exe

"$path\$file"

VRAD


Change Directory

"C:\Program Files\Steam\SteamApps\YOUR USERNAME\sourcesdk\cstrike_sample_content\maps"

Change dir to cstrike_sample_content\maps


Delete File

$file.prt

Delete .prt file (optional)


Delete File

$file.log

Delete .log file (optional)


Copy File

$file.bsp "C:\Program Files\Steam\SteamApps\YOUR USERNAME\counter-strike source\cstrike\maps\map.bsp"

Copy to map.bsp in cstrike/maps


Delete File

$file.bsp

Delete original .bsp in cstrike_sample_content (not needed anymore)


Change Directory

"C:\Program Files\Steam\SteamApps\YOUR USERNAME\counter-strike source\cstrike\maps"

Change dir to cstrike\maps


Delete File

$file.bsp

Deletes the map if it has the same name as the one your compiling so that you can rename your compiled map to it. It will say the file was not found if you've never compiled the map before.


Copy File map.bsp

$file.bsp

Rename map.bsp to the map's real name


Delete File

map.bsp

Delete the dummy map.bsp


C:\Program Files\Steam\Steam.exe

-applaunch 240

Starts CS:S (type your maps name in console)


Personal tools