Subversion Repositories vaca_plus

Compare Revisions

Regard whitespace Rev HEAD → Rev 1

/vaca_plus/Caribbean.bat
1,114 → 1,56
@echo off
color 0C
setlocal ENABLEEXTENSIONS DISABLEDELAYEDEXPANSION
pushd "%~dp0"
set startdir=%cd%
@color 0C
 
:restart
title Duke Caribbean: Life's A Beach Plus Launcher
if "%editor%"=="1" title Duke Caribbean: Life's A Beach Plus Editor Launcher
title Duke Caribbean: Life's A Beach Plus Batch Launcher
 
set exedir=%startdir%
set addondir=%startdir%
set addonhrpdir=%startdir%
set dir=%cd%
set vacaver=30
set hrp=
set hrpu=
 
set exename=eduke32
set exeproper=EDuke32
set action=playing
 
if "%editor%"=="1" (
set exename=mapster32
set exeproper=Mapster32
set action=editing
)
 
set addonver=r004
 
:title
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Duke Caribbean: Life's A Beach Plus º
echo ÈÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍͼ
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Duke Caribbean: Life's A Beach Plus Batch Launcher º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo ³ By Hendricks266 ³
echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo.
echo You are %action% Sunstorm Interactive's Duke Caribbean: Life's A Beach with the
echo You are playing Sunstorm Interactive's Duke Caribbean: Life's A Beach with the
echo various enhancements of Duke Caribbean: Life's A Beach Plus, maintained by
echo Hendricks266.
echo.
 
if "%xxx%"=="1" echo Using XXX mode.
if "%dp%"=="1" echo Using Duke Plus by DeeperThought.
if "%debug%"=="1" echo Using debug mode.
 
if "%debug%"=="1" echo DEBUG: Command Line Input: %*
 
:recheck
if not exist %exename%.exe goto execheck
:execheck_done
set exedir=%cd%
if "%debug%"=="1" echo DEBUG: %exeproper% Directory: "%exedir%"
 
if not exist eduke32.exe goto eduke32check
:eduke32check_done
if not exist vaca_plus\ goto nodir
if not exist duke3d.grp echo Warning: You don't have Duke3D.grp in your directory.
 
if exist vacation\ set addonhrpdir=%cd%
:addondircheck
if exist VACATION.PRG ren VACATION.PRG vacation.grp
chdir vaca_plus
set addondir=%cd%
if exist vacation\ set addonhrpdir=%cd%
if exist vaca_plus\ goto addondircheck
if "%debug%"=="1" echo DEBUG: Vaca+ Directory: "%addondir%".
if "%debug%"=="1" echo DEBUG: VacaHRP Directory: "%addonhrpdir%".
 
set kextract=%addondir%\utils\windows\win32\kextract.exe
if "%debug%"=="1" set kextract=%addondir%\utils\windows\win32\kextract.debug.exe
set kgroup=%addondir%\utils\windows\win32\kgroup.exe
if "%debug%"=="1" set kgroup=%addondir%\utils\windows\win32\kgroup.debug.exe
set unpackssi=%addondir%\utils\windows\win32\unpackssi.exe
if "%debug%"=="1" set unpackssi=%addondir%\utils\windows\win32\unpackssi.debug.exe
set bspatch=%addondir%\utils\windows\win32\bspatch.exe
set sha1sum=%addondir%\utils\windows\win32\sha1sum.exe
 
