User:Jenkins08/Batch: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (changed a link)
(Big Cleanup (!!!) to Conform to Wiki standards (GeSHi))
 
(One intermediate revision by the same user not shown)
Line 7: Line 7:


==== backup_bsp.bat ====
==== backup_bsp.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
TITLE Valve Map Backup Utility [BSP]
TITLE Valve Map Backup Utility [BSP]
SET DIR=MAP_BACKUP_BSP
SET DIR=MAP_BACKUP_BSP
SET NAME=MAP_BACKUP_BSP
SET NAME=MAP_BACKUP_BSP
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET INC=Include lists
SET INC=Include lists
MKDIR %DIR%
MKDIR %DIR%
ECHO ------------------------
ECHO ------------------------
ECHO Valve Map Backup Utility Inclusion Generator [BSP] © 2008 jenkins_08. All Rights Reserved.
ECHO Valve Map Backup Utility Inclusion Generator [BSP] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
DIR %1 /b /o:n /s | FIND /i ".bsp" > "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".bsp" > "%DIR%\include.txt"
ECHO %INC% Sucessfully Generated...
ECHO %INC% Sucessfully Generated...
ECHO ------------------------
ECHO ------------------------
ECHO Valve Map Backup Utility Rar Archiver [BSP] © 2008 jenkins_08. All Rights Reserved.
ECHO Valve Map Backup Utility Rar Archiver [BSP] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\MAP_BACKUP_BSP.rar" @"%DIR%\include.txt"
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\MAP_BACKUP_BSP.rar" @"%DIR%\include.txt"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
DEL "%DIR%\include.txt"
DEL "%DIR%\include.txt"
CLS
CLS
ECHO ------------------------
ECHO ------------------------
ECHO Valve Map Backup Utility [BSP] © 2008 jenkins_08. All Rights Reserved.
ECHO Valve Map Backup Utility [BSP] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
ECHO Backup Completed at %TIME% - %DATE%
ECHO Backup Completed at %TIME% - %DATE%
PAUSE
PAUSE
EXIT
EXIT
</code>
</source>


----
----


==== backup_vmf.bat ====
==== backup_vmf.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
TITLE Valve Map Backup Utility [VMF]
TITLE Valve Map Backup Utility [VMF]
SET DIR=MAP_BACKUP_VMF
SET DIR=MAP_BACKUP_VMF
SET NAME=MAP_BACKUP_VMF
SET NAME=MAP_BACKUP_VMF
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET INC=Include lists
SET INC=Include lists
MKDIR %DIR%
MKDIR %DIR%
ECHO ------------------------
ECHO ------------------------
ECHO Valve Map Backup Utility Inclusion Generator [VMF] © 2008 jenkins_08. All Rights Reserved.
ECHO Valve Map Backup Utility Inclusion Generator [VMF] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
DIR %1 /b /o:n /s | FIND /i ".vmf" > "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".vmf" > "%DIR%\include.txt"
ECHO %INC% Sucessfully Generated...
ECHO %INC% Sucessfully Generated...
ECHO ------------------------
ECHO ------------------------
ECHO Valve Map Backup Utility Rar Archiver [VMF] © 2008 jenkins_08. All Rights Reserved.
ECHO Valve Map Backup Utility Rar Archiver [VMF] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\MAP_BACKUP_VMF.rar" @"%DIR%\include.txt"
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\MAP_BACKUP_VMF.rar" @"%DIR%\include.txt"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
DEL "%DIR%\include.txt"
DEL "%DIR%\include.txt"
CLS
CLS
ECHO ------------------------
ECHO ------------------------
ECHO Valve Map Backup Utility [VMF] © 2008 jenkins_08. All Rights Reserved.
ECHO Valve Map Backup Utility [VMF] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
ECHO Backup Completed at %TIME% - %DATE%
ECHO Backup Completed at %TIME% - %DATE%
PAUSE
PAUSE
EXIT
EXIT
</code>
</source>


----
----


==== backup_models.bat ====
==== backup_models.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
TITLE Backup Utility [MODELS]
TITLE Backup Utility [MODELS]
SET DIR=BACKUP_MODELS
SET DIR=BACKUP_MODELS
SET NAME=BACKUP_MODELS
SET NAME=BACKUP_MODELS
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET INC=Include lists
SET INC=Include lists
MKDIR %DIR%
MKDIR %DIR%
ECHO ------------------------
ECHO ------------------------
ECHO Backup Utility Inclusion Generator [MODELS] © 2008 jenkins_08. All Rights Reserved.
ECHO Backup Utility Inclusion Generator [MODELS] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
DIR %1 /b /o:n /s | FIND /i ".mdl" > "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".mdl" > "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".vtx" >> "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".vtx" >> "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".phy" >> "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".phy" >> "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".jpg" >> "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".jpg" >> "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".vvd" >> "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".vvd" >> "%DIR%\include.txt"
ECHO %INC% Sucessfully Generated...
ECHO %INC% Sucessfully Generated...
ECHO ------------------------
ECHO ------------------------
ECHO Backup Utility Rar Archiver [MODELS] © 2008 jenkins_08. All Rights Reserved.
ECHO Backup Utility Rar Archiver [MODELS] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\BACKUP_MODELS.rar" @"%DIR%\include.txt"
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\BACKUP_MODELS.rar" @"%DIR%\include.txt"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
DEL "%DIR%\include.txt"
DEL "%DIR%\include.txt"
ECHO ------------------------
ECHO ------------------------
ECHO Backup Utility [MODELS] © 2008 jenkins_08. All Rights Reserved.
ECHO Backup Utility [MODELS] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
ECHO Backup Completed at %TIME% - %DATE%
ECHO Backup Completed at %TIME% - %DATE%
PAUSE
PAUSE
EXIT
EXIT
</code>
</source>


----
----


==== backup_tga.bat ====
==== backup_tga.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
TITLE Backup Utility [TGA]
TITLE Backup Utility [TGA]
SET DIR=BACKUP_TGA
SET DIR=BACKUP_TGA
SET NAME=BACKUP_TGA
SET NAME=BACKUP_TGA
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET INC=Include lists
SET INC=Include lists
MKDIR %DIR%
MKDIR %DIR%
ECHO ------------------------
ECHO ------------------------
ECHO Backup Utility Inclusion Generator [TGA] © 2008 jenkins_08. All Rights Reserved.
ECHO Backup Utility Inclusion Generator [TGA] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
DIR %1 /b /o:n /s | FIND /i ".tga" > "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".tga" > "%DIR%\include.txt"
ECHO %INC% Sucessfully Generated...
ECHO %INC% Sucessfully Generated...
ECHO ------------------------
ECHO ------------------------
ECHO Backup Utility Rar Archiver [TGA] © 2008 jenkins_08. All Rights Reserved.
ECHO Backup Utility Rar Archiver [TGA] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\BACKUP_TGA.rar" @"%DIR%\include.txt"
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\BACKUP_TGA.rar" @"%DIR%\include.txt"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
DEL "%DIR%\include.txt"
DEL "%DIR%\include.txt"
ECHO ------------------------
ECHO ------------------------
ECHO Backup Utility [TGA] © 2008 jenkins_08. All Rights Reserved.
ECHO Backup Utility [TGA] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
ECHO Backup Completed at %TIME% - %DATE%
ECHO Backup Completed at %TIME% - %DATE%
PAUSE
PAUSE
EXIT
EXIT
</code>
</source>


----
----


==== backup_vmt_vtf.bat ====
==== backup_vmt_vtf.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
TITLE Backup Utility [VTF]
TITLE Backup Utility [VTF]
SET DIR=BACKUP_VTF
SET DIR=BACKUP_VTF
SET NAME=BACKUP_VTF
SET NAME=BACKUP_VTF
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET INC=Include lists
SET INC=Include lists
MKDIR %DIR%
MKDIR %DIR%
ECHO ------------------------
ECHO ------------------------
ECHO Backup Utility Inclusion Generator [VTF] © 2008 jenkins_08. All Rights Reserved.
ECHO Backup Utility Inclusion Generator [VTF] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
DIR %1 /b /o:n /s | FIND /i ".vtf" > "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".vtf" > "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".vmt" >> "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".vmt" >> "%DIR%\include.txt"
ECHO %INC% Sucessfully Generated...
ECHO %INC% Sucessfully Generated...
ECHO ------------------------
ECHO ------------------------
ECHO Backup Utility Rar Archiver [VTF] © 2008 jenkins_08. All Rights Reserved.
ECHO Backup Utility Rar Archiver [VTF] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\BACKUP_VTF.rar" @"%DIR%\include.txt"
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\BACKUP_VTF.rar" @"%DIR%\include.txt"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
DEL "%DIR%\include.txt"
DEL "%DIR%\include.txt"
ECHO ------------------------
ECHO ------------------------
ECHO Backup Utility [VTF] © 2008 jenkins_08. All Rights Reserved.
ECHO Backup Utility [VTF] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
ECHO Backup Completed at %TIME% - %DATE%
ECHO Backup Completed at %TIME% - %DATE%
PAUSE
PAUSE
EXIT
EXIT
</code>
</source>


