:: Copyright (c) 2005-2006, Kyle "Krunchy the Clown" Keith, All rights reserved. :: Contact: :: Purpose: Team GabeN Compile Menu, use to compile models and maps. @echo off SETLOCAL set buildnumber=**** Build 2119 - 12/20/06, 10:29. **** title Team GabeN Compile Menu color 1f :: Sets compile tool paths. If yours are different, change them! set v36BIN=C:\tf2\bin set V37BIN=C:\hl2\bin :Square1 :: Fixes a loop bug. set selection= cls echo %buildnumber% echo. echo **************************************** echo * Team GabeN Compile Menu * echo * Select a game to see it's menu. * echo * ------------------------------------ * echo * 1) Half-Life 2 * echo * 2) Team Fortress 2 * echo * 3) Counter-Strike: Source * echo * * echo * 9) Team GabeN Credits * echo * 0) Exit * echo **************************************** echo. set /p selection=Make a selection: if '%selection%'=='1' goto hl2menu if '%selection%'=='2' goto tf2menu if '%selection%'=='3' goto cssmenu if '%selection%'=='9' goto credits if '%selection%'=='0' goto end if '%selection%'=='' goto Square1 :: Skips the ifs and tells you to fuck off if the wrong text is entered. echo. echo "%selection%" is not valid, please try again. echo. pause goto Square1 :hl2menu set selection2= cls echo %buildnumber% echo. echo **************************************** echo * Half-Life 2 * echo * ------------------------------------ * echo * 1) Compile Model (v36) * echo * 2) Compile Model (v37) * echo * 3) Compile Map (v36) * echo * 4) Compile Map (v37) * echo * * echo * 0) Main Menu * echo **************************************** echo. set /p selection2=Make a selection: if '%selection2%'=='1' goto v36mdlhl2 if '%selection2%'=='2' goto v37mdlhl2 if '%selection2%'=='3' goto maphl2v36 if '%selection2%'=='4' goto maphl2v37 if '%selection2%'=='0' goto Square1 if '%selection2%'=='' goto hl2menu :: Skips the ifs and tells you to fuck off if the wrong text is entered. echo. echo "%selection2%" is not valid, please try again. echo. pause goto hl2menu :tf2menu set selection2= cls echo %buildnumber% echo. echo **************************************** echo * Team Fortress 2 * echo * ------------------------------------ * echo * 1) Compile Model * echo * 2) Compile Map * echo * * echo * 0) Main Menu * echo **************************************** echo. set /p selection2=Make a selection: if '%selection2%'=='1' goto v36mdltf2 if '%selection2%'=='2' goto maptf2v36 if '%selection2%'=='0' goto Square1 if '%selection2%'=='' goto tf2menu :: Skips the ifs and tells you to fuck off if the wrong text is entered. echo. echo "%selection2%" is not valid, please try again. echo. pause goto tf2menu :cssmenu set selection2= cls echo %buildnumber% echo. echo **************************************** echo * Counter-Strike: Source * echo * ------------------------------------ * echo * 1) Compile Model (v36) * echo * 2) Compile Model (v37) * echo * 3) Compile Map (v36) * echo * 4) Compile Map (v37) * echo * * echo * 0) Main Menu * echo **************************************** echo. set /p selection2=Make a selection: if '%selection2%'=='1' goto v36mdlcss if '%selection2%'=='2' goto v37mdlcss if '%selection2%'=='3' goto mapcssv36 if '%selection2%'=='4' goto mapcssv37 if '%selection2%'=='0' goto Square1 if '%selection2%'=='' goto cssmenu :: Skips the ifs and tells you to fuck off if the wrong text is entered. echo. echo "%selection2%" is not valid, please try again. echo. pause goto cssmenu :mapcssv37 if not exist "%v37bin%\vbsp.exe" goto vprojecterror :: Get user input. cls echo %buildnumber% echo. echo Compiles a map for CS:S (v37 Engine). echo CTRL-C to cancel. echo. echo Enter the path to the map without extention (Ex: C:\maps\e3_lab) set /p MAPNAME=and then press enter: if not exist "%mapname%.vmf" goto mappatherror :: Sets up mod path. set VPROJECT=C:\hl2\cstrike :mapcssv37_p2 cls echo %buildnumber% echo. echo Compiles a map for CS:S (v37 Engine). echo CTRL-C to cancel. echo. echo *************************** echo * * echo * Select Compile Type * echo * * echo * 1. Full Compile * echo * 2. Fast Compile * echo * 3. No Vis/Rad Compile * echo * * echo *************************** echo. set /p compiletype=Select Compile Type: if '%compiletype%'=='1' goto v37cssmap_fullcomp if '%compiletype%'=='2' goto v37cssmap_fastcomp if '%compiletype%'=='3' goto v37cssmap_novrcomp :: Skips the ifs and tells you to fuck off if the wrong text is entered. :: Seriously.. 1, 2 and 3 are the options, how can you fuck this up? :: Go on a diet Mr. Fatty fingers!! echo. echo The compile type "%compiletype%" is not valid, please try again. echo. pause goto mapcssv37_p2 :v36cssmap_fullcomp :: Compiles the map - Normal. set start_time=%date% at %time% "%v37bin%\vbsp.exe" "%MAPNAME%.vmf" "%v37bin%\vvis.exe" "%MAPNAME%.vmf" "%v37bin%\vrad.exe" "%MAPNAME%.vmf" goto copymapv37css :v37cssmap_fastcomp :: Compiles the map - Fast. set start_time=%date% at %time% "%v37bin%\vbsp.exe" "%MAPNAME%.vmf" "%v37bin%\vvis.exe" -fast "%MAPNAME%.vmf" "%v37bin%\vrad.exe" -bounce 2 -noextra -fast "%MAPNAME%.vmf" goto copymapv37css :v37cssmap_novrcomp :: Compiles the map - No Vis/Rad. set start_time=%date% at %time% "%v37bin%\vbsp.exe" "%MAPNAME%.vmf" goto copymapv37css :copymapv37css :: Copies the compiled BSP to %VPROJECT%'s maps folder. echo. echo. echo Copying %mapname%.bsp to %vproject%\maps echo. attrib -r "%vproject%\maps\*.bsp" copy "%MAPNAME%.bsp" "%vproject%\maps\" echo. echo Compile Started: %start_time% echo. echo Compile Finished: %date% at %time% echo. :: This allows you to read the compile log. pause goto Square1 :mapcssv36 if not exist "%v36bin%\vbsp.exe" goto vprojecterror :: Get user input. cls echo %buildnumber% echo. echo Compiles a map for CS:S (v36 Engine). echo CTRL-C to cancel. echo. echo Enter the path to the map without extention (Ex: C:\maps\e3_lab) set /p MAPNAME=and then press enter: if not exist "%mapname%.vmf" goto mappatherror :: Sets up mod path. set VPROJECT=C:\tf2\cstrike :mapcssv36_p2 cls echo %buildnumber% echo. echo Compiles a map for CS:S (v36 Engine). echo CTRL-C to cancel. echo. echo *************************** echo * * echo * Select Compile Type * echo * * echo * 1. Full Compile * echo * 2. Fast Compile * echo * 3. No Vis/Rad Compile * echo * * echo *************************** echo. set /p compiletype=Select Compile Type: if '%compiletype%'=='1' goto v36cssmap_fullcomp if '%compiletype%'=='2' goto v36cssmap_fastcomp if '%compiletype%'=='3' goto v36cssmap_novrcomp :: Skips the ifs and tells you to fuck off if the wrong text is entered. :: Seriously.. 1, 2 and 3 are the options, how can you fuck this up? :: Go on a diet Mr. Fatty fingers!! echo. echo The compile type "%compiletype%" is not valid, please try again. echo. pause goto mapcssv36_p2 :v36cssmap_fullcomp :: Compiles the map - Normal. set start_time=%date% at %time% "%v36bin%\vbsp.exe" "%MAPNAME%.vmf" "%v36bin%\vvis.exe" "%MAPNAME%.vmf" "%v36bin%\vrad.exe" "%MAPNAME%.vmf" goto copymapv36css :v36cssmap_fastcomp :: Compiles the map - Fast. set start_time=%date% at %time% "%v36bin%\vbsp.exe" "%MAPNAME%.vmf" "%v36bin%\vvis.exe" -fast "%MAPNAME%.vmf" "%v36bin%\vrad.exe" -bounce 2 -noextra -fast "%MAPNAME%.vmf" goto copymapv36css :v36cssmap_novrcomp :: Compiles the map - No Vis/Rad. set start_time=%date% at %time% "%v36bin%\vbsp.exe" "%MAPNAME%.vmf" goto copymapv36css :copymapv36css :: Copies the compiled BSP to %VPROJECT%'s maps folder. echo. echo. echo Copying %mapname%.bsp to %vproject%\maps echo. attrib -r "%vproject%\maps\*.bsp" copy "%MAPNAME%.bsp" "%vproject%\maps\" echo. echo Compile Started: %start_time% echo. echo Compile Finished: %date% at %time% echo. :: This allows you to read the compile log. pause goto Square1 :v37mdlcss if not exist "%v36bin%\studiomdl.exe" goto vprojecterror cls echo %buildnumber% echo. echo Compiles a model for CS:S (v37 engine). echo CTRL-C to cancel. echo. :: Get user input echo Enter the path to the qc (Ex: C:\models\weapons\v_357.qc) set /p QC=and then press enter: if not exist "%QC%" goto modelpatherror :: Sets up mod path. set VPROJECT=C:\hl2\cstrike :: Compiles the model. set start_time=%date% at %time% "%v37bin%\studiomdl.exe" "%qc%" echo. echo Compile Started: %start_time% echo. echo Compile Finished: %date% at %time% echo. :: This allows you to read the compile log. pause goto Square1 :v36mdlcss if not exist "%v36bin%\studiomdl.exe" goto vprojecterror cls echo %buildnumber% echo. echo Compiles a model for CS:S (v36 engine). echo CTRL-C to cancel. echo. :: Get user input echo Enter the path to the qc (Ex: C:\models\weapons\v_357.qc) set /p QC=and then press enter: if not exist "%QC%" goto modelpatherror :: Sets up mod path. set VPROJECT=C:\tf2\cstrike :: Compiles the model. set start_time=%date% at %time% "%v36bin%\studiomdl.exe" "%qc%" echo. echo Compile Started: %start_time% echo. echo Compile Finished: %date% at %time% echo. :: This allows you to read the compile log. pause goto Square1 :v36mdlhl2 if not exist "%v36bin%\studiomdl.exe" goto vprojecterror cls echo %buildnumber% echo. echo Compiles a model for HL2 (v36 engine). echo CTRL-C to cancel. echo. :: Get user input echo Enter the path to the qc (Ex: C:\models\weapons\v_357.qc) set /p QC=and then press enter: if not exist "%QC%" goto modelpatherror :: Sets up mod path. set VPROJECT=C:\tf2\hl2 :: Compiles the model. set start_time=%date% at %time% "%v36bin%\studiomdl.exe" "%qc%" echo. echo Compile Started: %start_time% echo. echo Compile Finished: %date% at %time% echo. :: This allows you to read the compile log. pause goto Square1 :v37mdlhl2 if not exist "%v37bin%\studiomdl.exe" goto vprojecterror cls echo %buildnumber% echo. echo Compiles a model for HL2 (v37 engine). echo CTRL-C to cancel. echo. :: Get user input echo Enter the path to the qc (Ex: C:\models\weapons\v_357.qc) set /p QC=and then press enter: if not exist "%QC%" goto modelpatherror :: Sets up mod path. set VPROJECT=C:\hl2\hl2 :: Compiles the model. set start_time=%date% at %time% "%v37bin%\studiomdl.exe" "%qc%" echo. echo Compile Started: %start_time% echo. echo Compile Finished: %date% at %time% echo. :: This allows you to read the compile log. pause goto Square1 :v36mdltf2 if not exist "%v36bin%\studiomdl.exe" goto vprojecterror cls echo %buildnumber% echo. echo Compiles a model for TF2 (v36 engine). echo CTRL-C to cancel. echo. :: Get user input echo Enter the path to the qc (Ex: C:\models\weapons\v_357.qc) set /p QC=and then press enter: if not exist "%QC%" goto modelpatherror :: Sets up mod path. set VPROJECT=C:\tf2\tf2 :: Compiles the model. set start_time=%date% at %time% "%v36bin%\studiomdl.exe" "%qc%" echo. echo Compile Started: %start_time% echo. echo Compile Finished: %date% at %time% echo. :: This allows you to read the compile log. pause goto Square1 :maphl2v36 if not exist "%v36bin%\vbsp.exe" goto vprojecterror :: Get user input. cls echo %buildnumber% echo. echo Compiles a map for HL2 (v36 Engine). echo CTRL-C to cancel. echo. echo Enter the path to the map without extention (Ex: C:\maps\e3_lab) set /p MAPNAME=and then press enter: if not exist "%mapname%.vmf" goto mappatherror :: Sets up mod path. set VPROJECT=C:\tf2\hl2 :maphl2v36_p2 cls echo %buildnumber% echo. echo Compiles a map for HL2 (v36 Engine). echo CTRL-C to cancel. echo. echo *************************** echo * * echo * Select Compile Type * echo * * echo * 1. Full Compile * echo * 2. Fast Compile * echo * 3. No Vis/Rad Compile * echo * * echo *************************** echo. set /p compiletype=Select Compile Type: if '%compiletype%'=='1' goto v36hl2map_fullcomp if '%compiletype%'=='2' goto v36hl2map_fastcomp if '%compiletype%'=='3' goto v36hl2map_novrcomp :: Skips the ifs and tells you to fuck off if the wrong text is entered. :: Seriously.. 1, 2 and 3 are the options, how can you fuck this up? :: Go on a diet Mr. Fatty fingers!! echo. echo The compile type "%compiletype%" is not valid, please try again. echo. pause goto maphl2v36_p2 :v36hl2map_fullcomp :: Compiles the map - Normal. set start_time=%date% at %time% "%v36bin%\vbsp.exe" "%MAPNAME%.vmf" "%v36bin%\vvis.exe" "%MAPNAME%.vmf" "%v36bin%\vrad.exe" "%MAPNAME%.vmf" goto copymapv36hl2 :v36hl2map_fastcomp :: Compiles the map - Fast. set start_time=%date% at %time% "%v36bin%\vbsp.exe" "%MAPNAME%.vmf" "%v36bin%\vvis.exe" -fast "%MAPNAME%.vmf" "%v36bin%\vrad.exe" -bounce 2 -noextra -fast "%MAPNAME%.vmf" goto copymapv36hl2 :v36hl2map_novrcomp :: Compiles the map - No Vis/Rad. set start_time=%date% at %time% "%v36bin%\vbsp.exe" "%MAPNAME%.vmf" goto copymapv36hl2 :copymapv36hl2 :: Copies the compiled BSP to %VPROJECT%'s maps folder. echo. echo. echo Copying %mapname%.bsp to %vproject%\maps echo. attrib -r "%vproject%\maps\*.bsp" copy "%MAPNAME%.bsp" "%vproject%\maps\" echo. echo Compile Started: %start_time% echo. echo Compile Finished: %date% at %time% echo. :: This allows you to read the compile log. pause goto Square1 :maphl2v37 if not exist "%v37bin%\vbsp.exe" goto vprojecterror :: Get user input. cls echo %buildnumber% echo. echo Compiles a map for HL2 (v37 Engine). echo CTRL-C to cancel. echo. echo Enter the path to the map without extention (Ex: C:\maps\e3_lab) set /p MAPNAME=and then press enter: if not exist "%mapname%.vmf" goto mappatherror :: Sets up mod path. set VPROJECT=C:\hl2\hl2 :maphl2v37_p2 cls echo %buildnumber% echo. echo Compiles a map for HL2 (v37 Engine). echo CTRL-C to cancel. echo. echo *************************** echo * * echo * Select Compile Type * echo * * echo * 1. Full Compile * echo * 2. Fast Compile * echo * 3. No Vis/Rad Compile * echo * * echo *************************** echo. set /p compiletype=Select Compile Type: if '%compiletype%'=='1' goto v37hl2map_fullcomp if '%compiletype%'=='2' goto v37hl2map_fastcomp if '%compiletype%'=='3' goto v37hl2map_novrcomp :: Skips the ifs and tells you to fuck off if the wrong text is entered. :: Seriously.. 1, 2 and 3 are the options, how can you fuck this up? :: Go on a diet Mr. Fatty fingers!! echo. echo The compile type "%compiletype%" is not valid, please try again. echo. pause goto maphl2v37_p2 :v37hl2map_fullcomp :: Compiles the map - Normal. set start_time=%date% at %time% "%v37bin%\vbsp.exe" "%MAPNAME%.vmf" "%v37bin%\vvis.exe" "%MAPNAME%.vmf" "%v37bin%\vrad.exe" "%MAPNAME%.vmf" goto copymapv37hl2 :v37hl2map_fastcomp :: Compiles the map - Fast. set start_time=%date% at %time% "%v37bin%\vbsp.exe" "%MAPNAME%.vmf" "%v37bin%\vvis.exe" -fast "%MAPNAME%.vmf" "%v37bin%\vrad.exe" -bounce 2 -noextra -fast "%MAPNAME%.vmf" goto copymapv37hl2 :v37hl2map_novrcomp :: Compiles the map - No Vis/Rad. set start_time=%date% at %time% "%v37bin%\vbsp.exe" "%MAPNAME%.vmf" goto copymapv37hl2 :copymapv37hl2 :: Copies the compiled BSP to %VPROJECT%'s maps folder. echo. echo. echo Copying %mapname%.bsp to %vproject%\maps echo. attrib -r "%vproject%\maps\*.bsp" copy "%MAPNAME%.bsp" "%vproject%\maps\" echo. echo Compile Started: %start_time% echo. echo Compile Finished: %date% at %time% echo. :: This allows you to read the compile log. pause goto Square1 :maptf2v36 if not exist "%v36bin%\vbsp.exe" goto vprojecterror :: Get user input. cls echo %buildnumber% echo. echo Compiles a map for TF2 (v36 Engine). echo CTRL-C to cancel. echo. echo Enter the path to the map without extention (Ex: C:\maps\e3_lab) set /p MAPNAME=and then press enter: if not exist "%mapname%.vmf" goto mappatherror :: Sets up mod path. set VPROJECT=C:\tf2\tf2 :maptf2v36_p2 cls echo %buildnumber% echo. echo Compiles a map for TF2 (v36 Engine). echo CTRL-C to cancel. echo. echo *************************** echo * * echo * Select Compile Type * echo * * echo * 1. Full Compile * echo * 2. Fast Compile * echo * 3. No Vis/Rad Compile * echo * * echo *************************** echo. set /p compiletype=Select Compile Type: if '%compiletype%'=='1' goto v36tf2map_fullcomp if '%compiletype%'=='2' goto v36tf2map_fastcomp if '%compiletype%'=='3' goto v36tf2map_novrcomp :: Skips the ifs and tells you to fuck off if the wrong text is entered. :: Seriously.. 1, 2 and 3 are the options, how can you fuck this up? :: Go on a diet Mr. Fatty fingers!! echo. echo The compile type "%compiletype%" is not valid, please try again. echo. pause goto maptf2v36_p2 :v36tf2map_fullcomp :: Compiles the map - Normal. set start_time=%date% at %time% "%v36bin%\vbsp.exe" "%MAPNAME%.vmf" "%v36bin%\vvis.exe" "%MAPNAME%.vmf" "%v36bin%\vrad.exe" "%MAPNAME%.vmf" goto copymapv36tf2 :v36tf2map_fastcomp :: Compiles the map - Fast. set start_time=%date% at %time% "%v36bin%\vbsp.exe" "%MAPNAME%.vmf" "%v36bin%\vvis.exe" -fast "%MAPNAME%.vmf" "%v36bin%\vrad.exe" -bounce 2 -noextra -fast "%MAPNAME%.vmf" goto copymapv36tf2 :v36tf2map_novrcomp :: Compiles the map - No Vis/Rad. set start_time=%date% at %time% "%v36bin%\vbsp.exe" "%MAPNAME%.vmf" goto copymapv36tf2 :copymapv36tf2 :: Copies the compiled BSP to %VPROJECT%'s maps folder. echo. echo. echo Copying %mapname%.bsp to %vproject%\maps echo. attrib -r "%vproject%\maps\*.bsp" copy "%MAPNAME%.bsp" "%vproject%\maps\" echo. echo Compile Started: %start_time% echo. echo Compile Finished: %date% at %time% echo. :: This allows you to read the compile log. pause goto Square1 :modelpatherror cls echo %buildnumber% echo. echo Error: Path entered is invalid. echo. echo Press any key to return to the main menu . . . pause > NUL goto Square1 :mappatherror cls echo %buildnumber% echo. echo Error: Path entered is invalid. echo. echo Press any key to return to the main menu . . . pause > NUL goto Square1 :vprojecterror :: Check your beta directories, they're fucked up. cls echo %buildnumber% echo. echo Error: Paths incorrect, please check your paths and try again. echo. echo Team GabeN Development Paths: echo. echo HL2Beta (v37 Engine): C:\hl2\hl2 echo HL2Beta (v36 Engine): C:\tf2\hl2 echo TF2Beta (v36 Engine): C:\tf2\tf2 echo CSSBeta (v36 Engine): C:\tf2\cstrike echo CSSBeta (v37 Engine): C:\hl2\cstrike echo. echo Press any key to exit . . . pause > NUL goto end :credits :: Y HALLO THAR, SECKS? :: List may need some work. cls echo %buildnumber% echo. echo Team GabeN is: echo. echo ben5015se (Resigned) echo Mr_Filament echo Krunchy echo Essel echo Mugofdoom echo Ave echo bob00100 echo BosmouZ echo slkandy (AKA: slkneo) echo. Echo Press any key to return to the main menu . . . pause > NUL goto Square1 :END ENDLOCAL