if "%vacagrpname%"=="" set vacagrpname=vacation.grp
if not exist "%exedir%\%vacagrpname%" if not exist "%addondir%\%vacagrpname%" if exist "%exedir%\vaca15.grp" set vacagrpname=vaca15.grp
if not exist "%exedir%\%vacagrpname%" if not exist "%addondir%\%vacagrpname%" if exist "%addondir%\vaca15.grp" set vacagrpname=vaca15.grp
if not exist "%exedir%\%vacagrpname%" if not exist "%addondir%\%vacagrpname%" if exist "%exedir%\vacapp.grp" set vacagrpname=vacapp.grp
if not exist "%exedir%\%vacagrpname%" if not exist "%addondir%\%vacagrpname%" if exist "%addondir%\vacapp.grp" set vacagrpname=vacapp.grp
if not exist "%exedir%\%vacagrpname%" if not exist "%addondir%\%vacagrpname%" if exist "%exedir%\vaca13.grp" set vacagrpname=vaca13.grp
if not exist "%exedir%\%vacagrpname%" if not exist "%addondir%\%vacagrpname%" if exist "%addondir%\vaca13.grp" set vacagrpname=vaca13.grp
if not exist "%exedir%\%vacagrpname%" if not exist "%addondir%\%vacagrpname%" if exist "%exedir%\vacation13.grp" set vacagrpname=vacation13.grp
if not exist "%exedir%\%vacagrpname%" if not exist "%addondir%\%vacagrpname%" if exist "%addondir%\vacation13.grp" set vacagrpname=vacation13.grp
if not exist "%exedir%\%vacagrpname%" if not exist "%addondir%\%vacagrpname%" goto novacagrp
 
if exist vacation.grp ren vacation.grp vacation.grp
call :grpchecksum
:novacagrp_return
if not "%version%"=="demo" (
if not exist vaca1.map goto mapextract
if not exist vaca2.map goto mapextract
if not exist vaca3.map goto mapextract
if not exist vaca4.map goto mapextract
if not exist vaca5.map goto mapextract
if not exist vaca6.map goto mapextract
if not exist vaca7.map goto mapextract
if not exist vacasl.map goto mapextract
if not exist vacadm1.map goto mapextract
if not exist vacadm2.map goto mapextract
if not exist vacadm3.map goto mapextract
if not exist vacadm4.map goto mapextract
if not exist vacaflag_%addonver%.h266 goto updateextract
)
chdir /d "%exedir%"
if exist VACATION.PRG ren VACATION.PRG VACATION.GRP
if exist VACATION.GRP move VACATION.GRP vaca_plus\
cd vaca_plus
if exist VACATION.PRG ren VACATION.PRG VACATION.GRP
if not exist VACATION.GRP goto novacagrp
:novacagrp_done
if not exist vacaflag%vacaver%.h266 goto extract
if not exist vaca1.map goto extract
if not exist vaca2.map goto extract
if not exist vaca3.map goto extract
if not exist vaca4.map goto extract
if not exist vaca5.map goto extract
if not exist vaca6.map goto extract
if not exist vaca7.map goto extract
if not exist vacadm1.map goto extract
if not exist vacadm2.map goto extract
if not exist vacadm3.map goto extract
if not exist vacadm4.map goto extract
if not exist vacasl.map goto extract
cd ..
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
 
:init
pause
117,98 → 59,40
 
:check
 
if exist duke3d_hrp.zip set hrp=/gduke3d_hrp.zip
if exist hrp_update.zip set hrpu=/ghrp_update.zip
 
echo.
echo Launching Duke Nukem 3D . . .
echo Thanks for %action%!
echo Thanks for playing!
echo.
echo Please leave this window open for the entire duration of your game.
echo It will close automatically.
 
if "%editor%"=="1" (
type "%exedir%\names.h" > "%exedir%\VacaNames.h"
echo. >> "%exedir%\VacaNames.h"
type "%addondir%\VacaNames.def" >> "%exedir%\VacaNames.h"
)
::if exist *.art ren *.art *.abk
 