----
----


==== backup_sounds.bat ====
==== backup_sounds.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
TITLE Backup Utility [WAV]
TITLE Backup Utility [WAV]
SET DIR=BACKUP_WAV
SET DIR=BACKUP_WAV
SET NAME=BACKUP_WAV
SET NAME=BACKUP_WAV
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET INC=Include lists
SET INC=Include lists
MKDIR %DIR%
MKDIR %DIR%
ECHO ------------------------
ECHO ------------------------
ECHO Backup Utility Inclusion Generator [WAV] © 2008 jenkins_08. All Rights Reserved.
ECHO Backup Utility Inclusion Generator [WAV] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
DIR %1 /b /o:n /s | FIND /i ".wav" > "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".wav" > "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".mp3" >> "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".mp3" >> "%DIR%\include.txt"
ECHO %INC% Sucessfully Generated...
ECHO %INC% Sucessfully Generated...
ECHO ------------------------
ECHO ------------------------
ECHO Backup Utility Rar Archiver [WAV] © 2008 jenkins_08. All Rights Reserved.
ECHO Backup Utility Rar Archiver [WAV] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\BACKUP_WAV.rar" @"%DIR%\include.txt"
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\BACKUP_WAV.rar" @"%DIR%\include.txt"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
DEL "%DIR%\include.txt"
DEL "%DIR%\include.txt"
ECHO ------------------------
ECHO ------------------------
ECHO Backup Utility [WAV] © 2008 jenkins_08. All Rights Reserved.
ECHO Backup Utility [WAV] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO ------------------------
ECHO Backup Completed at %TIME% - %DATE%
ECHO Backup Completed at %TIME% - %DATE%
PAUSE
PAUSE
EXIT
EXIT
</code>
</source>


----
----
Line 213: Line 213:


==== buildmap_anal_final_MULTI9.bat ====
==== buildmap_anal_final_MULTI9.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
 
SET GAME=C:\Program Files\Steam\SteamApps\SourceMods\YourMod
SET GAME=C:\Program Files\Steam\SteamApps\SourceMods\YourMod
SET MAPDIR=%GAME%\maps
SET MAPDIR=%GAME%\maps
 
PUSHD %~dp1
PUSHD %~dp1
 
REM !!! FIRST !!!
REM !!! FIRST !!!
 
ECHO -------------------------------
ECHO -------------------------------
ECHO ------------------------------- >> "compile_times.log"
ECHO ------------------------------- >> "compile_times.log"
ECHO Drag and Drop Compiler v0.2
ECHO Drag and Drop Compiler v0.2
ECHO Drag and Drop Compiler v0.2 >> "compile_times.log"
ECHO Drag and Drop Compiler v0.2 >> "compile_times.log"
ECHO Copyright 2009 Jenkins08
ECHO Copyright 2009 Jenkins08
ECHO Copyright 2009 Jenkins08 >> "compile_times.log"
ECHO Copyright 2009 Jenkins08 >> "compile_times.log"
ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"
 
ECHO Compiling %~n1
ECHO Compiling %~n1
ECHO Compiling %~n1 >> "compile_times.log"
ECHO Compiling %~n1 >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"
 
"%sourcesdk%\bin\orangebox\bin\vbsp.exe" -game "%GAME%" %~n1.vmf
"%sourcesdk%\bin\orangebox\bin\vbsp.exe" -game "%GAME%" %~n1.vmf
ECHO Finished VBSP: %TIME% - %DATE%
ECHO Finished VBSP: %TIME% - %DATE%
ECHO Finished VBSP: %TIME% - %DATE% >> "compile_times.log"
ECHO Finished VBSP: %TIME% - %DATE% >> "compile_times.log"
 
"%sourcesdk%\bin\orangebox\bin\vvis.exe" -fast -game "%GAME%" %~n1.vmf
"%sourcesdk%\bin\orangebox\bin\vvis.exe" -fast -game "%GAME%" %~n1.vmf
ECHO Finished VVIS: %TIME% - %DATE%
ECHO Finished VVIS: %TIME% - %DATE%
ECHO Finished VVIS: %TIME% - %DATE% >> "compile_times.log"
ECHO Finished VVIS: %TIME% - %DATE% >> "compile_times.log"
 
"%sourcesdk%\bin\orangebox\bin\vrad.exe" -both -game "%GAME%" %~n1.vmf
"%sourcesdk%\bin\orangebox\bin\vrad.exe" -both -game "%GAME%" %~n1.vmf
ECHO Finished VRAD: %TIME% - %
ECHO Finished VRAD: %TIME% - %DATE%
ECHO Finished VRAD: %TIME% - %DATE% >> "compile_times.log"
 
"%sourcesdk%\bin\


That does it for the Map compilers, if you need to use Episodic SDK instead of orangebox, hit Ctrl H in notepad and replace "orangebox" with "ep1" without the quotations :)
That does it for the Map compilers, if you need to use Episodic SDK instead of orangebox, hit Ctrl H in notepad and replace "orangebox" with "ep1" without the quotations :)
Line 696: Line 696:


==== ep1_LightmappedGeneric.bat ====
==== ep1_LightmappedGeneric.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
"%sourcesdk%\bin\ep1\bin\vtex.exe" -nopause -shader LightmappedGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
"%sourcesdk%\bin\ep1\bin\vtex.exe" -nopause -shader LightmappedGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
REM PAUSE
</code>
</source>
{{Note|The PAUSE is commented out to increase workflow}}
{{Note|The PAUSE is commented out to increase workflow}}


==== ep1_Sky.bat ====
==== ep1_Sky.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
"%sourcesdk%\bin\ep1\bin\vtex.exe" -nopause -shader Sky %1 %2 %3 %4 %5 %6 %7 %8 %9
"%sourcesdk%\bin\ep1\bin\vtex.exe" -nopause -shader Sky %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
REM PAUSE
</code>
</source>
{{Note|The PAUSE is commented out to increase workflow}}
{{Note|The PAUSE is commented out to increase workflow}}


==== ep1_UnlitGeneric.bat ====
==== ep1_UnlitGeneric.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
"%sourcesdk%\bin\ep1\bin\vtex.exe" -nopause -shader UnlitGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
"%sourcesdk%\bin\ep1\bin\vtex.exe" -nopause -shader UnlitGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
REM PAUSE
</code>
</source>
{{Note|The PAUSE is commented out to increase workflow}}
{{Note|The PAUSE is commented out to increase workflow}}


==== ep1_VertexLitGeneric.bat ====
==== ep1_VertexLitGeneric.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
"%sourcesdk%\bin\ep1\bin\vtex.exe" -nopause -shader VertexLitGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
"%sourcesdk%\bin\ep1\bin\vtex.exe" -nopause -shader VertexLitGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
REM PAUSE
</code>
</source>
{{Note|The PAUSE is commented out to increase workflow}}
{{Note|The PAUSE is commented out to increase workflow}}


==== ep1_Water.bat ====
==== ep1_Water.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
"%sourcesdk%\bin\ep1\bin\vtex.exe" -nopause -shader Water %1 %2 %3 %4 %5 %6 %7 %8 %9
"%sourcesdk%\bin\ep1\bin\vtex.exe" -nopause -shader Water %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
REM PAUSE
</code>
</source>
{{Note|The PAUSE is commented out to increase workflow}}
{{Note|The PAUSE is commented out to increase workflow}}


Line 738: Line 738:


==== orangebox_LightmappedGeneric.bat ====
==== orangebox_LightmappedGeneric.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
"%sourcesdk%\bin\orangebox\bin\vtex.exe" -nopause -shader LightmappedGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
"%sourcesdk%\bin\orangebox\bin\vtex.exe" -nopause -shader LightmappedGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
REM PAUSE
</code>
</source>
{{Note|The PAUSE is commented out to increase workflow}}
{{Note|The PAUSE is commented out to increase workflow}}


==== orangebox_Sky.bat ====
==== orangebox_Sky.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
"%sourcesdk%\bin\orangebox\bin\vtex.exe" -nopause -shader Sky %1 %2 %3 %4 %5 %6 %7 %8 %9
"%sourcesdk%\bin\orangebox\bin\vtex.exe" -nopause -shader Sky %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
REM PAUSE
</code>
</source>
{{Note|The PAUSE is commented out to increase workflow}}
{{Note|The PAUSE is commented out to increase workflow}}
==== orangebox_UnlitGeneric.bat ====
==== orangebox_UnlitGeneric.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
"%sourcesdk%\bin\orangebox\bin\vtex.exe" -nopause -shader UnlitGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
"%sourcesdk%\bin\orangebox\bin\vtex.exe" -nopause -shader UnlitGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
REM PAUSE
</code>
</source>
{{Note|The PAUSE is commented out to increase workflow}}
{{Note|The PAUSE is commented out to increase workflow}}


