5,11 → 5,13 |
title Duke Caribbean: Life's A Beach Plus Batch Launcher |
|
set dir=%cd% |
set eduke32dir=%~dp0 |
set vacadir=%~dp0 |
set vacahrpdir=%~dp0 |
set vacaver=30 |
set hrp= |
set hrpu= |
|
|
:title |
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» |
echo º Duke Caribbean: Life's A Beach Plus Batch Launcher º |
21,20 → 23,35 |
echo various enhancements of Duke Caribbean: Life's A Beach Plus, maintained by |
echo Hendricks266. |
echo. |
|
:recheck |
if not exist eduke32.exe goto eduke32check |
:eduke32check_done |
if "%debug%"=="1" echo DEBUG: Directory: "%cd%" |
set eduke32dir=%cd% |
if "%debug%"=="1" echo DEBUG: EDuke32 Directory: "%eduke32dir%" |
|
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.PRG ren VACATION.PRG VACATION.GRP |
if exist vaca_plus\VACATION.PRG ren vaca_plus\VACATION.PRG VACATION.GRP |
if not exist vaca_plus\VACATION.GRP ( |
if exist VACATION.GRP move /y VACATION.GRP vaca_plus\ |
|
if exist vacation_hrp set vacahrpdir=%cd% |
:vacadircheck |
if exist VACATION.PRG ren VACATION.PRG vacation.grp |
cd vaca_plus |
set vacadir=%cd% |
if exist vacation_hrp set vacahrpdir=%cd% |
if exist vaca_plus goto vacadircheck |
if "%debug%"=="1" echo DEBUG: Vaca+ Directory: "%vacadir%". |
if "%debug%"=="1" echo DEBUG: VacaHRP Directory: "%vacahrpdir%". |
|
if not exist "%vacadir%\VACATION.GRP" ( |
if exist "%eduke32dir%\VACATION.GRP" ( |
move /y "%eduke32dir%\VACATION.GRP" "%vacadir%\" |
ren "%vacadir%\VACATION.GRP" vacation.grp |
) else ( |
goto novacagrp |
) |
cd vaca_plus |
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
if not exist VACATION.GRP goto novacagrp |
) |
|
:novacagrp_done |
if not exist vacaflag%vacaver%.h266 goto extract |
if not exist vaca1.map goto extract |
49,13 → 66,11 |
if not exist vacadm3.map goto extract |
if not exist vacadm4.map goto extract |
if not exist vacasl.map goto extract |
cd .. |
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
cd "%eduke32dir%" |
echo. |
echo. |
echo. |
echo. |
echo. |
|
:init |
pause |
64,20 → 79,28 |
|
:check |
|
if exist duke3d_hrp.zip set hrp=/gduke3d_hrp.zip |
if exist hrp_update.zip set hrpu=/ghrp_update.zip |
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 playing! |
echo. |
echo Please leave this window open for the entire duration of your game. |
echo Please do not close this window. |
echo It will close automatically. |
|
::if exist *.art ren *.art *.abk |
|
eduke32 /xVacaEDuke.con /hvacation.def /jvaca_plus /gVACATION.GRP %hrp% %hrpu% %* |
set args=-xVacaEDuke.con -hvacation.def -j"%vacadir%" -j"%vacahrpdir%" -gvacation.grp %hrp% %hrpu% %* |
set exe=eduke32 |
if "%debug%"=="1" set exe=eduke32.debug |
|
if exist %exe%.bat ( |
call %exe%.bat %args% |
) else ( |
start %exe%.exe %args% |
) |
|
::if exist *.abk ren *.abk *.art |
|
goto end |
130,7 → 153,7 |
cd vaca15ssi |
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
..\utils\windows\win32\unpackssi.exe ..\VACA15.SSI |
move /y VACATION.PRG ..\VACATION.GRP |
move /y VACATION.PRG ..\vacation.grp |
cd .. |
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
rd /s /q vaca15ssi |
145,7 → 168,7 |
cd vacappssi |
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
..\utils\windows\win32\unpackssi.exe ..\VACAPP.SSI |
move /y VACATION.PRG ..\VACATION.GRP |
move /y VACATION.PRG ..\vacation.grp |
cd .. |
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
rd /s /q vacappssi |
180,8 → 203,8 |
ren *.COV *.VOC |
ren *.OMD *.DMO |
ren DUKETEAM.ANM RADLOGO.ANM |
..\utils\windows\win32\kgroup.exe VACATION.GRP *.ART *.SCP *.map *.CON *.MID *.ANM *.VOC *.DMO CARIB.EXE |
move /y VACATION.GRP ..\VACATION.GRP |
..\utils\windows\win32\kgroup.exe VACATION.GRP *.ART *.SCP *.map *.MID *.ANM *.VOC *.DMO CARIB.EXE |
move /y VACATION.GRP ..\vacation.grp |
move /y *.map ..\ |
cd .. |
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
210,7 → 233,7 |
if not exist vacadm4.ips goto noips |
md vaca_preserve |
if exist vaca*.map move /y vaca*.map vaca_preserve\ |
if exist ..\vaca*.map move /y ..\vaca*.map vaca_preserve\ |
if exist "%eduke32dir%\vaca*.map" move /y "%eduke32dir%\vaca*.map" vaca_preserve\ |
utils\windows\win32\kextract.exe VACATION.GRP VACA*.MAP |
ren VACA1.MAP vaca1.map |
ren VACA2.MAP vaca2.map |
245,13 → 268,12 |
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 force to reinstall Vaca+ and repatch the maps. >vacaflag%vacaver%.h266 |
echo Do not delete this file! You will be forced to reinstall Vaca+ and repatch the maps. >vacaflag%vacaver%.h266 |
attrib +r vacaflag%vacaver%.h266 |
echo. |
echo Patching complete! |
:scanning |
cd .. |
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
cd "%eduke32dir%" |
echo. |
echo Scanning directory for potential problems. |
if exist vaca1.mhk goto mhkfound |
418,8 → 440,6 |
goto end |
|
:end |
set hrp= |
set hrpu= |
echo. |
@color 07 |
@title %ComSpec% |