123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686 |
- // Specification: Source Tools
- // Written by: Ryan Gregg
- // Version: N/A
- // Created: November 5, 2004
- // Last updated: Febuary 23, 2005
- // Updated by: Ryan Gregg
- // Date: Febuary 23, 2005
- // Updated all tools to refelect changes to the SDK.
- // Updated by: Ryan Gregg
- // Date: December 1, 2004
- // Added BinRoot and ValveProject variables.
- Include "Templates.bci"
- Variable
- {
- Name "BinRoot"
- Type "Folder"
- Optional "True"
- Hint "SDK bin directory.\n...\\Steam\\SteamApps\\<User Name>\\sourcesdk\\bin\\"
- }
- Variable
- {
- Name "ValveProject"
- Type "Folder"
- Optional "True"
- Hint "The directory your gameinfo.txt is located in."
- }
- Batch
- {
- Name "Source Tools"
- Priority "2"
- Links "Source SDK,http://www.valve-erc.com/srcsdk/"
- Filter "Supported Files|*.vmf;*.bsp|VMF Files (*.vmf)|*.vmf|BSP Files (*.bsp)|*.bsp"
- Stages "BSP|VIS|RAD|Shared|ZIP"
- Template "@echo off\n"_
- "set VPROJECT=${ValveProject}\n"_
- "cd ${BinRoot}\n"_
- "\"${StagePath=BSP}\" ${StageParam=BSP} \"${FilePath}\\${FileName}\"\n"_
- "if ERRORLEVEL 1 goto failed\n"_
- "\"${StagePath=VIS}\" ${StageParam=VIS} \"${FilePath}\\${FileName}\"\n"_
- "if ERRORLEVEL 1 goto failed\n"_
- "\"${StagePath=RAD}\" ${StageParam=RAD} \"${FilePath}\\${FileName}\"\n"_
- "if ERRORLEVEL 1 goto failed\n"_
- "\"${StagePath=ZIP}\" ${StageParam=ZIP}\n"_
- "if ERRORLEVEL 1 goto failed\n"_
- "goto succeeded\n"_
- ":failed\n"_
- "echo.\n"_
- "echo There was a problem compiling your map, check your ${FileName}.log file for errors.\n"_
- ":succeeded\n"_
- "echo.\n"_
- "${LogViewerRun}\n"
- }
- Batch
- {
- Name "BSP"
- Priority "1"
- Stages "BSP|Shared"
- Filter "VMF Files (*.vmf)|*.vmf"
- Template "@echo off\n"_
- "set VPROJECT=${ValveProject}\n"_
- "cd ${BinRoot}\n"_
- "\"${StagePath=BSP}\" ${StageParam=BSP} \"${FilePath}\\${FileName}\"\n"_
- "${LogViewerRun}\n"
- }
- Batch
- {
- Name "VIS"
- Priority "1"
- Stages "VIS|Shared"
- Filter "VMF Files (*.vmf)|*.vmf"
- Template "@echo off\n"_
- "set VPROJECT=${ValveProject}\n"_
- "cd ${BinRoot}\n"_
- "\"${StagePath=VIS}\" ${StageParam=VIS} \"${FilePath}\\${FileName}\"\n"_
- "${LogViewerRun}\n"
- }
- Batch
- {
- Name "RAD"
- Priority "1"
- Stages "RAD|Shared"
- Filter "VMF Files (*.vmf)|*.vmf"
- Template "@echo off\n"_
- "set VPROJECT=${ValveProject}\n"_
- "cd ${BinRoot}\n"_
- "\"${StagePath=RAD}\" ${StageParam=RAD} \"${FilePath}\\${FileName}\"\n"_
- "${LogViewerRun}\n"
- }
- Batch
- {
- Name "ZIP"
- Priority "1"
- Stages "ZIP"
- Filter "VMF Files (*.vmf)|*.vmf"
- Template "@echo off\n"_
- "set VPROJECT=${ValveProject}\n"_
- "cd ${BinRoot}\n"_
- "\"${StagePath=ZIP}\" ${StageParam=ZIP}\n"
- }
- //
- // BSP
- //
- Stage
- {
- Name "BSP"
- Title "Binary Space Partition"
- Type "Program"
- Filter "VBSP (vbsp.exe)|vbsp.exe"
- CheckBox
- {
- Name "Bump All"
- Param "-bumpall"
- Hint "\tForce all surfaces to be bump mapped."
- }
- CheckBox
- {
- Name "Dump Collide"
- Param "-dumpcollide"
- Hint "\tWrite files with collision info."
- }
- CheckBox
- {
- Name "Dump Static Props"
- Param "-dumpstaticprop"
- Hint "\tDump static props to staticprop*.txt."
- }
- CheckBox
- {
- Name "Full Detail"
- Param "-fulldetail"
- Hint "\tMark all detail geometry as normal geometry (so all detail geometry will affect visibility)."
- }
- CheckBox
- {
- Name "GLView"
- Bold "True"
- Param "-glview"
- Hint "\tWrites .gl files in the current directory that can be viewed with glview.exe. If you use -tmpout, it will write the files into the \\tmp folder."
- }
- CheckBox
- {
- Name "Keep Stale Zip"
- Param "-keepstalezip"
- Hint "\tKeep the BSP's zip files intact but regenerate everything else."
- }
- CheckBox
- {
- Name "Leak Test"
- Param "-leaktest"
- Hint "\tStop processing the map if a leak is detected. Whether or not this flag is set, a leak file will be written out at <vmf filename>.lin, and it can be imported into Hammer."
- }
- CheckBox
- {
- Name "Light If Missing"
- Param "-lightifmissing"
- Hint "\tForce lightmaps to be generated for all surfaces even if they don't need lightmaps."
- }
- CheckBox
- {
- Name "No Detail"
- Param "-nodetail"
- Bold "True"
- Hint "\tGet rid of all detail geometry. The geometry left over is what affects visibility."
- }
- CheckBox
- {
- Name "No Linux Data"
- Param "-nolinuxdata"
- Hint "\tBy default, BSP writes physics data for linux servers. This parameter disables writing linux physics data into the map."
- }
- TextBox
- {
- Name "Additional Parameters"
- Type "String"
- Quote "False"
- Size "3"
- Hint "\tAdd additional parameters here as you would a command line."
- }
- CheckBox
- {
- Name "No Water"
- Param "-nowater"
- Bold "True"
- Hint "\tGet rid of water brushes."
- }
- CheckBox
- {
- Name "No CSG"
- Param "-nocsg"
- Hint "\tDon't chop out intersecting brush areas."
- }
- /*CheckBox
- {
- Name "No Linux Data"
- Param "-nolinuxdata"
- Hint "\tForce it to not write physics data for linux multiplayer servers, even if there are multiplayer entities in the map."
- }*/
- CheckBox
- {
- Name "No Merge"
- Param "-nomerge"
- Hint "\tDon't merge together chopped faces on nodes."
- }
- CheckBox
- {
- Name "No Merge Water"
- Param "-nomergewater"
- Hint "\tDon't merge together chopped faces on water."
- }
- CheckBox
- {
- Name "No Opt"
- Param "-noopt"
- Hint "\tBy default, vbsp removes the 'outer shell' of the map, which are all the faces you can't see because you can never get outside the map. -noopt disables this behaviour."
- }
- CheckBox
- {
- Name "No Prune"
- Param "-noprune"
- Hint "\tDon't prune neighboring solid nodes."
- }
- CheckBox
- {
- Name "No Share"
- Param "-noshare"
- Hint "\tEmit unique face edges instead of sharing them."
- }
- CheckBox
- {
- Name "No Subdivide"
- Param "-nosubdiv"
- Hint "\tDon't subdivide faces for lightmapping."
- }
- CheckBox
- {
- Name "No T-Junction"
- Param "-notjunc"
- Hint "\tDon't fixup t-junctions."
- }
- CheckBox
- {
- Name "No Weld"
- Param "-noweld"
- Hint "\tDon't join face vertices together."
- }
- Space
- {
- Size "1"
- }
- CheckBox
- {
- Name "Snap Axial"
- Param "-snapaxial"
- Hint "\tSnap axial planes to integer coordinates."
- }
- CheckBox
- {
- Name "Only Entites"
- Param "-onlyents"
- Bold "True"
- Hint "\tThis option causes vbsp only import the entities from the .vmf file. -onlyents won't reimport brush models."
- }
- CheckBox
- {
- Name "Only Props"
- Param "-onlyprops"
- Bold "True"
- Hint "\tOnly update the static props and detail props."
- }
- CheckBox
- {
- Name "Verbose Entities"
- Param "-verboseentities"
- Hint "\tIf -verbose is on, this disables verbose output for submodels."
- }
- TextBox
- {
- Name "Block"
- Param "-Block"
- Type "String"
- Quote "False"
- Default "0.0 0.0"
- Hint "\tControl the grid size mins that vbsp chops the level on."
- }
- TextBox
- {
- Name "Blocks"
- Param "-Blocks"
- Type "String"
- Quote "False"
- Default "0.0 0.0 0.0 0.0"
- Hint "\tEnter the mins and maxs for the grid size vbsp uses."
- }
- TextBox
- {
- Name "Luxel Scale"
- Param "-luxelscale"
- Type "Single"
- Default "1.0"
- Min "0.0"
- Max "100.0"
- Hint "\tScale all lightmaps by this amount."
- }
- TextBox
- {
- Name "Micro"
- Param "-micro"
- Type "Single"
- Default "1.0"
- Min "0.0"
- Hint "\tvbsp will warn when brushes are output with a volume less than this number."
- }
- }
- //
- // VIS
- //
- Stage
- {
- Name "VIS"
- Title "Visibility Index Set"
- Type "Program"
- Filter "VVIS (vvis.exe)|vvis.exe"
- CheckBox
- {
- Name "No Sort"
- param "-nosort"
- Hint "\tDon't sort portals (sorting is an optimization)."
- }
- TextBox
- {
- Name "Radius Override"
- param "-radius_override"
- Type "Single"
- Default "0.0"
- Min "0.0"
- Hint "\tForce a VIS radius."
- }
- ComboBox
- {
- Name "VIS Type"
- Bold "True"
- Default "Normal"
- Options "Fast,-fast|Normal,"
- Hint "\tRun as fast or normal.\n\n"_
- "\tFast VIS only does a first quick pass on VIS calculations."
- }
- Space
- {
- Size "7"
- }
- TextBox
- {
- Name "Additional Parameters"
- Type "String"
- Quote "False"
- Size "3"
- Hint "\tAdd additional parameters here as you would a command line."
- }
- }
- //
- // RAD
- //
- Stage
- {
- Name "RAD"
- Title "Radiosity"
- Type "Program"
- Filter "VRAD (vrad.exe)|vrad.exe"
- CheckBox
- {
- Name "Center Samples"
- param "-centersamples"
- Hint "\tMove sample centers."
- }
- CheckBox
- {
- Name "Direct Lightmap"
- param "-dlightmap"
- Hint "\tForce direct lighting into different lightmap than radiosity."
- }
- CheckBox
- {
- Name "Debug Extra"
- param "-debugextra"
- Hint "\tPlaces debugging data in lightmaps to visualize supersampling."
- }
- CheckBox
- {
- Name "Dump"
- param "-dump"
- Hint "\tWrite debugging .txt files."
- }
- CheckBox
- {
- Name "Dump Normals"
- param "-dumpnormals"
- Hint "\tWrite normals to debug files."
- }
- CheckBox
- {
- Name "Log Hash"
- param "-loghash "
- Hint "\tLog the sample hash table to samplehash.txt."
- }
- CheckBox
- {
- Name "No Detail Light"
- param "-nodetaillight"
- Hint "\tDon't light detail props."
- }
- CheckBox
- {
- Name "No Extra"
- param "-noextra"
- Bold "true"
- Hint "\tDisable supersampling."
- }
- CheckBox
- {
- Name "Only Detail"
- param "-onlydetail"
- Hint "\tOnly light detail props and per-leaf lighting."
- }
- /*CheckBox
- {
- Name "Red Error"
- param "-rederror"
- Hint "\tShow errors in red."
- }*/
- CheckBox
- {
- Name "Stop On Exit"
- param "-stoponexit"
- Hint "\tWait for a keypress on exit."
- }
- TextBox
- {
- Name "Additional Parameters"
- Type "String"
- Quote "False"
- Size "3"
- Hint "\tAdd additional parameters here as you would a command line."
- }
- TextBox
- {
- Name "Bounce"
- Param "-bounce"
- Bold "True"
- Type "Integer"
- Default "100"
- Min "0"
- Hint "\tSet max number of bounces."
- }
- TextBox
- {
- Name "Luxel Density"
- Param "-luxeldensity"
- Type "Single"
- Default "1.0"
- Min "0.0"
- Max "1.0"
- Hint "\tRescale all luxels by the specified amount."
- }
- TextBox
- {
- Name "Max Disp Sample Size"
- Param "-maxdispsamplesize"
- Type "Single"
- Default "512.0"
- Min "0.0"
- Hint "\tSet max displacement sample size."
- }
- TextBox
- {
- Name "Smooth"
- Param "-smooth"
- Type "Single"
- Default "45.0"
- Min "0.0"
- Max "360.0"
- Hint "\tSet the threshold for smoothing groups, in degrees."
- }
- ComboBox
- {
- Name "RAD Type"
- Bold "True"
- Default "Normal"
- Options "Fast,-fast|Normal,"
- Hint "\tRun as fast or normal.\n\n"_
- "\tFast RAD does quick and dirty lighting calculations."
- }
- FileBox
- {
- Name "Lights File"
- Param "-lights"
- FullPath "True"
- Bold "True"
- Filter "Radiosity Files (*.rad)|*.rad|Text Files (*.txt)|*.txt"
- Hint "\tLoad a lights file in addition to lights.rad and the level lights file."
- }
- }
- //
- // ZIP
- //
- Stage
- {
- Name "ZIP"
- Title "BSP ZIP"
- Type "Program"
- Filter "BSPZIP (bspzip.exe)|bspzip.exe"
- ComboBox
- {
- Name "Operation"
- Checked "True"
- Default "Add"
- Options "Add,-addlist \"${FilePath}\\${FileName}.bsp\" \"${FilePath}\\${FileName}.lst\" \"${FilePath}\\${FileName}.bsp\"|Extract,-extract \"${FilePath}\\${FileName}.bsp\" \"${FilePath}\\${FileName}.zip\"|List,-dir \"${FilePath}\\${FileName}.bsp\""
- Hint "\tAdd files to, extract files from or list the files in the BSP's embedded ZIP file.\n\n"_
- "\tWhen adding files a <filename>.lst file must exist in your input file's folder. This file contains pairs in the format ZIP path Local path separated by new line characters. For example, to add the material walls/stonewall our <filename>.lst file would contain:\n\n"_
- "\tmaterials/walls/stonewall.vmt\n"_
- "\tC:\\materials\\walls\\stonewall.vmt\n"_
- "\tmaterials/walls/stonewall.vtf\n"_
- "\tC:\\materials\\walls\\stonewall.vtf"
- }
- Space
- {
- Size "9"
- }
- TextBox
- {
- Name "Additional Parameters"
- Type "String"
- Quote "False"
- Size "3"
- Hint "\tAdd additional parameters here as you would a command line."
- }
- }
- //
- // Shared
- //
- Stage
- {
- Name "Shared"
- Title "Shared Parameters"
- Type "ParameterList"
- CheckBox
- {
- Name "No VConfig"
- param "-novconfig"
- Stages "BSP|VIS|RAD"
- Hint "\tDon't bring up graphical UI on VPROJECT errors."
- }
- CheckBox
- {
- Name "MPI"
- param "-mpi"
- Stages "VIS|RAD"
- Hint "\tUse VMPI to distribute computations."
- }
- CheckBox
- {
- Name "Verbose"
- param "-verbose"
- Stages "BSP|VIS|RAD"
- Hint "\tCompile with verbose messages."
- }
- TextBox
- {
- Name "MPI Password"
- Param "-mpi_pw"
- Stages "VIS|RAD"
- Type "String"
- Hint "\tUse a password to choose a specific set of VMPI workers."
- }
- TextBox
- {
- Name "Threads"
- Param "-threads"
- Stages "BSP|VIS|RAD"
- Type "Integer"
- Default "1"
- Min "1"
- Hint "\tControl the number of threads vbsp uses (defaults to the # of processors on your machine)."
- }
- ComboBox
- {
- Name "Priority"
- Stages "BSP|VIS|RAD"
- Default "Normal"
- Options "Low,-low|Normal,"
- Hint "\tRun program an altered priority level.\n\n"_
- "\tSetting the priority of the compile tools to -low is very handy, as you can multitask and do other things without really feeling the drain of the compile programs on the system, provided there is enough memory for the tools and the other programs you use."
- }
- FolderBox
- {
- Name "Game"
- Param "-game"
- Stages "BSP|VIS|RAD"
- Bold "True"
- Hint "\tOverride the VPROJECT environment variable.\n\n"_
- "\tShould point to the folder your gameinfo.txt is located in."
- }
- }
|