==== orangebox_VertexLitGeneric.bat ====
==== orangebox_VertexLitGeneric.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
"%sourcesdk%\bin\orangebox\bin\vtex.exe" -nopause -shader VertexLitGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
"%sourcesdk%\bin\orangebox\bin\vtex.exe" -nopause -shader VertexLitGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
REM PAUSE
</code>
</source>
{{Note|The PAUSE is commented out to increase workflow}}
{{Note|The PAUSE is commented out to increase workflow}}


==== orangebox_Water.bat ====
==== orangebox_Water.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
"%sourcesdk%\bin\orangebox\bin\vtex.exe" -nopause -shader Water %1 %2 %3 %4 %5 %6 %7 %8 %9
"%sourcesdk%\bin\orangebox\bin\vtex.exe" -nopause -shader Water %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
REM PAUSE
</code>
</source>
{{Note|The PAUSE is commented out to increase workflow}}
{{Note|The PAUSE is commented out to increase workflow}}


Line 780: Line 780:
:More to come in this section
:More to come in this section
==== listall_bsp.bat ====
==== listall_bsp.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
PUSHD %1
PUSHD %1
DIR %1 /a-d /o /s /b | FIND /i ".bsp" > "bsp_list.txt"
DIR %1 /a-d /o /s /b | FIND /i ".bsp" > "bsp_list.txt"
POPD
POPD
start /w notepad "bsp_list.txt" /s
start /w notepad "bsp_list.txt" /s
PAUSE
PAUSE
</code>
</source>


==== listall_materials.bat ====
==== listall_materials.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
PUSHD %1
PUSHD %1
DIR %1 /a-d /o /s /b | FIND /i ".vtf" > "mat_list.txt"
DIR %1 /a-d /o /s /b | FIND /i ".vtf" > "mat_list.txt"
DIR %1 /a-d /o /s /b | FIND /i ".vmt" >> "mat_list.txt"
DIR %1 /a-d /o /s /b | FIND /i ".vmt" >> "mat_list.txt"
POPD
POPD
start /w notepad "mat_list.txt" /s
start /w notepad "mat_list.txt" /s
PAUSE
PAUSE
</code>
</source>


==== listall_models.bat ====
==== listall_models.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
PUSHD %1
PUSHD %1
DIR %1 /a-d /o:n /s /b | FIND /i ".ani" > "models_list.txt"
DIR %1 /a-d /o:n /s /b | FIND /i ".ani" > "models_list.txt"
DIR %1 /a-d /o:n /s /b | FIND /i ".mdl" >> "models_list.txt"
DIR %1 /a-d /o:n /s /b | FIND /i ".mdl" >> "models_list.txt"
DIR %1 /a-d /o:n /s /b | FIND /i ".phy" >> "models_list.txt"
DIR %1 /a-d /o:n /s /b | FIND /i ".phy" >> "models_list.txt"
DIR %1 /a-d /o:n /s /b | FIND /i ".vtx" >> "models_list.txt"
DIR %1 /a-d /o:n /s /b | FIND /i ".vtx" >> "models_list.txt"
DIR %1 /a-d /o:n /s /b | FIND /i ".vvd" >> "models_list.txt"
DIR %1 /a-d /o:n /s /b | FIND /i ".vvd" >> "models_list.txt"
POPD
POPD
start /w notepad "models_list.txt" /s
start /w notepad "models_list.txt" /s
PAUSE
PAUSE
</code>
</source>


==== listall_vmf.bat ====
==== listall_vmf.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
PUSHD %1
PUSHD %1
DIR %1 /a-d /o /s /b | FIND /i ".vmf" > "vmf_list.txt"
DIR %1 /a-d /o /s /b | FIND /i ".vmf" > "vmf_list.txt"
POPD
POPD
start /w notepad "vmf_list.txt" /s
start /w notepad "vmf_list.txt" /s
PAUSE
PAUSE
</code>
</source>


= GCF Extraction =
= GCF Extraction =
{{Note|HLLib IS required for the following GCF Scripts to work}}
:
* [http://nemesis.thewavelength.net/files/files/hllib210.zip Download HLLib Here]
MOVED TO [[User:Jenkins08/Batch/GCF]]
:
----


==== [[Counter Strike: Source]] ====
= Launchers =
<code>
Here are some handy mod launchers for Your Sourcemod :)
@ECHO OFF
==== launchmod.bat ====
SET SteamAppsDir=C:\Program Files\Steam\steamapps
<source lang=dos>
@ECHO OFF
ECHO ------------------------
TITLE %~nx0
ECHO GCF Utility Extractor [CSS] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------------------------
ECHO HLLib is © Ryan "Nemisis" Gregg
ECHO Mod Launcher Batchfile
ECHO ------------------------
ECHO (c) Copyright 2009 Jenkins08
ECHO ------------------------------------------
MKDIR cstrike
bin\HLExtract -v -p "%SteamAppsDir%\counter-strike source shared.gcf" -d cstrike -e root\cstrike
bin\HLExtract -v -p "%SteamAppsDir%\counter-strike source client.gcf" -d cstrike -e root\cstrike\bin
PAUSE
</code>


==== [[Half-Life 2]] ====
REM ------------------------------------------
{{Warning|Read "Below here is experimental"}}
REM You can change the next 3 Lines
<code>
SET MOD=%STEAM%\SteamApps\SourceMods\YourModHere
@ECHO OFF
SET APPID=420
SET SteamAppsDir=C:\Program Files\Steam\steamapps
SET OPTIONS=-fullscreen
ECHO ------------------------
ECHO GCF Utility Extractor [HL2 & HL2 2007] © 2008 jenkins_08. All Rights Reserved.
ECHO HLLib is © Ryan "Nemisis" Gregg
ECHO ------------------------
MKDIR hl2
bin\HLExtract -v -p "%SteamAppsDir%\source engine.gcf" -d hl2 -e root\hl2\cfg -e root\hl2\expressions -e root\hl2\resource -e root\hl2\scripts -e root\hl2\shaders
bin\HLExtract -v -p "%SteamAppsDir%\source materials.gcf" -d hl2 -e root\hl2\materials
bin\HLExtract -v -p "%SteamAppsDir%\source models.gcf" -d hl2 -e root\hl2\models
bin\HLExtract -v -p "%SteamAppsDir%\source sounds.gcf" -d hl2 -e root\hl2\sound
bin\HLExtract -v -p "%SteamAppsDir%\half-life 2 content.gcf" -d hl2 -e root\hl2\maps
REM Below here is experimental - Use for ORANGEBOX ONLY
REM MUST!!! MUST BE EXTRACTED ~--!!AFTER!!--~ The above Archives
bin\HLExtract -v -p "%SteamAppsDir%\source 2007 binaries.gcf" -d hl2 -e root\hl2\cfg -e root\hl2\expressions -e root\hl2\resource -e root\hl2\scripts -e root\hl2\shaders
bin\HLExtract -v -p "%SteamAppsDir%\source 2007 shared materials.gcf" -d hl2 -e root\hl2\materials -e root\hl2\particles
bin\HLExtract -v -p "%SteamAppsDir%\source 2007 shared models.gcf" -d hl2 -e root\hl2\models
bin\HLExtract -v -p "%SteamAppsDir%\source 2007 shared sounds.gcf" -d hl2 -e root\hl2\sound
PAUSE
EXIT
</code>


==== [[Half-Life 2: Episode One]] ====
REM ------------------------------------------
{{Warning|Read "Below here is experimental"}}
REM YOU SHOULDNT NEED TO CHANGE FROM HERE
<code>
"%STEAM%\Steam.exe" -gameidlaunch %APPID% -game "%MOD%" %OPTIONS%
@ECHO OFF
SET SteamAppsDir=C:\Program Files\Steam\steamapps
ECHO ------------------------
ECHO GCF Utility Extractor [EP1] © 2008 jenkins_08. All Rights Reserved.
ECHO HLLib is © Ryan "Nemisis" Gregg
ECHO ------------------------
MKDIR episodic
bin\HLExtract -v -p "%SteamAppsDir%\episode 1 shared.gcf" -d episodic -e root\episodic\cfg -e root\episodic\expressions -e root\episodic\materials -e root\episodic\models -e root\episodic\resource -e root\episodic\scripts -e root\episodic\sound
bin\HLExtract -v -p "%SteamAppsDir%\half-life 2 episode one.gcf" -d episodic -e root\episodic\maps
REM Below here is experimental - Use for ORANGEBOX ONLY
REM MUST!!! MUST BE EXTRACTED ~--!!AFTER!!--~ The above Archives
bin\HLExtract -v -p "%SteamAppsDir%\episodic 2007 shared.gcf" -d episodic -e root\episodic\expressions -e root\episodic\materials -e root\episodic\models -e root\episodic\particles -e root\episodic\resource -e root\episodic\scripts -e root\episodic\sound
PAUSE
</code>


