@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
)
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Duke Caribbean: Life's A Beach Plus º
echo ÈÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍͼ
echo You are
%action% Sunstorm Interactive's Duke Caribbean: Life's A Beach with the
echo various enhancements of Duke Caribbean: Life's A Beach Plus, maintained by
if "
%xxx%"=="1"
echo Using XXX mode.
if "
%dp%"=="1"
echo Using Duke Plus by DeeperThought.
if "
%debug%"=="1"
echo Using debug mode.
:recheck
:execheck_done
if "
%debug%"=="1"
echo DEBUG:
%exeproper% Directory: "
%exedir%"
if not exist duke3d.grp
echo Warning: You don't have Duke3D.grp
in your directory.
:addondircheck
if exist VACATION.PRG
ren VACATION.PRG vacation.grp
if "
%debug%"=="1"
echo DEBUG: Vaca+ Directory: "
%addondir%".
if "
%debug%"=="1"
echo DEBUG: VacaHRP Directory: "
%addonhrpdir%".
move /y "
%exedir%\VACATION.GRP" "
%addondir%\"
ren "
%addondir%\VACATION.GRP" vacation.grp
) )
:novacagrp_done
:init
:check
echo Launching Duke Nukem 3D . . .
type "%exedir%\names.h" > "%exedir%\VacaNames.h"
echo.
>> "
%exedir%\VacaNames.h"
type "%addondir%\VacaNames.def" >> "%exedir%\VacaNames.h"
)
:arguments
if exist polymer_hrp\
set args=
%args% -jpolymer_hrp
if exist duke3d_voxel.zip
set args=
%args% -gduke3d_voxel.zip
if exist duke3d_hrp.zip
set args=
%args% -gduke3d_hrp.zip
if exist hrp_update.zip
set args=
%args% -ghrp_update.zip
if exist maphacks.zip
set args=
%args% -gmaphacks.zip
if exist eduke32_mus.zip
set args=
%args% -geduke32_mus.zip
if exist "
%addondir%"
set args=
%args% -j"
%addondir:\=/%"
if exist "
%addonhrpdir%"
set args=
%args% -j"
%addonhrpdir:\=/%"
set args=
%args% -gvacation.grp -hvacation.def -xVacaEDuke.
con
if "
%editor%"=="1"
set args=
%args% -namesfile VacaNames.h
set args=
%args% -hvaca_dp.def -xVacaDP.
con
)
if exist xxx_lite.zip
set args=
%args% -gxxx_lite.zip
if exist xxx_pack.zip
set args=
%args% -gxxx_pack.zip
set args=
%args% -hvaca_xxx.def
set args=
%args% -hvaca_dp_xxx.def -xVacaDPXXX.
con
) )
if "
%dp%"=="1"
set args=
%args% -jDukePlus
if "
%debug%"=="1"
set exe=
%exename%.debug
start %exe%.exe %args%
)
:novacagrp
echo Error: You don't have VACATION.GRP
in your directory.
echo You don't have the SSI files
in your directory either.
:retry
set /p cddrive=What is the drive letter that your Caribbean
CD is
in?
if not '
%cddrive%'==''
set cddrive=
%cddrive:~0,1%
copy %cddrive%:\VACATION\*.SSI .\
type DVINTRO.TXT
:cdno
echo '
%cddrive%' is
not valid. Please try again.
:cdw
echo '
%cddrive%' is
not the correct disc. Please try again.
:ssi1
echo You
do have the Caribbean SSI file
in this directory, but it has
not been
echo extracted. It will now be unpacked.
if "
%debug%"=="1"
echo DEBUG: Changing directory to "
%cd%".
..\utils\windows\win32\unpackssi.exe ..\VACA15.SSI
move /y VACATION.PRG ..\vacation.grp
if "
%debug%"=="1"
echo DEBUG: Changing directory to "
%cd%".
:ssi2
echo You
do have the Caribbean SSI file
in this directory, but it has
not been
echo extracted. It will now be unpacked.
if "
%debug%"=="1"
echo DEBUG: Changing directory to "
%cd%".
..\utils\windows\win32\unpackssi.exe ..\VACAPP.SSI
move /y VACATION.PRG ..\vacation.grp
if "
%debug%"=="1"
echo DEBUG: Changing directory to "
%cd%".
:ssi3
echo You
do have the Caribbean SSI file
in this directory, but it has
not been
echo extracted. It will now be unpacked.
if "
%debug%"=="1"
echo DEBUG: Changing directory to "
%cd%".
..\utils\windows\win32\unpackssi.exe ..\VACA13.SSI
ren VACASL.MAP vacasl.map
ren VACADM1.MAP vacadm1.map
ren VACADM2.MAP vacadm2.map
ren VACADM3.MAP vacadm3.map
ren VACADM4.MAP vacadm4.map
ren DUKETEAM.ANM RADLOGO.ANM
..\utils\windows\win32\kgroup.exe VACATION.GRP *.ART *.SCP *.map *.MID *.ANM *.VOC *.DMO CARIB.EXE
move /y VACATION.GRP ..\vacation.grp
if "
%debug%"=="1"
echo DEBUG: Changing directory to "
%cd%".
:mapextract
echo Extracted maps
not found. Proceeding to installation.
:updateextract
echo Map patch update required. Proceeding to installation.
:extract
if exist "
%exedir%\vaca*.map"
move /y "
%exedir%\vaca*.map" vaca_preserve\
utils\windows\win32\kextract.exe VACATION.GRP VACA*.MAP
ren VACASL.MAP vacasl.map
ren VACADM1.MAP vacadm1.map
ren VACADM2.MAP vacadm2.map
ren VACADM3.MAP vacadm3.map
ren VACADM4.MAP vacadm4.map
if exist vacapatch*.h266
del /f /q vacapatch*.h266
echo Map patching will now begin.
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
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
:scanning
echo Scanning directory
for potential problems.
:mhkfound_done
:artfound_done
:confound_done
:noips
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.
:mhkfound
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 cause Vaca+ to function incorrectly.
:artfound
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 cause Vaca+ to function incorrectly.
:confound
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 cause Vaca+ to function incorrectly.
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 Vaca+ uses modified .
con files to fix programming errors created by
echo the original programmers. Due to improvements made to the levels,
echo Vaca+ will have major errors
if the included .
con files are
not used.
:execheck
)
)
)
)
)
)
echo Warning: You don't have
%exeproper% in your directory.
:nodir
echo Error: "vaca_plus" data directory
not found.
:end
@color 07