Subversion Repositories nw_plus

Rev

Rev 8 | Rev 16 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8 Rev 13
Line 3... Line 3...
3
3
4
:restart
4
:restart
5
title Duke: Nuclear Winter Plus Batch Launcher
5
title Duke: Nuclear Winter Plus Batch Launcher
6
6
7
set dir=%cd%
7
set dir=%cd%
-
 
8
set eduke32dir=%~dp0
-
 
9
set nwdir=%~dp0
-
 
10
set nwhrpdir=%~dp0
8
set nwver=30
11
set nwver=30
9
set hrp=
12
set hrp=
10
set hrpu=
13
set hrpu=
11
14
12
:title
15
:title
13
echo.
-
 
14
echo                   ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
16
echo                   ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
15
echo                   º Duke: Nuclear Winter Plus Batch Launcher º
17
echo                   º Duke: Nuclear Winter Plus Batch Launcher º
16
echo                   ÈÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍͼ
18
echo                   ÈÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍͼ
17
echo                                ³ By Hendricks266 ³
19
echo                                ³ By Hendricks266 ³
18
echo                                ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
20
echo                                ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
19
echo.
21
echo.
20
echo You are playing Simply Silly Software's Duke: Nuclear Winter with the various
22
echo You are playing Simply Silly Software's Duke: Nuclear Winter with the various
21
echo enhancements of Duke: Nuclear Winter Plus, maintained by Hendricks266.
23
echo enhancements of Duke: Nuclear Winter Plus, maintained by Hendricks266.
22
echo.
24
echo.
-
 
25
23
:recheck
26
:recheck
24
if not exist eduke32.exe goto eduke32check
27
if not exist eduke32.exe goto eduke32check
25
:eduke32check_done
28
:eduke32check_done
-
 
29
set eduke32dir=%cd%
26
if "%debug%"=="1" echo DEBUG: Directory: "%cd%"
30
if "%debug%"=="1" echo DEBUG: EDuke32 Directory: "%eduke32dir%"
27
if exist NWDuke.rt_ del /f /q NWDuke.rt_
-
 
28
if exist NWSanta.grp del /f /q NWSanta.grp
-
 
-
 
31
29
if not exist nw_plus\ goto nodir
32
if not exist nw_plus\ goto nodir
30
if not exist duke3d.grp echo Warning: You don't have Duke3D.grp in your directory.
33
if not exist duke3d.grp echo Warning: You don't have Duke3D.grp in your directory.
31
if not exist nw_plus\NWINTER.GRP (
-
 
32
if exist NWINTER.GRP move /y NWINTER.GRP nw_plus\
-
 
33
)
34
-
 
35
if exist nwinter_hrp set nwhrpdir=%cd%
-
 
36
:nwdircheck
34
cd nw_plus
37
cd nw_plus
-
 
38
set nwdir=%cd%
-
 
39
if exist nwinter_hrp set nwhrpdir=%cd%
-
 
40
if exist nw_plus goto nwdircheck
35
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
41
if "%debug%"=="1" echo DEBUG: NW+ Directory: "%nwdir%".
-
 
42
if "%debug%"=="1" echo DEBUG: NWHRP Directory: "%nwhrpdir%".
-
 
43
36
if not exist NWINTER.GRP goto nonwgrp
44
if not exist "%nwdir%\NWINTER.GRP" (
-
 
45
if exist "%eduke32dir%\NWINTER.GRP" (
-
 
46
move /y "%eduke32dir%\NWINTER.GRP" "%nwdir%\"
-
 
47
ren "%nwdir%\NWINTER.GRP" nwinter.grp
-
 
48
) else (
-
 
49
goto nonwgrp
-
 
50
)
-
 
51
)
-
 
52
37
:nonwgrp_done
53
:nonwgrp_done
38
if not exist nwflag%nwver%.h266 goto extract
54
if not exist nwflag%nwver%.h266 goto extract
39
if not exist nwl1.map goto extract
55
if not exist nwl1.map goto extract
40
if not exist nwl2.map goto extract
56
if not exist nwl2.map goto extract
41
if not exist nwl3.map goto extract
57
if not exist nwl3.map goto extract
42
if not exist nwl4.map goto extract
58
if not exist nwl4.map goto extract
43
if not exist nwl5.map goto extract
59
if not exist nwl5.map goto extract
44
if not exist nwl6.map goto extract
60
if not exist nwl6.map goto extract
45
if not exist nwl7.map goto extract
61
if not exist nwl7.map goto extract
46
if not exist nwl8.map goto extract
62
if not exist nwl8.map goto extract
47
cd ..
63
cd "%eduke32dir%"
48
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
-
 
