Subversion Repositories vaca_plus

Compare Revisions

Regard whitespace Rev 16 → Rev 17

/vaca_plus/Caribbean.bat
2,58 → 2,71
@color 0C
 
:restart
title Duke Caribbean: Life's A Beach Plus Batch Launcher
title Duke Caribbean: Life's A Beach Plus Launcher
if "%editor%"=="1" title Duke Caribbean: Life's A Beach Plus Editor Launcher
 
set dir=%cd%
set eduke32dir=%~dp0
set vacadir=%~dp0
set vacahrpdir=%~dp0
set vacaver=30
set hrp=
set hrpu=
set exedir=%~dp0
set addondir=%~dp0
set addonhrpdir=%~dp0
 
set exename=eduke32
set exeproper=EDuke32
set action=playing
 
if "%editor%"=="1" (
set exename=mapster32
set exeproper=Mapster32
set action=editing
)
 
set addonver=r001
 
:title
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Duke Caribbean: Life's A Beach Plus Batch Launcher º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Duke Caribbean: Life's A Beach Plus º
echo ÈÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍͼ
echo ³ By Hendricks266 ³
echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo.
echo You are playing Sunstorm Interactive's Duke Caribbean: Life's A Beach with the
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
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.
 
:recheck
if not exist eduke32.exe goto eduke32check
:eduke32check_done
set eduke32dir=%cd%
if "%debug%"=="1" echo DEBUG: EDuke32 Directory: "%eduke32dir%"
if not exist %exename%.exe goto execheck
:execheck_done
set exedir=%cd%
if "%debug%"=="1" echo DEBUG: %exeproper% Directory: "%exedir%"
 
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 vacahrpdir=%cd%
:vacadircheck
if exist vacation\ set addonhrpdir=%cd%
:addondircheck
if exist VACATION.PRG ren VACATION.PRG vacation.grp
cd vaca_plus
set vacadir=%cd%
if exist vacation\ 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%".
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%".
 
if not exist "%vacadir%\VACATION.GRP" (
if exist "%eduke32dir%\VACATION.GRP" (
move /y "%eduke32dir%\VACATION.GRP" "%vacadir%\"
ren "%vacadir%\VACATION.GRP" vacation.grp
if not exist "%addondir%\VACATION.GRP" (
if exist "%exedir%\VACATION.GRP" (
move /y "%exedir%\VACATION.GRP" "%addondir%\"
ren "%addondir%\VACATION.GRP" vacation.grp
) else (
goto novacagrp
)
)
) )
 
:novacagrp_done
if not exist vacaflag%vacaver%.h266 goto extract
if not exist vacaflag_%addonver%.h266 goto extract
if not exist vaca1.map goto extract
if not exist vaca2.map goto extract
if not exist vaca3.map goto extract
66,12 → 79,14
if not exist vacadm3.map goto extract
if not exist vacadm4.map goto extract
if not exist vacasl.map goto extract
cd "%eduke32dir%"
cd "%exedir%"
echo.
echo.
echo.
echo.
echo.
 
 
:init
pause
echo.
79,26 → 94,41
 
: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 playing!
echo.
echo Please do not close this window.
echo It will close automatically.
echo Thanks for %action%^!
 
::if exist *.art ren *.art *.abk
:arguments
set args=
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
if "%editor%"=="1" set args=%args% -namesfile VacaNames.h
if not "%editor%"=="1" set args=%args% -xVacaEDuke.con
if "%dp%"=="1" (
set args=%args% -hvaca_dp.def
if not "%editor%"=="1" set args=%args% -xVacaDP.con
)
if "%xxx%"=="1" (
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
if "%dp%"=="1" (
set args=%args% -hvaca_dp_xxx.def
if not "%editor%"=="1" set args=%args% -xVacaDPXXX.con
) )
set args=%args% %*
if "%dp%"=="1" set args=%args% -jDukePlus
 