==== [[Half-Life 2: Episode Two]] ====
EXIT
<code>
@ECHO OFF
SET SteamAppsDir=C:\Program Files\Steam\steamapps
SET Language=english
ECHO ------------------------
ECHO GCF Utility Extractor [EP2] © 2008 jenkins_08. All Rights Reserved.
ECHO HLLib is © Ryan "Nemisis" Gregg
ECHO ------------------------
MKDIR ep2
bin\HLExtract -v -p "%SteamAppsDir%\half-life 2 episode two %Language%.gcf" -d ep2 -e root\ep2\sound
bin\HLExtract -v -p "%SteamAppsDir%\episode two content.gcf" -d ep2 -e root\ep2\cfg -e root\ep2\models -e root\ep2\particles -e root\ep2\resources -e root\ep2\scripts -e root\ep2\sound
bin\HLExtract -v -p "%SteamAppsDir%\episode two maps.gcf" -d ep2 -e root\ep2\maps
bin\HLExtract -v -p "%SteamAppsDir%\episode two materials.gcf" -d ep2 -e root\ep2\materials
RMDIR /S /Q ep2\maps\graphs
PAUSE
</code>


==== [[Day of Defeat: Source]] ====
REM ------------------------------------------
<code>
REM Mod Launcher Batchfile
@ECHO OFF
REM (c) Copyright 2009 Jenkins08
SET SteamAppsDir=C:\Program Files\Steam\steamapps
REM ------------------------------------------
REM EOF
ECHO ------------------------
</source>
ECHO GCF Utility Extractor [DODS] © 2008 jenkins_08. All Rights Reserved.
ECHO HLLib is © Ryan "Nemisis" Gregg
ECHO ------------------------
MKDIR dods
bin\HLExtract -v -p "%SteamAppsDir%\day of defeat source.gcf" -d dods -e root\dod
PAUSE
</code>


==== [[Half-Life 2: Deathmatch]] ====
==== launchmod_devmode.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
SET SteamAppsDir=C:\Program Files\Steam\steamapps
TITLE %~nx0
ECHO ------------------------------------------
ECHO ------------------------
ECHO Mod Launcher Batchfile (DEVMODE)
ECHO GCF Utility Extractor [HL2DM] © 2008 jenkins_08. All Rights Reserved.
ECHO (c) Copyright 2009 Jenkins08
ECHO HLLib is © Ryan "Nemisis" Gregg
ECHO ------------------------------------------
ECHO ------------------------
 
REM ------------------------------------------
MKDIR dods
REM You can change the next 3 Lines
bin\HLExtract -v -p "%SteamAppsDir%\day of defeat source.gcf" -d dods -e root\dod
SET MOD=%STEAM%\SteamApps\SourceMods\YourModHere
PAUSE
SET APPID=420
</code>
SET OPTIONS=-fullscreen -toconsole -novid -condebug +sv_cheats 1 +jpeg_quality 100 +developer 2 +exec dev.cfg


And that wraps up the GCF Extraction scripts :)
REM ------------------------------------------
----
REM YOU SHOULDNT NEED TO CHANGE FROM HERE
"%STEAM%\Steam.exe" -gameidlaunch %APPID% -dev -game "%MOD%" %OPTIONS%


= Launchers =
EXIT
Here are some handy mod launchers for Your Sourcemod :)
==== launchmod.bat ====
<code>
@ECHO OFF
TITLE %~nx0
ECHO ------------------------------------------
ECHO Mod Launcher Batchfile
ECHO (c) Copyright 2009 Jenkins08
ECHO ------------------------------------------
REM ------------------------------------------
REM You can change the next 3 Lines
SET MOD=%STEAM%\SteamApps\SourceMods\YourModHere
SET APPID=420
SET OPTIONS=-fullscreen
REM ------------------------------------------
REM YOU SHOULDNT NEED TO CHANGE FROM HERE
"%STEAM%\Steam.exe" -gameidlaunch %APPID% -game "%MOD%" %OPTIONS%
EXIT
REM ------------------------------------------
REM Mod Launcher Batchfile
REM (c) Copyright 2009 Jenkins08
REM ------------------------------------------
REM EOF
</code>


==== launchmod_devmode.bat ====
REM ------------------------------------------
<code>
REM Mod Launcher Batchfile (DEVMODE)
@ECHO OFF
REM (c) Copyright 2009 Jenkins08
TITLE %~nx0
REM ------------------------------------------
ECHO ------------------------------------------
REM EOF
ECHO Mod Launcher Batchfile (DEVMODE)
</source>
ECHO (c) Copyright 2009 Jenkins08
ECHO ------------------------------------------
REM ------------------------------------------
REM You can change the next 3 Lines
SET MOD=%STEAM%\SteamApps\SourceMods\YourModHere
SET APPID=420
SET OPTIONS=-fullscreen -toconsole -novid -condebug +sv_cheats 1 +jpeg_quality 100 +developer 2 +exec dev.cfg
REM ------------------------------------------
REM YOU SHOULDNT NEED TO CHANGE FROM HERE
"%STEAM%\Steam.exe" -gameidlaunch %APPID% -dev -game "%MOD%" %OPTIONS%
EXIT
REM ------------------------------------------
REM Mod Launcher Batchfile (DEVMODE)
REM (c) Copyright 2009 Jenkins08
REM ------------------------------------------
REM EOF
</code>


==== launchmod_lowspecs.bat ====
==== launchmod_lowspecs.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
TITLE %~nx0
TITLE %~nx0
ECHO ------------------------------------------
ECHO ------------------------------------------
ECHO Mod Launcher Batchfile (LOWSPECS)
ECHO Mod Launcher Batchfile (LOWSPECS)
ECHO (c) Copyright 2009 Jenkins08
ECHO (c) Copyright 2009 Jenkins08
ECHO ------------------------------------------
ECHO ------------------------------------------
 
REM ------------------------------------------
REM ------------------------------------------
REM You can change the next 3 Lines
REM You can change the next 3 Lines
SET MOD=%STEAM%\SteamApps\SourceMods\YourModHere
SET MOD=%STEAM%\SteamApps\SourceMods\YourModHere
SET APPID=420
SET APPID=420
SET OPTIONS=-dxlevel 80 -novid -console -fullscreen +mat_picmip 3 +mat_dxlevel 81 +r_dynamic 0 +cl_ejectbrass 0 +sv_robust_explosions 0 +dsp_slow_cpu 1
SET OPTIONS=-dxlevel 80 -novid -console -fullscreen +mat_picmip 3 +mat_dxlevel 81 +r_dynamic 0 +cl_ejectbrass 0 +sv_robust_explosions 0 +dsp_slow_cpu 1
 
REM ------------------------------------------
REM ------------------------------------------
REM YOU SHOULDNT NEED TO CHANGE FROM HERE
REM YOU SHOULDNT NEED TO CHANGE FROM HERE
"%STEAM%\Steam.exe" -gameidlaunch %APPID% -game "%MOD%" %OPTIONS%
"%STEAM%\Steam.exe" -gameidlaunch %APPID% -game "%MOD%" %OPTIONS%
 
EXIT
EXIT
 
REM ------------------------------------------
REM ------------------------------------------
REM Mod Launcher Batchfile (LOWSPECS)
REM Mod Launcher Batchfile (LOWSPECS)
REM (c) Copyright 2009 Jenkins08
REM (c) Copyright 2009 Jenkins08
REM ------------------------------------------
REM ------------------------------------------
REM EOF
REM EOF
</code>
</source>


==== launchSDK.bat ====
==== launchSDK.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
TITLE %~nx0
TITLE %~nx0
ECHO ------------------------------------------
ECHO ------------------------------------------
ECHO SDK Launcher Batchfile
ECHO SDK Launcher Batchfile
ECHO (c) Copyright 2009 Jenkins08
ECHO (c) Copyright 2009 Jenkins08
ECHO ------------------------------------------
ECHO ------------------------------------------
 
REM ------------------------------------------
REM ------------------------------------------
REM YOU SHOULDNT NEED TO CHANGE THIS FILE AT ALL!!
REM YOU SHOULDNT NEED TO CHANGE THIS FILE AT ALL!!
SET APPID=211
SET APPID=211
 
"%STEAM%\Steam.exe" -gameidlaunch %APPID%
"%STEAM%\Steam.exe" -gameidlaunch %APPID%
REM ------------------------------------------
REM ------------------------------------------
 
EXIT
EXIT
 
REM ------------------------------------------
REM ------------------------------------------
REM SDK Launcher Batchfile
REM SDK Launcher Batchfile
REM (c) Copyright 2009 Jenkins08
REM (c) Copyright 2009 Jenkins08
REM ------------------------------------------
REM ------------------------------------------
REM EOF
REM EOF
</code>
</source>


That's all i've got for launchers...
That's all i've got for launchers...
Line 1,065: Line 947:


==== build_relists.bat ====
==== build_relists.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
 
REM Set the mod direcoty . . .
REM Set the mod direcoty . . .
SET MOD=%STEAM%\SteamApps\SourceMods\ToxisResiduum
SET MOD=%STEAM%\SteamApps\SourceMods\ToxisResiduum
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Current maps in maplist.txt:
ECHO Current maps in maplist.txt:
ECHO.
ECHO.
TYPE maplist.txt
TYPE maplist.txt
ECHO.
ECHO.
ECHO.
ECHO.
ECHO Are You Sure You Want To Build ReList's? (Process May Take A Long Time with many maps)
ECHO Are You Sure You Want To Build ReList's? (Process May Take A Long Time with many maps)
ECHO.
ECHO.
 
PAUSE
PAUSE
 
REM We want as low as graphics as possible for building relists
REM We want as low as graphics as possible for building relists
SET OPTIONS=-w 640 -sw -console -condebug -nocrashdialog -makereslists -usereslistfile maplist.txt +mat_picmip 2 +r_lod 3 -autoconfig %1
SET OPTIONS=-w 640 -sw -console -condebug -nocrashdialog -makereslists -usereslistfile maplist.txt +mat_picmip 2 +r_lod 3 -autoconfig %1
 
"%STEAM%\Steam.exe" -gameidlaunch 420 -game "%MOD%" %OPTIONS%
"%STEAM%\Steam.exe" -gameidlaunch 420 -game "%MOD%" %OPTIONS%
 
EXIT
EXIT
</code>
</source>


==== vice_decode.bat ====
==== vice_decode.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
REM Known ICE Keys;
REM Known ICE Keys;
REM CSS: d7NSuLq2
REM CSS: d7NSuLq2
REM CSS: A5fSXbf7  
REM CSS: A5fSXbf7  
REM HL2DM: x9Ke0BY7
REM HL2DM: x9Ke0BY7
REM DODS: Wl0u5b3f
REM DODS: Wl0u5b3f
REM TF2: E2NcUkG2
REM TF2: E2NcUkG2
 
REM Decrypting . . .
REM Decrypting . . .
"bin\vice.exe" -d -x .txt -k d7NSuLq2 "scripts\weapon_name.ctx"
"bin\vice.exe" -d -x .txt -k d7NSuLq2 "scripts\weapon_name.ctx"
ECHO Done !
ECHO Done !
PAUSE
PAUSE
</code>
</source>


==== vice_encode.bat ====
==== vice_encode.bat ====
<code>
<source lang=dos>
@ECHO OFF
@ECHO OFF
REM Known ICE Keys;
REM Known ICE Keys;
REM CSS: d7NSuLq2
REM CSS: d7NSuLq2
REM CSS: A5fSXbf7  
REM CSS: A5fSXbf7  
REM HL2DM: x9Ke0BY7
REM HL2DM: x9Ke0BY7
REM DODS: Wl0u5b3f
REM DODS: Wl0u5b3f
REM TF2: E2NcUkG2
REM TF2: E2NcUkG2
 
REM Encrypting . . .
REM Encrypting . . .
"bin\vice.exe" -x .ctx -k d7NSuLq2 "scripts\weapon_name.txt"
"bin\vice.exe" -x .ctx -k d7NSuLq2 "scripts\weapon_name.txt"
ECHO Done !
ECHO Done !
PAUSE
PAUSE
</code>
</source>





Latest revision as of 04:26, 19 April 2009

For those of you who use it, or are just learning or searching for something in particular;
Here are alot of handy Batch Scripts that i've written . . .

Backup Creators

These backup creators were written using the WinRAR IDE

Warning.pngWarning:Without it the following backup_*.bat scripts will not work.

backup_bsp.bat

@ECHO OFF
TITLE Valve Map Backup Utility [BSP]
SET DIR=MAP_BACKUP_BSP
SET NAME=MAP_BACKUP_BSP
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET INC=Include lists
MKDIR %DIR%
ECHO ------------------------
ECHO Valve Map Backup Utility Inclusion Generator [BSP] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
DIR %1 /b /o:n /s | FIND /i ".bsp" > "%DIR%\include.txt"
ECHO %INC% Sucessfully Generated...
ECHO ------------------------
ECHO Valve Map Backup Utility Rar Archiver [BSP] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\MAP_BACKUP_BSP.rar" @"%DIR%\include.txt"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
DEL "%DIR%\include.txt"
CLS
ECHO ------------------------
ECHO Valve Map Backup Utility [BSP] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO Backup Completed at %TIME% - %DATE%
PAUSE
EXIT

backup_vmf.bat

@ECHO OFF
TITLE Valve Map Backup Utility [VMF]
SET DIR=MAP_BACKUP_VMF
SET NAME=MAP_BACKUP_VMF
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET INC=Include lists
MKDIR %DIR%
ECHO ------------------------
ECHO Valve Map Backup Utility Inclusion Generator [VMF] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
DIR %1 /b /o:n /s | FIND /i ".vmf" > "%DIR%\include.txt"
ECHO %INC% Sucessfully Generated...
ECHO ------------------------
ECHO Valve Map Backup Utility Rar Archiver [VMF] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\MAP_BACKUP_VMF.rar" @"%DIR%\include.txt"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
DEL "%DIR%\include.txt"
CLS
ECHO ------------------------
ECHO Valve Map Backup Utility [VMF] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO Backup Completed at %TIME% - %DATE%
PAUSE
EXIT

backup_models.bat

@ECHO OFF
TITLE Backup Utility [MODELS]
SET DIR=BACKUP_MODELS
SET NAME=BACKUP_MODELS
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET INC=Include lists
MKDIR %DIR%
ECHO ------------------------
ECHO Backup Utility Inclusion Generator [MODELS] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
DIR %1 /b /o:n /s | FIND /i ".mdl" > "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".vtx" >> "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".phy" >> "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".jpg" >> "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".vvd" >> "%DIR%\include.txt"
ECHO %INC% Sucessfully Generated...
ECHO ------------------------
ECHO Backup Utility Rar Archiver [MODELS] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\BACKUP_MODELS.rar" @"%DIR%\include.txt"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
DEL "%DIR%\include.txt"
ECHO ------------------------
ECHO Backup Utility [MODELS] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO Backup Completed at %TIME% - %DATE%
PAUSE
EXIT

backup_tga.bat

@ECHO OFF
TITLE Backup Utility [TGA]
SET DIR=BACKUP_TGA
SET NAME=BACKUP_TGA
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET INC=Include lists
MKDIR %DIR%
ECHO ------------------------
ECHO Backup Utility Inclusion Generator [TGA] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
DIR %1 /b /o:n /s | FIND /i ".tga" > "%DIR%\include.txt"
ECHO %INC% Sucessfully Generated...
ECHO ------------------------
ECHO Backup Utility Rar Archiver [TGA] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\BACKUP_TGA.rar" @"%DIR%\include.txt"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
DEL "%DIR%\include.txt"
ECHO ------------------------
ECHO Backup Utility [TGA] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO Backup Completed at %TIME% - %DATE%
PAUSE
EXIT

backup_vmt_vtf.bat

@ECHO OFF
TITLE Backup Utility [VTF]
SET DIR=BACKUP_VTF
SET NAME=BACKUP_VTF
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET INC=Include lists
MKDIR %DIR%
ECHO ------------------------
ECHO Backup Utility Inclusion Generator [VTF] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
DIR %1 /b /o:n /s | FIND /i ".vtf" > "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".vmt" >> "%DIR%\include.txt"
ECHO %INC% Sucessfully Generated...
ECHO ------------------------
ECHO Backup Utility Rar Archiver [VTF] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\BACKUP_VTF.rar" @"%DIR%\include.txt"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
DEL "%DIR%\include.txt"
ECHO ------------------------
ECHO Backup Utility [VTF] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO Backup Completed at %TIME% - %DATE%
PAUSE
EXIT

backup_sounds.bat

@ECHO OFF
TITLE Backup Utility [WAV]
SET DIR=BACKUP_WAV
SET NAME=BACKUP_WAV
SET RARDIR=C:\Program Files\WinRAR\Rar.exe
SET INC=Include lists
MKDIR %DIR%
ECHO ------------------------
ECHO Backup Utility Inclusion Generator [WAV] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
DIR %1 /b /o:n /s | FIND /i ".wav" > "%DIR%\include.txt"
DIR %1 /b /o:n /s | FIND /i ".mp3" >> "%DIR%\include.txt"
ECHO %INC% Sucessfully Generated...
ECHO ------------------------
ECHO Backup Utility Rar Archiver [WAV] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
"%RARDIR%" a -m5 -r -t -ep1 "%DIR%\BACKUP_WAV.rar" @"%DIR%\include.txt"
sndrec32 /embedding /play /close "%WINDIR%\Media\tada.wav"
DEL "%DIR%\include.txt"
ECHO ------------------------
ECHO Backup Utility [WAV] © 2008 jenkins_08. All Rights Reserved.
ECHO ------------------------
ECHO Backup Completed at %TIME% - %DATE%
PAUSE
EXIT