:arguments
set args=
if exist "%exedir%\HRP\" set args=%args% -j HRP
if exist "%exedir%\polymer_hrp\" set args=%args% -j polymer_hrp
if exist "%exedir%\duke3d_voxel.zip" set args=%args% -g duke3d_voxel.zip
if exist "%exedir%\duke3d_hrp.zip" set args=%args% -g duke3d_hrp.zip
if exist "%exedir%\hrp_update.zip" set args=%args% -g hrp_update.zip
if exist "%exedir%\maphacks.zip" set args=%args% -g maphacks.zip
if exist "%exedir%\eduke32_mus.zip" set args=%args% -g eduke32_mus.zip
if exist "%addondir%" if not "%addondir%"=="%exedir%" set args=%args% -j "%addondir:\=/%"
if exist "%addonhrpdir%" if not "%addonhrpdir%"=="%exedir%" if not "%addonhrpdir%"=="%addondir%" set args=%args% -j "%addonhrpdir:\=/%"
set args=%args% -g %vacagrpname% -h vacation.def -x VacaEDuke.con
if "%editor%"=="1" set args=%args% -namesfile VacaNames.h
if "%dp%"=="1" set args=%args% -h vaca_dp.def -x VacaDP.con
if "%xxx%"=="1" if exist "%exedir%\xxx_lite.zip" set args=%args% -g xxx_lite.zip
if "%xxx%"=="1" if exist "%exedir%\xxx_lite\" set args=%args% -j xxx_lite
if "%xxx%"=="1" if exist "%exedir%\xxx_pack.zip" set args=%args% -g xxx_pack.zip
if "%xxx%"=="1" if exist "%exedir%\xxx_pack\" set args=%args% -j xxx_pack
if "%xxx%"=="1" set args=%args% -h vaca_xxx.def
if "%xxx%"=="1" if "%dp%"=="1" set args=%args% -h vaca_dp_xxx.def -x VacaDPXXX.con
set args=%args% %*
if "%dp%"=="1" set args=%args% -j DukePlus
eduke32 /xVacaEDuke.con /hvacation.def /jvaca_plus /gVACATION.GRP %hrp% %hrpu% %*
 
set exe=%exename%
if "%debug%"=="1" set exe=%exename%.debug
::if exist *.abk ren *.abk *.art
 
if exist %exe%.bat (
if "%debug%"=="1" echo DEBUG: Final Command Line: call %exe%.bat %args%
call %exe%.bat %args%
) else (
if "%debug%"=="1" echo DEBUG: Final Command Line: start %exe%.exe %args%
start %exe%.exe %args%
)
 
set svnpath=0
if "%svnpath%"=="0" if exist "%startdir%\svn\bin\svn.exe" set svnpath=%startdir%\svn\bin
if "%svnpath%"=="0" if exist "%exedir%\svn\bin\svn.exe" set svnpath=%exedir%\svn\bin
if "%svnpath%"=="0" if exist "%ProgramFiles%\SlikSvn\bin\svn.exe" set svnpath=%ProgramFiles%\SlikSvn\bin
if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\SlikSvn\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\SlikSvn\bin
if "%svnpath%"=="0" if exist "%ProgramFiles%\Subversion\bin\svn.exe" set svnpath=%ProgramFiles%\Subversion\bin
if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\Subversion\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\Subversion\bin
if "%svnpath%"=="0" if exist "%ProgramFiles%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles%\TortoiseSVN\bin
if "%svnpath%"=="0" if exist "%ProgramFiles(x86)%\TortoiseSVN\bin\svn.exe" set svnpath=%ProgramFiles(x86)%\TortoiseSVN\bin
if "%svnpath%"=="0" for %%S in (svn.exe) do if exist "%%~dp$PATH:S" set svnpath=%%~dp$PATH:S
 
chdir /d "%addondir%"
if not "%svnpath%"=="0" call :svn_action
chdir /d "%addonhrpdir%"
if not "%svnpath%"=="0" call :svn_action
 
goto end
 