49
echo.
64
echo.
50
echo To switch your character, open the console (~) and type one of the following:
65
echo To switch your character, open the console (~) and type one of the following:
51
echo Duke: "setvar skin 0".
66
echo Duke: "setvar skin 0".
52
echo Santa: "setvar skin 1".
67
echo Santa: "setvar skin 1".
53
echo.
68
echo.
Line 57... Line 72...
57
echo.
72
echo.
58
goto check
73
goto check
59
74
60
:check
75
:check
61
76
62
if exist duke3d_hrp.zip set hrp=/gduke3d_hrp.zip
77
if exist duke3d_hrp.zip set hrp=-gduke3d_hrp.zip
63
if exist hrp_update.zip set hrpu=/ghrp_update.zip
78
if exist hrp_update.zip set hrpu=-ghrp_update.zip
64
79
65
echo.
80
echo.
66
echo Launching Duke Nukem 3D . . .
81
echo Launching Duke Nukem 3D . . .
67
echo Thanks for playing!
82
echo Thanks for playing!
68
echo.
83
echo.
69
echo Please leave this window open for the entire duration of your game.
84
echo Please do not close this window.
70
echo It will close automatically.
85
echo It will close automatically.
71

86

72
::if exist *.art ren *.art *.abk
87
::if exist *.art ren *.art *.abk
73
88
74
eduke32 /xNWEDuke.con /hnwinter.def /jnw_plus /gNWINTER.GRP %hrp% %hrpu% %*
89
set args=-xNWEDuke.con -hnwinter.def -j"%nwdir%" -j"%nwhrpdir%" -gnwinter.grp %hrp% %hrpu% %*
-
 
90
set exe=eduke32
-
 
91
if "%debug%"=="1" set exe=eduke32.debug
-
 
92
-
 
93
if exist %exe%.bat (
-
 
94
call %exe%.bat %args%
-
 
95
) else (
-
 
96
start %exe%.exe %args%
-
 
97
)
75

98

76
::if exist *.abk ren *.abk *.art
99
::if exist *.abk ren *.abk *.art
77
100
78
goto end
101
goto end
79
102
Line 122... Line 145...
122
if not exist nwl6.ips goto noips
145
if not exist nwl6.ips goto noips
123
if not exist nwl7.ips goto noips
146
if not exist nwl7.ips goto noips
124
if not exist nwl8.ips goto noips
147
if not exist nwl8.ips goto noips
125
md nw_preserve
148
md nw_preserve
126
if exist nwl*.map move /y nwl*.map nw_preserve\
149
if exist nwl*.map move /y nwl*.map nw_preserve\
127
if exist ..\nwl*.map move /y ..\nwl*.map nw_preserve\
150
if exist "%eduke32dir%\nwl*.map" move /y "%eduke32dir%\nwl*.map" nw_preserve\
128
utils\windows\win32\kextract.exe NWINTER.GRP E2L*.MAP
151
utils\windows\win32\kextract.exe NWINTER.GRP E2L*.MAP
129
ren E2L1.MAP nwl1.map
152
ren E2L1.MAP nwl1.map
130
ren E2L2.MAP nwl2.map
153
ren E2L2.MAP nwl2.map
131
ren E2L3.MAP nwl3.map
154
ren E2L3.MAP nwl3.map
132
ren E2L4.MAP nwl4.map
155
ren E2L4.MAP nwl4.map
Line 149... Line 172...
149
utils\windows\win32\uips.exe a nwl6.ips nwl6.map
172
utils\windows\win32\uips.exe a nwl6.ips nwl6.map
150
utils\windows\win32\uips.exe a nwl7.ips nwl7.map
173
utils\windows\win32\uips.exe a nwl7.ips nwl7.map
151
utils\windows\win32\uips.exe a nwl8.ips nwl8.map
174
utils\windows\win32\uips.exe a nwl8.ips nwl8.map
152
if exist nwpatch*.h266 del /f /q nwpatch*.h266
175
if exist nwpatch*.h266 del /f /q nwpatch*.h266
153
if exist nwflag*.h266 del /f /q nwflag*.h266
176
if exist nwflag*.h266 del /f /q nwflag*.h266
154
echo Do not delete this file! You will be force to reinstall NW+ and repatch the maps. >nwflag%nwver%.h266
177
echo Do not delete this file! You will be forced to reinstall NW+ and repatch the maps. >nwflag%nwver%.h266
155
attrib +r nwflag%nwver%.h266
178
attrib +r nwflag%nwver%.h266
156
echo.
179
echo.
157
echo Patching complete!
180
echo Patching complete!
158
:scanning
181
:scanning
159
cd ..
182
cd "%eduke32dir%"
160
if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%".
-
 
161
echo.
183
echo.
162
echo Scanning directory for potential problems.
184
echo Scanning directory for potential problems.
163
if exist nwl1.mhk goto mhkfound
185
if exist nwl1.mhk goto mhkfound
164
if exist nwl1demo.mhk goto mhkfound
186
if exist nwl1demo.mhk goto mhkfound
165
if exist nwl2.mhk goto mhkfound
187
if exist nwl2.mhk goto mhkfound
Line 302... Line 324...
302
echo.
324
echo.
303
pause
325
pause
304
goto end
326
goto end
305
327
306
:end
328
:end
307
set hrp=
-
 
308
set hrpu=
-
 
309
echo.
329
echo.
310
@color 07
330
@color 07
311
@title %ComSpec%
331
@title %ComSpec%
312
cd %dir%
332
cd %dir%
313
@echo on
333
@echo on