Cleaners

Warning.pngWarning:These can be dangerous if you do not know what you are doing!

Nothing here for now. ;)


Compilers

Note.pngNote:March SDK Beta Update has broken most of the Hammer related batch compilers

Map Compilers

First i'll quickly explain MULTI9 means you can drag up to 9 files onto the batch script and it will compile them sequencially . . .

However, To effectively use my map compiling script you will need to download Interlopers Error Checker (link below)
  • Error Checker
  • Put error_checker.exe into steamapps/User/SourceSDK/Bin NOT the engine folder just where SDKLauncher.exe is.
The script is rather on the long side to accept up to the 9 maps at once,
Hence the "anal" part of the name.

buildmap_anal_final_MULTI9.bat

@ECHO OFF

SET GAME=C:\Program Files\Steam\SteamApps\SourceMods\YourMod
SET MAPDIR=%GAME%\maps

PUSHD %~dp1

REM !!! FIRST !!!

ECHO -------------------------------
ECHO ------------------------------- >> "compile_times.log"
ECHO Drag and Drop Compiler v0.2
ECHO Drag and Drop Compiler v0.2 >> "compile_times.log"
ECHO Copyright 2009 Jenkins08
ECHO Copyright 2009 Jenkins08 >> "compile_times.log"
ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"

ECHO Compiling %~n1
ECHO Compiling %~n1 >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vbsp.exe" -game "%GAME%" %~n1.vmf
ECHO Finished VBSP: %TIME% - %DATE%
ECHO Finished VBSP: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vvis.exe" -fast -game "%GAME%" %~n1.vmf
ECHO Finished VVIS: %TIME% - %DATE%
ECHO Finished VVIS: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vrad.exe" -both -game "%GAME%" %~n1.vmf
ECHO Finished VRAD: %TIME% - %DATE%
ECHO Finished VRAD: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\error_checker.exe" "%~dp1\%~n1.log"
ECHO Finished Checking Errors: %TIME% - %DATE%
ECHO Finished Checking Errors: %TIME% - %DATE% >> "compile_times.log"
ECHO Check %~n1.log for list of errors (if any)
ECHO Check %~n1.log for list of errors (if any) >> "compile_times.log"

IF NOT EXIST %~n1.bsp GOTO nocopybsp1
COPY %~n1.bsp "%MAPDIR%"
ECHO %~n1.bsp copied to %MAPDIR%.
ECHO %~n1.bsp copied to %MAPDIR% >> "%~n1.log"
:nocopybsp1

ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"
ECHO.
ECHO Done..
ECHO Done.. >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"
ECHO ------------------------------- >> "compile_times.log"

DEL %~n1.prt

REM !!! SECOND !!!

ECHO -------------------------------
ECHO ------------------------------- >> "compile_times.log"
ECHO Drag and Drop Compiler v0.2
ECHO Drag and Drop Compiler v0.2 >> "compile_times.log"
ECHO Copyright 2009 Jenkins08
ECHO Copyright 2009 Jenkins08 >> "compile_times.log"
ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"

ECHO Compiling %~n2
ECHO Compiling %~n2 >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vbsp.exe" -game "%GAME%" %~n2.vmf
ECHO Finished VBSP: %TIME% - %DATE%
ECHO Finished VBSP: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vvis.exe" -fast -game "%GAME%" %~n2.vmf
ECHO Finished VVIS: %TIME% - %DATE%
ECHO Finished VVIS: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vrad.exe" -both -game "%GAME%" %~n2.vmf
ECHO Finished VRAD: %TIME% - %DATE%
ECHO Finished VRAD: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\error_checker.exe" "%~dp1\%~n2.log"
ECHO Finished Checking Errors: %TIME% - %DATE%
ECHO Finished Checking Errors: %TIME% - %DATE% >> "compile_times.log"
ECHO Check %~n2.log for list of errors (if any)
ECHO Check %~n2.log for list of errors (if any) >> "compile_times.log"

IF NOT EXIST %~n2.bsp GOTO nocopybsp2
COPY %~n2.bsp "%MAPDIR%"
ECHO %~n2.bsp copied to %MAPDIR%.
ECHO %~n2.bsp copied to %MAPDIR% >> "%~n2.log"
:nocopybsp2

ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"
ECHO.
ECHO Done..
ECHO Done.. >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"
ECHO ------------------------------- >> "compile_times.log"

DEL %~n2.prt

REM !!! THIRD !!!

ECHO -------------------------------
ECHO ------------------------------- >> "compile_times.log"
ECHO Drag and Drop Compiler v0.2
ECHO Drag and Drop Compiler v0.2 >> "compile_times.log"
ECHO Copyright 2009 Jenkins08
ECHO Copyright 2009 Jenkins08 >> "compile_times.log"
ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"

ECHO Compiling %~n3
ECHO Compiling %~n3 >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vbsp.exe" -game "%GAME%" %~n3.vmf
ECHO Finished VBSP: %TIME% - %DATE%
ECHO Finished VBSP: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vvis.exe" -fast -game "%GAME%" %~n3.vmf
ECHO Finished VVIS: %TIME% - %DATE%
ECHO Finished VVIS: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vrad.exe" -both -game "%GAME%" %~n3.vmf
ECHO Finished VRAD: %TIME% - %DATE%
ECHO Finished VRAD: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\error_checker.exe" "%~dp1\%~n3.log"
ECHO Finished Checking Errors: %TIME% - %DATE%
ECHO Finished Checking Errors: %TIME% - %DATE% >> "compile_times.log"
ECHO Check %~n3.log for list of errors (if any)
ECHO Check %~n3.log for list of errors (if any) >> "compile_times.log"

IF NOT EXIST %~n3.bsp GOTO nocopybsp3
COPY %~n3.bsp "%MAPDIR%"
ECHO %~n3.bsp copied to %MAPDIR%.
ECHO %~n3.bsp copied to %MAPDIR% >> "%~n3.log"
:nocopybsp3

ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"
ECHO.
ECHO Done..
ECHO Done.. >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"
ECHO ------------------------------- >> "compile_times.log"

DEL %~n3.prt

REM !!! FOURTH !!!

ECHO -------------------------------
ECHO ------------------------------- >> "compile_times.log"
ECHO Drag and Drop Compiler v0.2
ECHO Drag and Drop Compiler v0.2 >> "compile_times.log"
ECHO Copyright 2009 Jenkins08
ECHO Copyright 2009 Jenkins08 >> "compile_times.log"
ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"

ECHO Compiling %~n4
ECHO Compiling %~n4 >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vbsp.exe" -game "%GAME%" %~n4.vmf
ECHO Finished VBSP: %TIME% - %DATE%
ECHO Finished VBSP: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vvis.exe" -fast -game "%GAME%" %~n4.vmf
ECHO Finished VVIS: %TIME% - %DATE%
ECHO Finished VVIS: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vrad.exe" -both -game "%GAME%" %~n4.vmf
ECHO Finished VRAD: %TIME% - %DATE%
ECHO Finished VRAD: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\error_checker.exe" "%~dp1\%~n4.log"
ECHO Finished Checking Errors: %TIME% - %DATE%
ECHO Finished Checking Errors: %TIME% - %DATE% >> "compile_times.log"
ECHO Check %~n4.log for list of errors (if any)
ECHO Check %~n4.log for list of errors (if any) >> "compile_times.log"

IF NOT EXIST %~n4.bsp GOTO nocopybsp4
COPY %~n4.bsp "%MAPDIR%"
ECHO %~n4.bsp copied to %MAPDIR%.
ECHO %~n4.bsp copied to %MAPDIR% >> "%~n4.log"
:nocopybsp4

ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"
ECHO.
ECHO Done..
ECHO Done.. >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"
ECHO ------------------------------- >> "compile_times.log"

DEL %~n4.prt

REM !!! FIFTH !!!

ECHO -------------------------------
ECHO ------------------------------- >> "compile_times.log"
ECHO Drag and Drop Compiler v0.2
ECHO Drag and Drop Compiler v0.2 >> "compile_times.log"
ECHO Copyright 2009 Jenkins08
ECHO Copyright 2009 Jenkins08 >> "compile_times.log"
ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"

ECHO Compiling %~n5
ECHO Compiling %~n5 >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vbsp.exe" -game "%GAME%" %~n5.vmf
ECHO Finished VBSP: %TIME% - %DATE%
ECHO Finished VBSP: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vvis.exe" -fast -game "%GAME%" %~n5.vmf
ECHO Finished VVIS: %TIME% - %DATE%
ECHO Finished VVIS: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vrad.exe" -both -game "%GAME%" %~n5.vmf
ECHO Finished VRAD: %TIME% - %DATE%
ECHO Finished VRAD: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\error_checker.exe" "%~dp1\%~n5.log"
ECHO Finished Checking Errors: %TIME% - %DATE%
ECHO Finished Checking Errors: %TIME% - %DATE% >> "compile_times.log"
ECHO Check %~n5.log for list of errors (if any)
ECHO Check %~n5.log for list of errors (if any) >> "compile_times.log"