:svn_action
set PATH=%PATH%;%svnpath%
for /f "delims=" %%a in ('svnversion.exe .') do @set oldrev=%%a
if "%oldrev%"=="exported" goto :eof
if "%oldrev%"=="Unversioned directory" goto :eof
"svn.exe" update
for /f "delims=" %%a in ('svnversion.exe .') do @set rev=%%a
set oldrev=%oldrev:M=%
set oldrev=%oldrev:S=%
set oldrev=%oldrev:P=%
set rev=%rev:M=%
set rev=%rev:S=%
set rev=%rev:P=%
if %rev% EQU %oldrev% goto :eof
set /a oldrev=%oldrev% + 1
:noduke
echo.
"svn.exe" log -r %oldrev%:%rev%
 
echo Aborting launch.
echo.
pause
goto :eof
goto end
 
:novacagrp
set megaton=Steam\SteamApps\common\Duke Nukem 3D\gameroot\addons\vacation.grp
if exist "%ProgramFiles%\%megaton%" copy "%ProgramFiles%\%megaton%" .\ && call :conprotect && goto novacagrp_done
if exist "%ProgramFiles(x86)%\%megaton%" copy "%ProgramFiles(x86)%\%megaton%" .\ && call :conprotect && goto novacagrp_done
echo.
echo Error: You don't have VACATION.GRP in your directory.
echo.
goto ssicheck
if exist VACA15.SSI goto ssi1
if exist VACAPP.SSI goto ssi2
if exist VACA13.SSI goto ssi3
echo You don't have the SSI files in your directory.
:retry
echo.
set cddrive=
218,50 → 102,32
if '%cddrive%'=='' goto cdno
if not exist %cddrive%:\ goto cdno
if not exist %cddrive%:\* goto cdno
if exist %cddrive%:\VACATION\VACA13.SSI copy %cddrive%:\VACATION\*.SSI .\ && goto ssicheck
if exist %cddrive%:\VACATION\VACATION\VACA13.SSI copy %cddrive%:\VACATION\VACATION\*.SSI .\ && goto ssicheck
if exist %cddrive%:\CARIBBEA\VACA13.SSI copy %cddrive%:\CARIBBEA\VACATION\*.SSI .\ && goto ssicheck
if exist %cddrive%:\CARIBBEAN\VACA13.SSI copy %cddrive%:\CARIBBEAN\VACATION\*.SSI .\ && goto ssicheck
goto cdwrong
if not exist %cddrive%:\VACATION\VACA13.SSI goto cdw
copy %cddrive%:\VACATION\*.SSI .\
echo.
type DVINTRO.TXT
goto novacagrp_done
 
:cdno
echo '%cddrive%' is not valid. Please try again.
goto retry
 
:cdwrong
:cdw
echo '%cddrive%' is not the correct disc. Please try again.
goto retry
 
:ssicheck
if exist VACA15.SSI goto ssi1
if exist VACAPP.SSI goto ssi2
if exist VACA13.SSI goto ssi3
echo You don't have the SSI files in your directory.
goto retry
 
:ssi1
echo You do have the Caribbean SSI file in this directory, but it has not been
echo extracted. It will now be unpacked.
echo.
pause
mkdir vaca15ssi
chdir vaca15ssi
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
"%unpackssi%" ..\VACA15.SSI
if exist VACATION.PRG move /y VACATION.PRG ..\vacation.grp
chdir ..
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
if exist vacation.grp (
rmdir /s /q vaca15ssi
md vaca15ssi
cd vaca15ssi
..\utils\windows\win32\unpackssi.exe ..\VACA15.SSI
move /y VACATION.PRG ..\VACATION.GRP
cd ..
rd /s /q vaca15ssi
goto novacagrp_done
)
if not exist vacation.grp (
echo Installation Error!
echo Contact Hendricks266 for help.
echo.
pause
goto end
)
 
:ssi2
echo You do have the Caribbean SSI file in this directory, but it has not been
268,24 → 134,13
echo extracted. It will now be unpacked.
echo.
pause
mkdir vacappssi
chdir vacappssi
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
"%unpackssi%" ..\VACAPP.SSI
if exist VACATION.PRG move /y VACATION.PRG ..\vacation.grp
chdir ..
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
if exist vacation.grp (
rmdir /s /q vacappssi
md vacappssi
cd vacappssi
..\utils\windows\win32\unpackssi.exe ..\VACAPP.SSI
move /y VACATION.PRG ..\VACATION.GRP
cd ..
rd /s /q vacappssi
goto novacagrp_done
)
if not exist vacation.grp (
echo Installation Error!
echo Contact Hendricks266 for help.
echo.
pause
goto end
)
 
