5,12 → 5,14 |
title Duke: Nuclear Winter Plus Batch Launcher |
|
set dir=%cd% |
set eduke32dir=%~dp0 |
set nwdir=%~dp0 |
set nwhrpdir=%~dp0 |
set nwver=30 |
set hrp= |
set hrpu= |
|
:title |
echo. |
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» |
echo º Duke: Nuclear Winter Plus Batch Launcher º |
echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍͼ |
20,20 → 22,34 |
echo You are playing Simply Silly Software's Duke: Nuclear Winter with the various |
echo enhancements of Duke: Nuclear Winter Plus, maintained by Hendricks266. |
echo. |
|
:recheck |
if not exist eduke32.exe goto eduke32check |
:eduke32check_done |
if "%debug%"=="1" echo DEBUG: Directory: "%cd%" |
if exist NWDuke.rt_ del /f /q NWDuke.rt_ |
if exist NWSanta.grp del /f /q NWSanta.grp |
set eduke32dir=%cd% |
if "%debug%"=="1" echo DEBUG: EDuke32 Directory: "%eduke32dir%" |
|
if not exist nw_plus\ goto nodir |
if not exist duke3d.grp echo Warning: You don't have Duke3D.grp in your directory. |
if not exist nw_plus\NWINTER.GRP ( |
if exist NWINTER.GRP move /y NWINTER.GRP nw_plus\ |
|
if exist nwinter_hrp set nwhrpdir=%cd% |
:nwdircheck |
cd nw_plus |
set nwdir=%cd% |
if exist nwinter_hrp 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%". |
|
if not exist "%nwdir%\NWINTER.GRP" ( |
if exist "%eduke32dir%\NWINTER.GRP" ( |
move /y "%eduke32dir%\NWINTER.GRP" "%nwdir%\" |
ren "%nwdir%\NWINTER.GRP" nwinter.grp |
) else ( |
goto nonwgrp |
) |
cd nw_plus |
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
if not exist NWINTER.GRP goto nonwgrp |
) |
|
:nonwgrp_done |
if not exist nwflag%nwver%.h266 goto extract |
if not exist nwl1.map goto extract |
44,8 → 60,7 |
if not exist nwl6.map goto extract |
if not exist nwl7.map goto extract |
if not exist nwl8.map goto extract |
cd .. |
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
cd "%eduke32dir%" |
echo. |
echo To switch your character, open the console (~) and type one of the following: |
echo Duke: "setvar skin 0". |
59,20 → 74,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 /xNWEDuke.con /hnwinter.def /jnw_plus /gNWINTER.GRP %hrp% %hrpu% %* |
set args=-xNWEDuke.con -hnwinter.def -j"%nwdir%" -j"%nwhrpdir%" -gnwinter.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 |
124,7 → 147,7 |
if not exist nwl8.ips goto noips |
md nw_preserve |
if exist nwl*.map move /y nwl*.map nw_preserve\ |
if exist ..\nwl*.map move /y ..\nwl*.map nw_preserve\ |
if exist "%eduke32dir%\nwl*.map" move /y "%eduke32dir%\nwl*.map" nw_preserve\ |
utils\windows\win32\kextract.exe NWINTER.GRP E2L*.MAP |
ren E2L1.MAP nwl1.map |
ren E2L2.MAP nwl2.map |
151,13 → 174,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 force to reinstall NW+ and repatch the maps. >nwflag%nwver%.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. |
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 nwl1.mhk goto mhkfound |
304,8 → 326,6 |
goto end |
|
:end |
set hrp= |
set hrpu= |
echo. |
@color 07 |
@title %ComSpec% |