IF NOT EXIST %~n5.bsp GOTO nocopybsp5
COPY %~n5.bsp "%MAPDIR%"
ECHO %~n5.bsp copied to %MAPDIR%.
ECHO %~n5.bsp copied to %MAPDIR% >> "%~n5.log"
:nocopybsp5

ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"
ECHO.
ECHO Done..
ECHO Done.. >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"
ECHO ------------------------------- >> "compile_times.log"

DEL %~n5.prt

REM !!! SIXTH !!!

ECHO -------------------------------
ECHO ------------------------------- >> "compile_times.log"
ECHO Drag and Drop Compiler v0.2
ECHO Drag and Drop Compiler v0.2 >> "compile_times.log"
ECHO Copyright 2009 Jenkins08
ECHO Copyright 2009 Jenkins08 >> "compile_times.log"
ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"

ECHO Compiling %~n6
ECHO Compiling %~n6 >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vbsp.exe" -game "%GAME%" %~n6.vmf
ECHO Finished VBSP: %TIME% - %DATE%
ECHO Finished VBSP: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vvis.exe" -fast -game "%GAME%" %~n6.vmf
ECHO Finished VVIS: %TIME% - %DATE%
ECHO Finished VVIS: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vrad.exe" -both -game "%GAME%" %~n6.vmf
ECHO Finished VRAD: %TIME% - %DATE%
ECHO Finished VRAD: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\error_checker.exe" "%~dp1\%~n6.log"
ECHO Finished Checking Errors: %TIME% - %DATE%
ECHO Finished Checking Errors: %TIME% - %DATE% >> "compile_times.log"
ECHO Check %~n6.log for list of errors (if any)
ECHO Check %~n6.log for list of errors (if any) >> "compile_times.log"

IF NOT EXIST %~n6.bsp GOTO nocopybsp6
COPY %~n6.bsp "%MAPDIR%"
ECHO %~n6.bsp copied to %MAPDIR%.
ECHO %~n6.bsp copied to %MAPDIR% >> "%~n6.log"
:nocopybsp6

ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"
ECHO.
ECHO Done..
ECHO Done.. >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"
ECHO ------------------------------- >> "compile_times.log"

DEL %~n6.prt

REM !!! SEVENTH !!!

ECHO -------------------------------
ECHO ------------------------------- >> "compile_times.log"
ECHO Drag and Drop Compiler v0.2
ECHO Drag and Drop Compiler v0.2 >> "compile_times.log"
ECHO Copyright 2009 Jenkins08
ECHO Copyright 2009 Jenkins08 >> "compile_times.log"
ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"

ECHO Compiling %~n7
ECHO Compiling %~n7 >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vbsp.exe" -game "%GAME%" %~n7.vmf
ECHO Finished VBSP: %TIME% - %DATE%
ECHO Finished VBSP: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vvis.exe" -fast -game "%GAME%" %~n7.vmf
ECHO Finished VVIS: %TIME% - %DATE%
ECHO Finished VVIS: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vrad.exe" -both -game "%GAME%" %~n7.vmf
ECHO Finished VRAD: %TIME% - %DATE%
ECHO Finished VRAD: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\error_checker.exe" "%~dp1\%~n7.log"
ECHO Finished Checking Errors: %TIME% - %DATE%
ECHO Finished Checking Errors: %TIME% - %DATE% >> "compile_times.log"
ECHO Check %~n7.log for list of errors (if any)
ECHO Check %~n7.log for list of errors (if any) >> "compile_times.log"

IF NOT EXIST %~n7.bsp GOTO nocopybsp7
COPY %~n7.bsp "%MAPDIR%"
ECHO %~n7.bsp copied to %MAPDIR%.
ECHO %~n7.bsp copied to %MAPDIR% >> "%~n7.log"
:nocopybsp7

ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"
ECHO.
ECHO Done..
ECHO Done.. >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"
ECHO ------------------------------- >> "compile_times.log"

DEL %~n7.prt

REM !!! EIGHTH !!!

ECHO -------------------------------
ECHO ------------------------------- >> "compile_times.log"
ECHO Drag and Drop Compiler v0.2
ECHO Drag and Drop Compiler v0.2 >> "compile_times.log"
ECHO Copyright 2009 Jenkins08
ECHO Copyright 2009 Jenkins08 >> "compile_times.log"
ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"

ECHO Compiling %~n8
ECHO Compiling %~n8 >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vbsp.exe" -game "%GAME%" %~n8.vmf
ECHO Finished VBSP: %TIME% - %DATE%
ECHO Finished VBSP: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vvis.exe" -fast -game "%GAME%" %~n8.vmf
ECHO Finished VVIS: %TIME% - %DATE%
ECHO Finished VVIS: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vrad.exe" -both -game "%GAME%" %~n8.vmf
ECHO Finished VRAD: %TIME% - %DATE%
ECHO Finished VRAD: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\error_checker.exe" "%~dp1\%~n8.log"
ECHO Finished Checking Errors: %TIME% - %DATE%
ECHO Finished Checking Errors: %TIME% - %DATE% >> "compile_times.log"
ECHO Check %~n8.log for list of errors (if any)
ECHO Check %~n8.log for list of errors (if any) >> "compile_times.log"

IF NOT EXIST %~n8.bsp GOTO nocopybsp8
COPY %~n8.bsp "%MAPDIR%"
ECHO %~n8.bsp copied to %MAPDIR%.
ECHO %~n8.bsp copied to %MAPDIR% >> "%~n8.log"
:nocopybsp8

ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"
ECHO.
ECHO Done..
ECHO Done.. >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"
ECHO ------------------------------- >> "compile_times.log"

DEL %~n8.prt

REM !!! NINTH !!!

ECHO -------------------------------
ECHO ------------------------------- >> "compile_times.log"
ECHO Drag and Drop Compiler v0.2
ECHO Drag and Drop Compiler v0.2 >> "compile_times.log"
ECHO Copyright 2009 Jenkins08
ECHO Copyright 2009 Jenkins08 >> "compile_times.log"
ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"

ECHO Compiling %~n9
ECHO Compiling %~n9 >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vbsp.exe" -game "%GAME%" %~n9.vmf
ECHO Finished VBSP: %TIME% - %DATE%
ECHO Finished VBSP: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vvis.exe" -fast -game "%GAME%" %~n9.vmf
ECHO Finished VVIS: %TIME% - %DATE%
ECHO Finished VVIS: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\orangebox\bin\vrad.exe" -both -game "%GAME%" %~n9.vmf
ECHO Finished VRAD: %TIME% - %DATE%
ECHO Finished VRAD: %TIME% - %DATE% >> "compile_times.log"

"%sourcesdk%\bin\error_checker.exe" "%~dp1\%~n9.log"
ECHO Finished Checking Errors: %TIME% - %DATE%
ECHO Finished Checking Errors: %TIME% - %DATE% >> "compile_times.log"
ECHO Check %~n9.log for list of errors (if any)
ECHO Check %~n9.log for list of errors (if any) >> "compile_times.log"

IF NOT EXIST %~n9.bsp GOTO nocopybsp9
COPY %~n9.bsp "%MAPDIR%"
ECHO %~n9.bsp copied to %MAPDIR%.
ECHO %~n9.bsp copied to %MAPDIR% >> "%~n9.log"
:nocopybsp9

ECHO -.-.-.-.-.-.-.-.-.-.-.-.-
ECHO -.-.-.-.-.-.-.-.-.-.-.-.- >> "compile_times.log"
ECHO.
ECHO Done..
ECHO Done.. >> "compile_times.log"
ECHO Current Time: %TIME% - %DATE%
ECHO Current Time: %TIME% - %DATE% >> "compile_times.log"
ECHO ------------------------------- >> "compile_times.log"

DEL %~n9.prt

POPD

REM !!! DONE !!!

PAUSE
EXIT

That does it for the Map compilers, if you need to use Episodic SDK instead of orangebox, hit Ctrl H in notepad and replace "orangebox" with "ep1" without the quotations :)

Texture Compilers

Tip.pngTip:You can drag up to 9 files onto these batch scripts and it will compile them sequencially . . .

EP1 Engine

ep1_LightmappedGeneric.bat

@ECHO OFF
"%sourcesdk%\bin\ep1\bin\vtex.exe" -nopause -shader LightmappedGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
Note.pngNote:The PAUSE is commented out to increase workflow

ep1_Sky.bat

@ECHO OFF
"%sourcesdk%\bin\ep1\bin\vtex.exe" -nopause -shader Sky %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
Note.pngNote:The PAUSE is commented out to increase workflow

ep1_UnlitGeneric.bat

