Subversion Repositories vaca_plus

Compare Revisions

Regard whitespace Rev 12 → Rev 13

/vaca_plus/carib_mapster32_debug.bat
0,0 → 1,5
@echo off
echo Using debug mode.
echo.
set debug=1
Carib_Mapster32.bat %*
/vaca_plus/Carib_XXX.bat
1,3 → 1,4
@echo off
echo Using XXX mode.
Caribbean.bat /hvaca_xxx.def %*
echo.
Caribbean.bat -hvaca_xxx.def %*
/vaca_plus/Carib_DP.bat
1,3 → 1,4
@echo off
echo Using Duke Plus by DeeperThought.
echo.
Caribbean.bat -xVacaDP.con -hvaca_dp.def %* -jDukePlus
/vaca_plus/Carib_DP_XXX.bat
1,3 → 1,4
@echo off
echo Using Duke Plus by DeeperThought.
echo.
Carib_XXX.bat -xVacaDPXXX.con -hvaca_dp_xxx.def %* -jDukePlus
/vaca_plus/carib_debug.bat
1,4 → 1,5
@echo off
echo Using batch script debugging.
echo Using debug mode.
echo.
set debug=1
Caribbean.bat
Caribbean.bat %*
/vaca_plus/Caribbean.bat
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%
/vaca_plus/Carib_Mapster32.bat
1,8 → 1,41
@echo off
 
set mapster32dir=%~dp0
set vacadir=%~dp0
set vacahrpdir=%~dp0
 
:recheck
if not exist mapster32.exe goto mapster32check
:mapster32check_done
start mapster32 /jvaca_plus -hvacation.def -gVACATION.GRP %*
set mapster32dir=%cd%
if "%debug%"=="1" echo DEBUG: Mapster32 Directory: "%mapster32dir%"
 
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%".
 
cd "%mapster32dir%"
 
if exist duke3d_hrp.zip set hrp=-gduke3d_hrp.zip
if exist hrp_update.zip set hrpu=-ghrp_update.zip
 
set args=-j"%vacadir%" -j"%vacahrpdir%" -hvacation.def -gvacation.grp %hrp% %hrpu% %*
set exe=mapster32
if "%debug%"=="1" set exe=mapster32.debug
 
if exist %exe%.bat (
call %exe%.bat %args%
) else (
%exe%.exe %args%
)
 
goto end
 
:mapster32check
/vaca_plus/Carib_Mapster32_DP.bat
1,3 → 1,4
@echo off
echo Using Duke Plus by DeeperThought.
echo.
Carib_Mapster32.bat -hvaca_dp.def %* -jDukePlus