:ssi3
echo You do have the Caribbean SSI file in this directory, but it has not been
292,10 → 147,9
echo extracted. It will now be unpacked.
echo.
pause
mkdir vaca13ssi
chdir vaca13ssi
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
"%unpackssi%" ..\VACA13.SSI
md vaca13ssi
cd vaca13ssi
..\utils\windows\win32\unpackssi.exe ..\VACA13.SSI
ren *.TRA *.ART
ren *.PCS *.SCP
ren VACA1.MAP vaca1.map
315,95 → 169,37
ren *.MNA *.ANM
ren *.COV *.VOC
ren *.OMD *.DMO
ren GAME.CON VACAGAME.CON
ren USER.CON VACAUSER.CON
ren DEFS.CON VACADEFS.CON
ren DUKETEAM.ANM RADLOGO.ANM
"%kgroup%" vacation.grp *.ART *.SCP *.map *.MID *.ANM *.VOC *.DMO CARIB.EXE
if exist vacation.grp move /y vacation.grp ..\vacation.grp
..\utils\windows\win32\kgroup.exe VACATION.GRP *.ART *.SCP *.map *.CON *.MID *.ANM *.VOC *.DMO CARIB.EXE
move /y VACATION.GRP ..\VACATION.GRP
move /y *.map ..\
chdir ..
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
if exist vacation.grp (
rmdir /s /q vaca13ssi
cd ..
rd /s /q vaca13ssi
goto novacagrp_done
)
if not exist vacation.grp (
echo Installation Error!
echo Contact Hendricks266 for help.
echo.
pause
goto end
)
 
:novacagrp_done
type DVINTRO.TXT
echo.
pause
call :grpchecksum
call :grpchecksum_results
goto novacagrp_return
 
:grpchecksum
if not exist "%sha1sum%" (
echo "%sha1sum%" not found.
goto :eof
)
pushd .
if exist "%addondir%\%vacagrpname%" chdir /d %addondir%
if exist "%exedir%\%vacagrpname%" chdir /d %exedir%
echo ea0a9a77b9aee6edce76afa19eaea3a810fb2390 *%vacagrpname% | "%sha1sum%" --status --check -
if "%ERRORLEVEL%"=="0" set version=full&& popd && goto :eof
if "%ERRORLEVEL%"=="1" echo 65b8b787616ed637f86cfcaa90de24c8e65b3dcc *%vacagrpname% | "%sha1sum%" --status --check -
if "%ERRORLEVEL%"=="0" set version=megaton&& call :conprotect && popd && goto :eof
if "%ERRORLEVEL%"=="1" set version=unknown
popd
goto :eof
 
:grpchecksum_results
if "%version%"=="full" echo VACATION.GRP checksum verified.
if "%version%"=="megaton" echo VACATION.GRP (Megaton Edition) checksum verified.
if "%version%"=="unknown" echo VACATION.GRP checksum does not match. You may have a bad copy.
echo.
goto :eof
 
 
:mapextract
echo Extracted maps not found or patched. Proceeding to installation.
goto extract
 
:updateextract
echo Map patch update required. Proceeding to installation.
goto extract
 