@ECHO OFF
"%sourcesdk%\bin\ep1\bin\vtex.exe" -nopause -shader UnlitGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
Note.pngNote:The PAUSE is commented out to increase workflow

ep1_VertexLitGeneric.bat

@ECHO OFF
"%sourcesdk%\bin\ep1\bin\vtex.exe" -nopause -shader VertexLitGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
Note.pngNote:The PAUSE is commented out to increase workflow

ep1_Water.bat

@ECHO OFF
"%sourcesdk%\bin\ep1\bin\vtex.exe" -nopause -shader Water %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
Note.pngNote:The PAUSE is commented out to increase workflow

Orangebox Engine

orangebox_LightmappedGeneric.bat

@ECHO OFF
"%sourcesdk%\bin\orangebox\bin\vtex.exe" -nopause -shader LightmappedGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
Note.pngNote:The PAUSE is commented out to increase workflow

orangebox_Sky.bat

@ECHO OFF
"%sourcesdk%\bin\orangebox\bin\vtex.exe" -nopause -shader Sky %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
Note.pngNote:The PAUSE is commented out to increase workflow

orangebox_UnlitGeneric.bat

@ECHO OFF
"%sourcesdk%\bin\orangebox\bin\vtex.exe" -nopause -shader UnlitGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
Note.pngNote:The PAUSE is commented out to increase workflow

orangebox_VertexLitGeneric.bat

@ECHO OFF
"%sourcesdk%\bin\orangebox\bin\vtex.exe" -nopause -shader VertexLitGeneric %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
Note.pngNote:The PAUSE is commented out to increase workflow

orangebox_Water.bat

@ECHO OFF
"%sourcesdk%\bin\orangebox\bin\vtex.exe" -nopause -shader Water %1 %2 %3 %4 %5 %6 %7 %8 %9
REM PAUSE
Note.pngNote:The PAUSE is commented out to increase workflow

File Management

A few simple file management scripts . . .

More to come in this section

listall_bsp.bat

@ECHO OFF
PUSHD %1
DIR %1 /a-d /o /s /b | FIND /i ".bsp" > "bsp_list.txt"
POPD
start /w notepad "bsp_list.txt" /s
PAUSE

listall_materials.bat

@ECHO OFF
PUSHD %1
DIR %1 /a-d /o /s /b | FIND /i ".vtf" > "mat_list.txt"
DIR %1 /a-d /o /s /b | FIND /i ".vmt" >> "mat_list.txt"
POPD
start /w notepad "mat_list.txt" /s
PAUSE

listall_models.bat

@ECHO OFF
PUSHD %1
DIR %1 /a-d /o:n /s /b | FIND /i ".ani" > "models_list.txt"
DIR %1 /a-d /o:n /s /b | FIND /i ".mdl" >> "models_list.txt"
DIR %1 /a-d /o:n /s /b | FIND /i ".phy" >> "models_list.txt"
DIR %1 /a-d /o:n /s /b | FIND /i ".vtx" >> "models_list.txt"
DIR %1 /a-d /o:n /s /b | FIND /i ".vvd" >> "models_list.txt"
POPD
start /w notepad "models_list.txt" /s
PAUSE

listall_vmf.bat

@ECHO OFF
PUSHD %1
DIR %1 /a-d /o /s /b | FIND /i ".vmf" > "vmf_list.txt"
POPD
start /w notepad "vmf_list.txt" /s
PAUSE

GCF Extraction

MOVED TO User:Jenkins08/Batch/GCF


Launchers

Here are some handy mod launchers for Your Sourcemod :)

launchmod.bat

@ECHO OFF
TITLE %~nx0
ECHO ------------------------------------------
ECHO Mod Launcher Batchfile
ECHO (c) Copyright 2009 Jenkins08
ECHO ------------------------------------------

REM ------------------------------------------
REM You can change the next 3 Lines
SET MOD=%STEAM%\SteamApps\SourceMods\YourModHere
SET APPID=420
SET OPTIONS=-fullscreen

REM ------------------------------------------
REM YOU SHOULDNT NEED TO CHANGE FROM HERE
"%STEAM%\Steam.exe" -gameidlaunch %APPID% -game "%MOD%" %OPTIONS%

EXIT

REM ------------------------------------------
REM Mod Launcher Batchfile
REM (c) Copyright 2009 Jenkins08
REM ------------------------------------------
REM EOF

launchmod_devmode.bat

@ECHO OFF
TITLE %~nx0
ECHO ------------------------------------------
ECHO Mod Launcher Batchfile (DEVMODE)
ECHO (c) Copyright 2009 Jenkins08
ECHO ------------------------------------------

REM ------------------------------------------
REM You can change the next 3 Lines
SET MOD=%STEAM%\SteamApps\SourceMods\YourModHere
SET APPID=420
SET OPTIONS=-fullscreen -toconsole -novid -condebug +sv_cheats 1 +jpeg_quality 100 +developer 2 +exec dev.cfg

REM ------------------------------------------
REM YOU SHOULDNT NEED TO CHANGE FROM HERE
"%STEAM%\Steam.exe" -gameidlaunch %APPID% -dev -game "%MOD%" %OPTIONS%

EXIT

REM ------------------------------------------
REM Mod Launcher Batchfile (DEVMODE)
REM (c) Copyright 2009 Jenkins08
REM ------------------------------------------
REM EOF

launchmod_lowspecs.bat

@ECHO OFF
TITLE %~nx0
ECHO ------------------------------------------
ECHO Mod Launcher Batchfile (LOWSPECS)
ECHO (c) Copyright 2009 Jenkins08
ECHO ------------------------------------------

REM ------------------------------------------
REM You can change the next 3 Lines
SET MOD=%STEAM%\SteamApps\SourceMods\YourModHere
SET APPID=420
SET OPTIONS=-dxlevel 80 -novid -console -fullscreen +mat_picmip 3 +mat_dxlevel 81 +r_dynamic 0 +cl_ejectbrass 0 +sv_robust_explosions 0 +dsp_slow_cpu 1

REM ------------------------------------------
REM YOU SHOULDNT NEED TO CHANGE FROM HERE
"%STEAM%\Steam.exe" -gameidlaunch %APPID% -game "%MOD%" %OPTIONS%

EXIT

REM ------------------------------------------
REM Mod Launcher Batchfile (LOWSPECS)
REM (c) Copyright 2009 Jenkins08
REM ------------------------------------------
REM EOF

launchSDK.bat

@ECHO OFF
TITLE %~nx0
ECHO ------------------------------------------
ECHO SDK Launcher Batchfile
ECHO (c) Copyright 2009 Jenkins08
ECHO ------------------------------------------

REM ------------------------------------------
REM YOU SHOULDNT NEED TO CHANGE THIS FILE AT ALL!!
SET APPID=211

"%STEAM%\Steam.exe" -gameidlaunch %APPID%
REM ------------------------------------------

EXIT

REM ------------------------------------------
REM SDK Launcher Batchfile
REM (c) Copyright 2009 Jenkins08
REM ------------------------------------------
REM EOF

That's all i've got for launchers...

Other/Misc

Here are some miscellaneous scripts that don't fit into the above cats.

build_relists.bat

@ECHO OFF

REM Set the mod direcoty . . .
SET MOD=%STEAM%\SteamApps\SourceMods\ToxisResiduum
ECHO.
ECHO.
ECHO Current maps in maplist.txt:
ECHO.
TYPE maplist.txt
ECHO.
ECHO.
ECHO Are You Sure You Want To Build ReList's? (Process May Take A Long Time with many maps)
ECHO.

PAUSE

REM We want as low as graphics as possible for building relists
SET OPTIONS=-w 640 -sw -console -condebug -nocrashdialog -makereslists -usereslistfile maplist.txt +mat_picmip 2 +r_lod 3 -autoconfig %1

"%STEAM%\Steam.exe" -gameidlaunch 420 -game "%MOD%" %OPTIONS%

EXIT

vice_decode.bat

@ECHO OFF
REM Known ICE Keys;
REM CSS: d7NSuLq2
REM CSS: A5fSXbf7 
REM HL2DM: x9Ke0BY7
REM DODS: Wl0u5b3f
REM TF2: E2NcUkG2

REM Decrypting . . .
"bin\vice.exe" -d -x .txt -k d7NSuLq2 "scripts\weapon_name.ctx"
ECHO Done !
PAUSE

vice_encode.bat

@ECHO OFF
REM Known ICE Keys;
REM CSS: d7NSuLq2
REM CSS: A5fSXbf7 
REM HL2DM: x9Ke0BY7
REM DODS: Wl0u5b3f
REM TF2: E2NcUkG2

REM Encrypting . . .
"bin\vice.exe" -x .ctx -k d7NSuLq2 "scripts\weapon_name.txt"
ECHO Done !
PAUSE




That about wraps up this page.

If you have any questions or comments feel free to leave them on my User_talk:Jenkins08/Batch page
Hope these help you in some way or another,
Regards, Jenkins08 :)