2,56 → 2,71 |
@color 0C |
|
:restart |
title Duke: Nuclear Winter Plus Batch Launcher |
title Duke: Nuclear Winter Plus Launcher |
if "%editor%"=="1" title Duke: Nuclear Winter Plus Editor Launcher |
|
set dir=%cd% |
set eduke32dir=%~dp0 |
set nwdir=%~dp0 |
set nwhrpdir=%~dp0 |
set nwver=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: Nuclear Winter Plus Batch Launcher º |
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍͼ |
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» |
echo º Duke: Nuclear Winter Plus º |
echo ÈÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍͼ |
echo ³ By Hendricks266 ³ |
echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ |
echo. |
echo You are playing Simply Silly Software's Duke: Nuclear Winter with the various |
echo You are %action% Simply Silly Software's Duke: Nuclear Winter with the various |
echo enhancements of Duke: Nuclear Winter Plus, maintained by 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 nw_plus\ goto nodir |
if not exist duke3d.grp echo Warning: You don't have Duke3D.grp in your directory. |
|
if exist nwinter\ set nwhrpdir=%cd% |
:nwdircheck |
if exist nwinter\ set addonhrpdir=%cd% |
:addondircheck |
|
cd nw_plus |
set nwdir=%cd% |
if exist nwinter\ set nwhrpdir=%cd% |
if exist nw_plus\ goto nwdircheck |
if "%debug%"=="1" echo DEBUG: NW+ Directory: "%nwdir%". |
if "%debug%"=="1" echo DEBUG: NWHRP Directory: "%nwhrpdir%". |
set addondir=%cd% |
if exist nwinter\ set addonhrpdir=%cd% |
if exist nw_plus\ goto addondircheck |
if "%debug%"=="1" echo DEBUG: NW+ Directory: "%addondir%". |
if "%debug%"=="1" echo DEBUG: NWHRP Directory: "%addonhrpdir%". |
|
if not exist "%nwdir%\NWINTER.GRP" ( |
if exist "%eduke32dir%\NWINTER.GRP" ( |
move /y "%eduke32dir%\NWINTER.GRP" "%nwdir%\" |
ren "%nwdir%\NWINTER.GRP" nwinter.grp |
if not exist "%addondir%\NWINTER.GRP" ( |
if exist "%exedir%\NWINTER.GRP" ( |
move /y "%exedir%\NWINTER.GRP" "%addondir%\" |
ren "%addondir%\NWINTER.GRP" nwinter.grp |
) else ( |
goto nonwgrp |
) |
) |
) ) |
|
:nonwgrp_done |
if not exist nwflag%nwver%.h266 goto extract |
if not exist nwflag_%addonver%.h266 goto extract |
if not exist nwl1.map goto extract |
if not exist nwl2.map goto extract |
if not exist nwl3.map goto extract |
60,12 → 75,17 |
if not exist nwl6.map goto extract |
if not exist nwl7.map goto extract |
if not exist nwl8.map goto extract |
cd "%eduke32dir%" |
|
|
|
|
cd "%exedir%" |
echo. |
echo To switch your character, open the console (~) and type one of the following: |
echo Duke: "setvar skin 0". |
echo Santa: "setvar skin 1". |
echo. |
echo. |
|
:init |
pause |
74,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% -gnwinter.grp -hnwinter.def |
if "%editor%"=="1" set args=%args% -namesfile NWNames.h |
if not "%editor%"=="1" set args=%args% -xNWEDuke.con |
if "%dp%"=="1" ( |
set args=%args% -hnw_dp.def |
if not "%editor%"=="1" set args=%args% -xNWDP.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% -hnw_xxx.def |
if "%dp%"=="1" ( |
set args=%args% -hnw_dp_xxx.def |
if not "%editor%"=="1" set args=%args% -xNWDPXXX.con |
) ) |
set args=%args% %* |
if "%dp%"=="1" set args=%args% -jDukePlus |
|
set args=-xNWEDuke.con -hnwinter.def |
if exist "%nwdir%" set args=%args% -j"%nwdir:\=/%" |
if exist "%nwhrpdir%" set args=%args% -j"%nwhrpdir:\=/%" |
set args=%args% -gnwinter.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 ( |
100,8 → 135,6 |
start %exe%.exe %args% |
) |
|
::if exist *.abk ren *.abk *.art |
|
goto end |
|
:nonwgrp |
135,11 → 168,9 |
|
:extract |
echo. |
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» |
echo º Duke: Nuclear Winter Plus Installation º |
echo ÈÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍͼ |
echo ³ By Hendricks266 ³ |
echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ |
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» |
echo º Installation º |
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ |
echo. |
if not exist nwl1.ips goto noips |
if not exist nwl2.ips goto noips |
151,7 → 182,7 |
if not exist nwl8.ips goto noips |
md nw_preserve |
if exist nwl*.map move /y nwl*.map nw_preserve\ |
if exist "%eduke32dir%\nwl*.map" move /y "%eduke32dir%\nwl*.map" nw_preserve\ |
if exist "%exedir%\nwl*.map" move /y "%exedir%\nwl*.map" nw_preserve\ |
utils\windows\win32\kextract.exe NWINTER.GRP E2L*.MAP |
ren E2L1.MAP nwl1.map |
ren E2L2.MAP nwl2.map |
178,12 → 209,12 |
utils\windows\win32\uips.exe a nwl8.ips nwl8.map |
if exist nwpatch*.h266 del /f /q nwpatch*.h266 |
if exist nwflag*.h266 del /f /q nwflag*.h266 |
echo Do not delete this file! You will be forced to reinstall NW+ and repatch the maps. >nwflag%nwver%.h266 |
attrib +r nwflag%nwver%.h266 |
echo Do not delete this file^! You will be forced to reinstall NW+ and repatch the maps. >nwflag_%addonver%.h266 |
attrib +r nwflag_%addonver%.h266 |
echo. |
echo Patching complete! |
echo Patching complete^! |
:scanning |
cd "%eduke32dir%" |
cd "%exedir%" |
echo. |
echo Scanning directory for potential problems. |
if exist nwl1.mhk goto mhkfound |
234,7 → 265,7 |
echo. |
echo Problematic .mhk files have been found in your directory. |
echo Unless you have knowingly made a modification to NW'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 NW+ to function incorrectly. |
echo. |
echo nwl1.mhk |
253,7 → 284,7 |
echo. |
echo Problematic .art files have been found in your directory. |
echo Unless you have knowingly made a modification to NW'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 NW+ to function incorrectly. |
echo. |
echo TILES005.ART |
271,7 → 302,7 |
echo. |
echo Problematic .con files have been found in your directory. |
echo Unless you have knowingly made a modification to NW'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 NW+ to function incorrectly. |
echo. |
echo NWinter.con |
285,41 → 316,41 |
echo NWSnow.con |
echo. |
echo IF THESE ARE THE ORIGINAL NUCLEAR WINTER CON FILES, OR THEY COME FROM |
echo AN OUTDATED VERSION OF NW+, REMOVE THEM FROM YOUR EDUKE32 DIRECTORY |
echo IMMEDIATELY! |
echo AN OUTDATED VERSION OF NW+, REMOVE THEM FROM YOUR %exeproper% DIRECTORY |
echo IMMEDIATELY^! |
echo NW+ uses modified .con files to fix programming errors created by |
echo the original programmers. Due to improvements made to the levels, |
echo NW+ 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. |
331,6 → 362,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% |