:extract
echo.
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Installation º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Duke Caribbean: Life's A Beach Plus Installation º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo ³ By Hendricks266 ³
echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo.
call :grpchecksum
call :grpchecksum_results
if not exist vaca1.patch goto nopatch
if not exist vaca2.patch goto nopatch
if not exist vaca3.patch goto nopatch
if not exist vaca4.patch goto nopatch
if not exist vaca5.patch goto nopatch
if not exist vaca6.patch goto nopatch
if not exist vaca7.patch goto nopatch
if not exist vacasl.patch goto nopatch
if not exist vacadm1.patch goto nopatch
if not exist vacadm2.patch goto nopatch
if not exist vacadm3.patch goto nopatch
if not exist vacadm4.patch goto nopatch
mkdir vaca_preserve
if exist vaca*.map move /y vaca*.map vaca_preserve\
if exist "%exedir%\vaca*.map" move /y "%exedir%\vaca*.map" vaca_preserve\
:: TODO: eliminate the need for the if exist checks; tighten up path handling
set grp=vacation.grp
if exist "%addondir%\%vacagrpname%" set grp=%addondir%\%vacagrpname%
if exist "%exedir%\%vacagrpname%" set grp=%exedir%\%vacagrpname%
"%kextract%" "%grp%" VACA*.MAP
if not exist vaca1.ips goto noips
if not exist vaca2.ips goto noips
if not exist vaca3.ips goto noips
if not exist vaca4.ips goto noips
if not exist vaca5.ips goto noips
if not exist vaca6.ips goto noips
if not exist vaca7.ips goto noips
if not exist vacasl.ips goto noips
if not exist vacadm1.ips goto noips
if not exist vacadm2.ips goto noips
if not exist vacadm3.ips goto noips
if not exist vacadm4.ips goto noips
if exist vaca*.map del /f /q vaca*.map
if exist ..\vaca*.map del /f /q ..\vaca*.map
utils\windows\win32\kextract.exe VACATION.GRP VACA*.MAP
ren VACA1.MAP vaca1.map
ren VACA2.MAP vaca2.map
ren VACA3.MAP vaca3.map
422,27 → 218,39
echo Map patching will now begin.
echo.
pause
echo.
"%bspatch%" vaca1.map vaca1.map vaca1.patch
"%bspatch%" vaca2.map vaca2.map vaca2.patch
"%bspatch%" vaca3.map vaca3.map vaca3.patch
"%bspatch%" vaca4.map vaca4.map vaca4.patch
"%bspatch%" vaca5.map vaca5.map vaca5.patch
"%bspatch%" vaca6.map vaca6.map vaca6.patch
"%bspatch%" vaca7.map vaca7.map vaca7.patch
"%bspatch%" vacasl.map vacasl.map vacasl.patch
"%bspatch%" vacadm1.map vacadm1.map vacadm1.patch
"%bspatch%" vacadm2.map vacadm2.map vacadm2.patch
"%bspatch%" vacadm3.map vacadm3.map vacadm3.patch
"%bspatch%" vacadm4.map vacadm4.map vacadm4.patch
echo
utils\windows\win32\uips.exe a vaca1.ips vaca1.map
utils\windows\win32\uips.exe a vaca2.ips vaca2.map
utils\windows\win32\uips.exe a vaca3.ips vaca3.map
utils\windows\win32\uips.exe a vaca4.ips vaca4.map
utils\windows\win32\uips.exe a vaca5.ips vaca5.map
utils\windows\win32\uips.exe a vaca6.ips vaca6.map
utils\windows\win32\uips.exe a vaca7.ips vaca7.map
utils\windows\win32\uips.exe a vacasl.ips vacasl.map
utils\windows\win32\uips.exe a vacadm1.ips vacadm1.map
utils\windows\win32\uips.exe a vacadm2.ips vacadm2.map
utils\windows\win32\uips.exe a vacadm3.ips vacadm3.map
utils\windows\win32\uips.exe a vacadm4.ips vacadm4.map
if exist vacapatch*.h266 del /f /q vacapatch*.h266
if exist vacaflag*.h266 del /f /q vacaflag*.h266
echo Do not delete this file! You will be forced to reinstall Vaca+ and repatch the maps. >vacaflag_%addonver%.h266
attrib +r vacaflag_%addonver%.h266
del /f /q vaca1.ips
del /f /q vaca2.ips
del /f /q vaca3.ips
del /f /q vaca4.ips
del /f /q vaca5.ips
del /f /q vaca6.ips
del /f /q vaca7.ips
del /f /q vacasl.ips
del /f /q vacadm1.ips
del /f /q vacadm2.ips
del /f /q vacadm3.ips
del /f /q vacadm4.ips
echo Do not delete this file! You will be force to reinstall Vaca+ and repatch the maps. >vacaflag%vacaver%.h266
attrib +r vacaflag%vacaver%.h266
echo.
echo Patching complete!
:scanning
chdir "%exedir%"
cd ..
echo.
echo Scanning directory for potential problems.
if exist vaca1.mhk goto mhkfound
472,25 → 280,6
if exist TILES012.ART goto artfound
if exist TILES014.ART goto artfound
:artfound_done
call :checksum 3d5092d053b23a823c1fa0ad0b0bdbc33b2a09bb DEFS.CON "VACA15 file detected and neutralized:"
call :checksum 807aaf21edd6e315bcb76dd54450f28616f84609 GAME.CON "VACA15 file detected and neutralized:"
call :checksum 6d29c3b19d26ff84edb104e68120edc5150066dd USER.CON "VACA15 file detected and neutralized:"
call :checksum 856374f3b42a1f2e355730ffc70497a3e6a49585 BEACHBAB.CON "VACA15 file detected and neutralized:"
call :checksum efb8168c6351d4b5e2c108ebc8189d4aba85ef35 BEACHBAL.CON "VACA15 file detected and neutralized:"
call :checksum a947947409a76ea7e6c46076a8cfbaa76f8b0172 BEACHBTH.CON "VACA15 file detected and neutralized:"
call :checksum 3c11b9d40a204849c2d7d6c10984397f3b6a444c DRAGON.CON "VACA15 file detected and neutralized:"
call :checksum 1417476e2cd8a3aef85dd9c1f36308f2123d8b54 SEAGULL.CON "VACA15 file detected and neutralized:"
call :checksum 0c1314dcd983b232f6afb941942e1ccbd7331ebb SOUNDS.CON "VACA15 file detected and neutralized:"
call :checksum 032a25b2cd98e19a5ff9a859ac27c91a4abfcb46 USER.CON "VACAPP file detected and neutralized:"
call :checksum 34ed9d27095d547e20fb9db87957d17ca9cb2046 DEFS.CON "VACA13 file detected and neutralized:"
call :checksum 3480ad8caca150b7c4678a42a606c0d9941db631 GAME.CON "VACA13 file detected and neutralized:"
call :checksum 74feb12ecfa57cb4c8e151593bff89e06b1ae11e USER.CON "VACA13 file detected and neutralized:"
call :checksum 840d701ca5e1e590ff03510eb5d63880f3e5be79 BEACHBAB.CON "VACA13 file detected and neutralized:"
call :checksum f4c7080384dde2f298e807b1bc9901e6e61ac617 BEACHBAL.CON "VACA13 file detected and neutralized:"
call :checksum 9965ae6e6b4337d06e1df22b41592b4cdfb69b2f BEACHBTH.CON "VACA13 file detected and neutralized:"
call :checksum d56a1ff075671d0919540086a062b37290113621 DRAGON.CON "VACA13 file detected and neutralized:"
call :checksum 06be81473bad004296324b2d63f4730ac2160aa6 SEAGULL.CON "VACA13 file detected and neutralized:"
call :checksum ef149cd90764bae685d9fab83eb2fe719486dce3 SOUNDS.CON "VACA13 file detected and neutralized:"
if exist Vacation.con goto confound
if exist VacaEDuke.con goto confound
if exist VacaDefs.con goto confound
505,36 → 294,13
if exist VDragon.con goto confound
if exist VSeagull.con goto confound
:confound_done
call :conprotect
chdir /d "%addondir%"
echo.
pause
goto restart
 