set args=-xVacaEDuke.con -hvacation.def
if exist "%vacadir%" set args=%args% -j"%vacadir:\=/%"
if exist "%vacahrpdir%" set args=%args% -j"%vacahrpdir:\=/%"
set args=%args% -gvacation.grp %hrp% %hrpu% %*
set exe=%exename%
if "%debug%"=="1" set exe=%exename%.debug
 
set exe=eduke32
if "%debug%"=="1" set exe=eduke32.debug
 
if exist %exe%.bat (
call %exe%.bat %args%
) else (
105,18 → 135,8
start %exe%.exe %args%
)
 
::if exist *.abk ren *.abk *.art
 
goto end
 
:noduke
echo.
 
echo Aborting launch.
echo.
pause
goto end
 
:novacagrp
echo.
echo Error: You don't have VACATION.GRP in your directory.
217,11 → 237,9
 
:extract
echo.
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Duke Caribbean: Life's A Beach Plus Installation º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo ³ By Hendricks266 ³
echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Installation º
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
echo.
if not exist vaca1.ips goto noips
if not exist vaca2.ips goto noips
237,7 → 255,7
if not exist vacadm4.ips goto noips
md vaca_preserve
if exist vaca*.map move /y vaca*.map vaca_preserve\
if exist "%eduke32dir%\vaca*.map" move /y "%eduke32dir%\vaca*.map" vaca_preserve\
if exist "%exedir%\vaca*.map" move /y "%exedir%\vaca*.map" vaca_preserve\
utils\windows\win32\kextract.exe VACATION.GRP VACA*.MAP
ren VACA1.MAP vaca1.map
ren VACA2.MAP vaca2.map
272,12 → 290,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 forced to reinstall Vaca+ and repatch the maps. >vacaflag%vacaver%.h266
attrib +r vacaflag%vacaver%.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
echo.
echo Patching complete!
echo Patching complete^!
:scanning
cd "%eduke32dir%"
cd "%exedir%"
echo.
echo Scanning directory for potential problems.
if exist vaca1.mhk goto mhkfound
338,7 → 356,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 EDuke32 directory will
echo the presence of these files in your %exeproper% directory will
echo cause Vaca+ to function incorrectly.
echo.
echo vaca1.mhk
362,7 → 380,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 EDuke32 directory will
echo the presence of these files in your %exeproper% directory will
echo cause Vaca+ to function incorrectly.
echo.
echo TILES000.ART
381,7 → 399,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 EDuke32 directory will
echo the presence of these files in your %exeproper% directory will
echo cause Vaca+ to function incorrectly.
echo.
echo Vacation.con
399,41 → 417,41
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 EDUKE32 DIRECTORY
echo IMMEDIATELY!
echo AN OUTDATED VERSION OF VACA+, REMOVE THEM FROM YOUR %exeproper% 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,
echo Vaca+ will have major errors if the included .con files are not used.
goto confound_done
 
:eduke32check
if exist eduke32.bat goto eduke32check_done
if exist ..\eduke32.exe (
:execheck
if exist %exename%.bat goto execheck_done
if exist ..\%exename%.exe (
cd ..
goto recheck
)
if exist ..\..\eduke32.exe (
if exist ..\..\%exename%.exe (
cd ..\..
goto recheck
)
if exist ..\..\..\eduke32.exe (
if exist ..\..\..\%exename%.exe (
cd ..\..\..
goto recheck
)
if exist ..\eduke32.bat (
if exist ..\%exename%.bat (
cd ..
goto eduke32check_done
goto execheck_done
)
if exist ..\..\eduke32.bat (
if exist ..\..\%exename%.bat (
cd ..\..
goto eduke32check_done
goto execheck_done
)
if exist ..\..\..\eduke32.bat (
if exist ..\..\..\%exename%.bat (
cd ..\..\..
goto eduke32check_done
goto execheck_done
)
echo Warning: You don't have EDuke32 in your directory.
goto eduke32check_done
echo Warning: You don't have %exeproper% in your directory.
goto execheck_done
 
:nodir
echo.
445,6 → 463,10
 
:end
echo.
set editor=0
set xxx=0
set dp=0
set debug=0
cd %dir%
@title %ComSpec%
@color 07
@title %ComSpec%
cd %dir%