ifexist duke3d_hrp.zip set hrp=/gduke3d_hrp.zip ifexist 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 It will close automatically.
::if exist *.art ren *.art *.abk
:nonwgrp echo. echo Error: You don't have NWINTER.GRP in your directory.
:retry echo. set cddrive= set /p cddrive=What is the drive letter that your Nuclear Winter CD is in? echo. ifnot '%cddrive%'=='' set cddrive=%cddrive:~0,1% if '%cddrive%'=='' goto cdno ifnotexist%cddrive%:\ goto cdno ifnotexist%cddrive%:\* goto cdno ifnotexist%cddrive%:\GAMEDATA\NWINTER.GRP goto cdw copy%cddrive%:GAMEDATA\NWINTER.GRP .\ pause echo.
type NWINTRO.TXT echo. pause goto nonwgrp_done
:cdno echo '%cddrive%' is not valid. Please try again. goto retry
:cdw echo '%cddrive%' is not the correct disc. Please try again. goto retry
:extract echo. echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» echo º Duke: Nuclear Winter Plus Installation º echo ÈÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍͼ echo ³ By Hendricks266 ³ echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ echo. ifnotexist nwl1.ips goto noips ifnotexist nwl2.ips goto noips ifnotexist nwl3.ips goto noips ifnotexist nwl4.ips goto noips ifnotexist nwl5.ips goto noips ifnotexist nwl6.ips goto noips ifnotexist nwl7.ips goto noips ifnotexist nwl8.ips goto noips ifexist nwl*.map del /f /q nwl*.map ifexist ..\nwl*.map del /f /q ..\nwl*.map
utils\windows\win32\kextract.exe NWINTER.GRP E2L*.MAP ren E2L1.MAP nwl1.map ren E2L2.MAP nwl2.map ren E2L3.MAP nwl3.map ren E2L4.MAP nwl4.map ren E2L5.MAP nwl5.map ren E2L6.MAP nwl6.map ren E2L7.MAP nwl7.map ren E2L8.MAP nwl8.map ifexist nwpatch*.h266 del /f /q nwpatch*.h266 ifexist nwflag*.h266 del /f /q nwflag*.h266 echo. echo Map patching will now begin. echo. pause echo
utils\windows\win32\uips.exe a nwl1.ips nwl1.map
utils\windows\win32\uips.exe a nwl2.ips nwl2.map
utils\windows\win32\uips.exe a nwl3.ips nwl3.map
utils\windows\win32\uips.exe a nwl4.ips nwl4.map
utils\windows\win32\uips.exe a nwl5.ips nwl5.map
utils\windows\win32\uips.exe a nwl6.ips nwl6.map
utils\windows\win32\uips.exe a nwl7.ips nwl7.map
utils\windows\win32\uips.exe a nwl8.ips nwl8.map ifexist nwpatch*.h266 del /f /q nwpatch*.h266 ifexist nwflag*.h266 del /f /q nwflag*.h266 echoDonot delete this file! You will be force to reinstall NW+ and repatch the maps. >nwflag%nwver%.h266
attrib +r nwflag%nwver%.h266 del /f /q nwl1.ips del /f /q nwl2.ips del /f /q nwl3.ips del /f /q nwl4.ips del /f /q nwl5.ips del /f /q nwl6.ips del /f /q nwl7.ips del /f /q nwl8.ips echo. echo Patching complete!
:scanning cd .. echo. echo Scanning directory for potential problems. ifexist nwl1.mhk goto mhkfound ifexist nwl1demo.mhk goto mhkfound ifexist nwl2.mhk goto mhkfound ifexist nwl3.mhk goto mhkfound ifexist nwl4.mhk goto mhkfound ifexist nwl5.mhk goto mhkfound ifexist nwl6.mhk goto mhkfound ifexist nwl7.mhk goto mhkfound ifexist nwl8.mhk goto mhkfound ifexist _nwzoo.mhk goto mhkfound
:mhkfound_done ifexist TILES005.ART goto artfound ifexist TILES006.ART goto artfound ifexist TILES007.ART goto artfound ifexist TILES008.ART goto artfound ifexist TILES009.ART goto artfound ifexist TILES012.ART goto artfound ifexist TILES013.ART goto artfound ifexist TILES014.ART goto artfound ifexist TILES015.ART goto artfound
:artfound_done ifexist NWinter.congoto confound ifexist NWActor.congoto confound ifexist NWDefs.congoto confound ifexist NWDP.congoto confound ifexist NWDPCode.congoto confound ifexist NWDPXXX.congoto confound ifexist NWEDuke.congoto confound ifexist NWSnow.congoto confound ifexist NWUser.congoto confound
:confound_done echo. pause goto restart
:noips echo. echo Error: You don't have all the *.ips files in your directory. echo Aborting installation. echo Map patching is required for NW+ to function correctly. echo. pause goto end
:mhkfound 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 cause NW+ to function incorrectly. echo. echo nwl1.mhk echo nwl1demo.mhk echo nwl2.mhk echo nwl3.mhk echo nwl4.mhk echo nwl5.mhk echo nwl6.mhk echo nwl7.mhk echo nwl8.mhk echo _nwzoo.mhk goto mhkfound_done
:artfound 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 cause NW+ to function incorrectly. echo. echo TILES005.ART echo TILES006.ART echo TILES007.ART echo TILES008.ART echo TILES009.ART echo TILES012.ART echo TILES013.ART echo TILES014.ART echo TILES015.ART goto artfound_done
:confound 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 cause NW+ to function incorrectly. echo. echo NWinter.con echo NWEDuke.con echo NWDefs.con echo NWUser.con echo NWDP.con echo NWDPCode.con echo NWDPXXX.con echo NWActor.con echo NWSnow.con echo. echoIF 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 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 ifexist eduke32.bat goto eduke32check_done ifexist ..\eduke32.exe ( cd .. goto recheck ) ifexist ..\..\eduke32.exe ( cd ..\.. goto recheck ) ifexist ..\..\..\eduke32.exe ( cd ..\..\.. goto recheck ) ifexist ..\eduke32.bat ( cd .. goto eduke32check_done ) ifexist ..\..\eduke32.bat ( cd ..\.. goto eduke32check_done ) ifexist ..\..\..\eduke32.bat ( cd ..\..\.. goto eduke32check_done ) echo Warning: You don't have EDuke32 in your directory. goto eduke32check_done