:conprotect
pushd "%exedir%"
if not exist GAME.CON "%kextract%" DUKE3D.GRP GAME.CON
if not exist DEFS.CON "%kextract%" DUKE3D.GRP DEFS.CON
if not exist USER.CON "%kextract%" DUKE3D.GRP USER.CON
popd
goto :eof
 
:checksum
if not exist "%sha1sum%" (
echo "%sha1sum%" not found.
goto :eof
)
if not exist "%~2" goto :eof
echo %~1 *%~2 | "%sha1sum%" --status --check -
if "%ERRORLEVEL%"=="0" (
ren "%~2" "VacaOld_%addonver%_%~nx2"
echo %~3 %~nx2
)
goto :eof
 
:nopatch
:noips
echo.
echo Error: You don't have all the *.patch files in your directory.
echo Error: You don't have all the *.ips files in your directory.
echo Aborting installation.
echo Map patching is required for Vaca+ to function correctly.
echo.
545,7 → 311,7
echo.
echo Problematic .mhk files have been found in your directory.
echo Unless you have knowingly made a modification to Vaca's map hacks,
echo the presence of these files in your %exeproper% directory will
echo the presence of these files in your EDuke32 directory will
echo cause Vaca+ to function incorrectly.
echo.
echo vaca1.mhk
569,7 → 335,7
echo.
echo Problematic .art files have been found in your directory.
echo Unless you have knowingly made a modification to Vaca's art,
echo the presence of these files in your %exeproper% directory will
echo the presence of these files in your EDuke32 directory will
echo cause Vaca+ to function incorrectly.
echo.
echo TILES000.ART
588,7 → 354,7
echo.
echo Problematic .con files have been found in your directory.
echo Unless you have knowingly made a modification to Vaca's programming,
echo the presence of these files in your %exeproper% directory will
echo the presence of these files in your EDuke32 directory will
echo cause Vaca+ to function incorrectly.
echo.
echo Vacation.con
606,7 → 372,7
echo VSeagull.con
echo.
echo IF THESE ARE THE ORIGINAL CARIBBEAN CON FILES, OR THEY COME FROM
echo AN OUTDATED VERSION OF VACA+, REMOVE THEM FROM YOUR %exeproper% DIRECTORY
echo AN OUTDATED VERSION OF VACA+, REMOVE THEM FROM YOUR EDUKE32 DIRECTORY
echo IMMEDIATELY!
echo Vaca+ uses modified .con files to fix programming errors created by
echo the original programmers. Due to improvements made to the levels,
613,15 → 379,34
echo Vaca+ will have major errors if the included .con files are not used.
goto confound_done
 
