Rev 24 |
Rev 28 |
Go to most recent revision |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
@color 0C
:restart
title Duke: Nuclear Winter Plus Launcher
if "
%editor%"=="1"
title Duke: Nuclear Winter Plus Editor Launcher
)
echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
echo º Duke: Nuclear Winter Plus º
echo ÈÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍͼ
echo You are
%action% Simply Silly Software's Duke: Nuclear Winter with the various
echo enhancements of Duke: Nuclear Winter Plus, maintained by Hendricks266.
if "
%xxx%"=="1"
echo Using XXX mode.
if "
%dp%"=="1"
echo Using Duke Plus by DeeperThought.
if "
%debug%"=="1"
echo Using debug mode.
:recheck
:execheck_done
if "
%debug%"=="1"
echo DEBUG:
%exeproper% Directory: "
%exedir%"
if not exist duke3d.grp
echo Warning: You don't have Duke3D.grp
in your directory.
:addondircheck
if "
%debug%"=="1"
echo DEBUG: NW+ Directory: "
%addondir%".
if "
%debug%"=="1"
echo DEBUG: NWHRP Directory: "
%addonhrpdir%".
move /y "
%exedir%\NWINTER.GRP" "
%addondir%\"
ren "
%addondir%\NWINTER.GRP" nwinter.grp
) )
:nonwgrp_done
echo To switch your character, open the console
(~
) and type one of the following:
echo Duke: "setvar skin 0".
echo Santa: "setvar skin 1".
:init
:check
echo Launching Duke Nukem 3D . . .
type "%exedir%\names.h" > "%exedir%\NWNames.h"
echo.
>> "
%exedir%\NWNames.h"
type "%addondir%\NWNames.def" >> "%exedir%\NWNames.h"
)
:arguments
if exist "
%exedir%\polymer_hrp\"
set args=
%args% -jpolymer_hrp
if exist "
%exedir%\duke3d_voxel.zip"
set args=
%args% -gduke3d_voxel.zip
if exist "
%exedir%\duke3d_hrp.zip"
set args=
%args% -gduke3d_hrp.zip
if exist "
%exedir%\hrp_update.zip"
set args=
%args% -ghrp_update.zip
if exist "
%exedir%\maphacks.zip"
set args=
%args% -gmaphacks.zip
if exist "
%exedir%\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 -xNWEDuke.
con
if "
%editor%"=="1"
set args=
%args% -namesfile NWNames.h
if "
%dp%"=="1"
set args=
%args% -hnw_dp.def -xNWDP.
con
if "
%xxx%"=="1"
if exist "
%exedir%\xxx_lite.zip"
set args=
%args% -gxxx_lite.zip
if "
%xxx%"=="1"
if exist "
%exedir%\xxx_lite\"
set args=
%args% -jxxx_lite
if "
%xxx%"=="1"
if exist "
%exedir%\xxx_pack.zip"
set args=
%args% -gxxx_pack.zip
if "
%xxx%"=="1"
if exist "
%exedir%\xxx_pack\"
set args=
%args% -jxxx_pack
if "
%xxx%"=="1"
set args=
%args% -hnw_xxx.def
if "
%xxx%"=="1"
if "
%dp%"=="1"
set args=
%args% -hnw_dp_xxx.def -xNWDPXXX.
con
if "
%dp%"=="1"
set args=
%args% -jDukePlus
if "
%debug%"=="1"
set exe=
%exename%.debug
start %exe%.exe %args%
)
:nonwgrp
echo Error: You don't have NWINTER.GRP
in your directory.
:retry
set /p cddrive=What is the drive letter that your Nuclear Winter
CD is
in?
if not '
%cddrive%'==''
set cddrive=
%cddrive:~0,1%
copy %cddrive%:GAMEDATA\NWINTER.GRP .\
type NWINTRO.TXT
:cdno
echo '
%cddrive%' is
not valid. Please try again.
:cdw
echo '
%cddrive%' is
not the correct disc. Please try again.
:mapextract
echo Extracted maps
not found. Proceeding to installation.
:updateextract
echo Map patch update required. Proceeding to installation.
:extract
if exist "
%exedir%\nwl*.map"
move /y "
%exedir%\nwl*.map" nw_preserve\
utils\windows\win32\kextract.exe NWINTER.GRP E2L*.MAP
echo Map patching will now begin.
utils\windows\win32\bspatch.exe nwl1.map nwl1.map nwl1.patch
utils\windows\win32\bspatch.exe nwl2.map nwl2.map nwl2.patch
utils\windows\win32\bspatch.exe nwl3.map nwl3.map nwl3.patch
utils\windows\win32\bspatch.exe nwl4.map nwl4.map nwl4.patch
utils\windows\win32\bspatch.exe nwl5.map nwl5.map nwl5.patch
utils\windows\win32\bspatch.exe nwl6.map nwl6.map nwl6.patch
utils\windows\win32\bspatch.exe nwl7.map nwl7.map nwl7.patch
utils\windows\win32\bspatch.exe nwl8.map nwl8.map nwl8.patch
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
:scanning
echo Scanning directory
for potential problems.
:mhkfound_done
:artfound_done
:confound_done
:nopatch
echo Error: You don't have all the *.patch files
in your directory.
echo Aborting installation.
echo Map patching is required
for NW+ to function correctly.
:mhkfound
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
%exeproper% directory will
echo cause NW+ to function incorrectly.
:artfound
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
%exeproper% directory will
echo cause NW+ to function incorrectly.
:confound
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
%exeproper% directory will
echo cause NW+ to function incorrectly.
echo IF THESE ARE THE ORIGINAL NUCLEAR WINTER
CON FILES, OR THEY COME FROM
echo AN OUTDATED VERSION OF NW+, REMOVE THEM FROM YOUR
%exeproper% DIRECTORY
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.
:execheck
)
)
)
)
)
)
echo Warning: You don't have
%exeproper% in your directory.
:nodir
echo Error: "nw_plus" data directory
not found.
:end
@color 07