:execheck
if exist %exename%.bat goto execheck_done
if exist %exename%.exe goto recheck
set prevdir=%cd%
if not "%cd%"=="%cd:~0,3%" chdir ..
if not "%cd%"=="%prevdir%" goto execheck
echo Warning: You don't have %exeproper% in your directory.
chdir /d "%startdir%"
goto execheck_done
:eduke32check
if exist eduke32.bat goto eduke32check_done
if exist ..\eduke32.exe (
cd ..
goto recheck
)
if exist ..\..\eduke32.exe (
cd ..\..
goto recheck
)
if exist ..\..\..\eduke32.exe (
cd ..\..\..
goto recheck
)
if exist ..\eduke32.bat (
cd ..
goto eduke32check_done
)
if exist ..\..\eduke32.bat (
cd ..\..
goto eduke32check_done
)
if exist ..\..\..\eduke32.bat (
cd ..\..\..
goto eduke32check_done
)
echo Warning: You don't have EDuke32 in your directory.
goto eduke32check_done
 
:nodir
echo.
632,10 → 417,11
goto end
 
:end
if "%debug%"=="1" echo.
if "%debug%"=="1" pause
set hrp=
set hrpu=
echo.
popd
endlocal
title %ComSpec%
color 07
@color 07
@title %ComSpec%
cd %dir%
@echo on
goto :eof