Subversion Repositories nw_plus

Rev

Rev 29 | Rev 35 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 29 Rev 30
1
@echo off
1
@echo off
2
@color 0C
2
@color 0C
3
3
4
:restart
4
:restart
5
title Duke: Nuclear Winter Plus Launcher
5
title Duke: Nuclear Winter Plus Launcher
6
if "%editor%"=="1" title Duke: Nuclear Winter Plus Editor Launcher
6
if "%editor%"=="1" title Duke: Nuclear Winter Plus Editor Launcher
7
7
8
set dir=%cd%
8
pushd .
9
set exedir=%~dp0
9
set exedir=%~dp0
10
set addondir=%~dp0
10
set addondir=%~dp0
11
set addonhrpdir=%~dp0
11
set addonhrpdir=%~dp0
12
12
13
set exename=eduke32
13
set exename=eduke32
14
set exeproper=EDuke32
14
set exeproper=EDuke32
15
set action=playing
15
set action=playing
16
16
17
if "%editor%"=="1" (
17
if "%editor%"=="1" (
18
set exename=mapster32
18
set exename=mapster32
19
set exeproper=Mapster32
19
set exeproper=Mapster32
20
set action=editing
20
set action=editing
21
)
21
)
22
22
23
set addonver=r004
23
set addonver=r004
24
24
25
:title
25
:title
26
echo                          ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
26
echo                          ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
27
echo                          º Duke: Nuclear Winter Plus º
27
echo                          º Duke: Nuclear Winter Plus º
28
echo                          ÈÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍͼ
28
echo                          ÈÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍͼ
29
echo                               ³ By Hendricks266 ³
29
echo                               ³ By Hendricks266 ³
30
echo                               ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
30
echo                               ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
31
echo.
31
echo.
32
echo You are %action% Simply Silly Software's Duke: Nuclear Winter with the various
32
echo You are %action% Simply Silly Software's Duke: Nuclear Winter with the various
33
echo enhancements of Duke: Nuclear Winter Plus, maintained by Hendricks266.
33
echo enhancements of Duke: Nuclear Winter Plus, maintained by Hendricks266.
34
echo.
34
echo.
35
35
36
36
37
if "%xxx%"=="1" echo Using XXX mode.
37
if "%xxx%"=="1" echo Using XXX mode.
38
if "%dp%"=="1" echo Using Duke Plus by DeeperThought.
38
if "%dp%"=="1" echo Using Duke Plus by DeeperThought.
39
if "%debug%"=="1" echo Using debug mode.
39
if "%debug%"=="1" echo Using debug mode.
40
40
41
:recheck
41
:recheck
42
if not exist %exename%.exe goto execheck
42
if not exist %exename%.exe goto execheck
43
:execheck_done
43
:execheck_done
44
set exedir=%cd%
44
set exedir=%cd%
45
if "%debug%"=="1" echo DEBUG: %exeproper% Directory: "%exedir%"
45
if "%debug%"=="1" echo DEBUG: %exeproper% Directory: "%exedir%"
46
46
47
if not exist nw_plus\ goto nodir
47
if not exist nw_plus\ goto nodir
48
if not exist duke3d.grp echo Warning: You don't have Duke3D.grp in your directory.
48
if not exist duke3d.grp echo Warning: You don't have Duke3D.grp in your directory.
49
49
50
if exist nwinter\ set addonhrpdir=%cd%
50
if exist nwinter\ set addonhrpdir=%cd%
51
:addondircheck
51
:addondircheck
52
52
53
cd nw_plus
53
cd nw_plus
54
set addondir=%cd%
54
set addondir=%cd%
55
if exist nwinter\ set addonhrpdir=%cd%
55
if exist nwinter\ set addonhrpdir=%cd%
56
if exist nw_plus\ goto addondircheck
56
if exist nw_plus\ goto addondircheck
57
if "%debug%"=="1" echo DEBUG: NW+ Directory: "%addondir%".
57
if "%debug%"=="1" echo DEBUG: NW+ Directory: "%addondir%".
58
if "%debug%"=="1" echo DEBUG: NWHRP Directory: "%addonhrpdir%".
58
if "%debug%"=="1" echo DEBUG: NWHRP Directory: "%addonhrpdir%".
59
59
60
if not exist "%addondir%\NWINTER.GRP" (
60
if not exist "%addondir%\NWINTER.GRP" (
61
if exist "%exedir%\NWINTER.GRP" (
61
if exist "%exedir%\NWINTER.GRP" (
62
move /y "%exedir%\NWINTER.GRP" "%addondir%\"
62
move /y "%exedir%\NWINTER.GRP" "%addondir%\"
63
ren "%addondir%\NWINTER.GRP" nwinter.grp
63
ren "%addondir%\NWINTER.GRP" nwinter.grp
64
) else (
64
) else (
65
goto nonwgrp
65
goto nonwgrp
66
) )
66
) )
67
67
-
 
68
call :grpchecksum
68
:nonwgrp_return
69
:nonwgrp_return
-
 
70
if not "%version%"=="demo" (
69
if not exist nwl1.map goto mapextract
71
if not exist nwl1.map goto mapextract
70
if not exist nwl2.map goto mapextract
72
if not exist nwl2.map goto mapextract
71
if not exist nwl3.map goto mapextract
73
if not exist nwl3.map goto mapextract
72
if not exist nwl4.map goto mapextract
74
if not exist nwl4.map goto mapextract
73
if not exist nwl5.map goto mapextract
75
if not exist nwl5.map goto mapextract
74
if not exist nwl6.map goto mapextract
76
if not exist nwl6.map goto mapextract
75
if not exist nwl7.map goto mapextract
77
if not exist nwl7.map goto mapextract
76
if not exist nwl8.map goto mapextract
78
if not exist nwl8.map goto mapextract
77
if not exist nwflag_%addonver%.h266 goto updateextract
79
if not exist nwflag_%addonver%.h266 goto updateextract
-
 
80
)
78
81
79
82
80
83
81
84
82
cd "%exedir%"
85
cd "%exedir%"
83
echo.
86
echo.
84
echo To switch your character, open the console (~) and type one of the following:
87
echo To switch your character, open the console (~) and type one of the following:
85
echo Duke: "setvar skin 0".
88
echo Duke: "setvar skin 0".
86
echo Santa: "setvar skin 1".
89
echo Santa: "setvar skin 1".
87
echo.
90
echo.
88
echo.
91
echo.
-
 
92
echo.
-
 
93
echo.
-
 
94
echo.
-
 
95
echo.
89
96
90
:init
97
:init
91
pause
98
pause
92
echo.
99
echo.
93
goto check
100
goto check
94
101
95
:check
102
:check
96
103
97
echo.
104
echo.
98
echo Launching Duke Nukem 3D . . .
105
echo Launching Duke Nukem 3D . . .
99
echo Thanks for %action%^!
106
echo Thanks for %action%^!
-
 
107
echo.
100
108
101
if "%editor%"=="1" (
109
if "%editor%"=="1" (
102
type "%exedir%\names.h" > "%exedir%\NWNames.h"
110
type "%exedir%\names.h" > "%exedir%\NWNames.h"
103
echo. >> "%exedir%\NWNames.h"
111
echo. >> "%exedir%\NWNames.h"
104
type "%addondir%\NWNames.def" >> "%exedir%\NWNames.h"
112
type "%addondir%\NWNames.def" >> "%exedir%\NWNames.h"
105
)
113
)
106
114
107
:arguments
115
:arguments
108
set args=
116
set args=
109
if exist "%exedir%\polymer_hrp\" set args=%args% -jpolymer_hrp
117
if exist "%exedir%\polymer_hrp\" set args=%args% -jpolymer_hrp
110
if exist "%exedir%\duke3d_voxel.zip" set args=%args% -gduke3d_voxel.zip
118
if exist "%exedir%\duke3d_voxel.zip" set args=%args% -gduke3d_voxel.zip
111
if exist "%exedir%\duke3d_hrp.zip" set args=%args% -gduke3d_hrp.zip
119
if exist "%exedir%\duke3d_hrp.zip" set args=%args% -gduke3d_hrp.zip
112
if exist "%exedir%\hrp_update.zip" set args=%args% -ghrp_update.zip
120
if exist "%exedir%\hrp_update.zip" set args=%args% -ghrp_update.zip
113
if exist "%exedir%\maphacks.zip" set args=%args% -gmaphacks.zip
121
if exist "%exedir%\maphacks.zip" set args=%args% -gmaphacks.zip
114
if exist "%exedir%\eduke32_mus.zip" set args=%args% -geduke32_mus.zip
122
if exist "%exedir%\eduke32_mus.zip" set args=%args% -geduke32_mus.zip
115
if exist "%addondir%" if not "%addondir%"=="%exedir%" set args=%args% -j"%addondir:\=/%"
123
if exist "%addondir%" if not "%addondir%"=="%exedir%" set args=%args% -j"%addondir:\=/%"
116
if exist "%addonhrpdir%" if not "%addonhrpdir%"=="%exedir%" if not "%addonhrpdir%"=="%addondir%" set args=%args% -j"%addonhrpdir:\=/%"
124
if exist "%addonhrpdir%" if not "%addonhrpdir%"=="%exedir%" if not "%addonhrpdir%"=="%addondir%" set args=%args% -j"%addonhrpdir:\=/%"
117
set args=%args% -gnwinter.grp -hnwinter.def -xNWEDuke.con
125
set args=%args% -gnwinter.grp -hnwinter.def -xNWEDuke.con
118
if "%editor%"=="1" set args=%args% -namesfile NWNames.h
126
if "%editor%"=="1" set args=%args% -namesfile NWNames.h
119
if "%dp%"=="1" set args=%args% -hnw_dp.def -xNWDP.con
127
if "%dp%"=="1" set args=%args% -hnw_dp.def -xNWDP.con
120
if "%xxx%"=="1" if exist "%exedir%\xxx_lite.zip" set args=%args% -gxxx_lite.zip
128
if "%xxx%"=="1" if exist "%exedir%\xxx_lite.zip" set args=%args% -gxxx_lite.zip
121
if "%xxx%"=="1" if exist "%exedir%\xxx_lite\" set args=%args% -jxxx_lite
129
if "%xxx%"=="1" if exist "%exedir%\xxx_lite\" set args=%args% -jxxx_lite
122
if "%xxx%"=="1" if exist "%exedir%\xxx_pack.zip" set args=%args% -gxxx_pack.zip
130
if "%xxx%"=="1" if exist "%exedir%\xxx_pack.zip" set args=%args% -gxxx_pack.zip
123
if "%xxx%"=="1" if exist "%exedir%\xxx_pack\" set args=%args% -jxxx_pack
131
if "%xxx%"=="1" if exist "%exedir%\xxx_pack\" set args=%args% -jxxx_pack
124
if "%xxx%"=="1" set args=%args% -hnw_xxx.def
132
if "%xxx%"=="1" set args=%args% -hnw_xxx.def
125
if "%xxx%"=="1" if "%dp%"=="1" set args=%args% -hnw_dp_xxx.def -xNWDPXXX.con
133
if "%xxx%"=="1" if "%dp%"=="1" set args=%args% -hnw_dp_xxx.def -xNWDPXXX.con
126
set args=%args% %*
134
set args=%args% %*
127
if "%dp%"=="1" set args=%args% -jDukePlus
135
if "%dp%"=="1" set args=%args% -jDukePlus
128
136
129
set exe=%exename%
137
set exe=%exename%
130
if "%debug%"=="1" set exe=%exename%.debug
138
if "%debug%"=="1" set exe=%exename%.debug
131
139
132
if exist %exe%.bat (
140
if exist %exe%.bat (
133
call %exe%.bat %args%
141
call %exe%.bat %args%
134
) else (
142
) else (
135
start %exe%.exe %args%
143
start %exe%.exe %args%
136
)
144
)
137
145
138
goto end
146
goto end
139
147
140
:nonwgrp
148
:nonwgrp
141
echo.
149
echo.
142
echo Error: You don't have NWINTER.GRP in your directory.
150
echo Error: You don't have NWINTER.GRP in your directory.
143
151
144
152
145
:retry
153
:retry
146
echo.
154
echo.
147
set cddrive=
155
set cddrive=
148
set /p cddrive=What is the drive letter that your Nuclear Winter CD is in?
156
set /p cddrive=What is the drive letter that your Nuclear Winter CD is in?
149
echo.
157
echo.
150
if not '%cddrive%'=='' set cddrive=%cddrive:~0,1%
158
if not '%cddrive%'=='' set cddrive=%cddrive:~0,1%
151
if '%cddrive%'=='' goto cdno
159
if '%cddrive%'=='' goto cdno
152
if not exist %cddrive%:\ goto cdno
160
if not exist %cddrive%:\ goto cdno
153
if not exist %cddrive%:\* goto cdno
161
if not exist %cddrive%:\* goto cdno
154
if not exist %cddrive%:\GAMEDATA\NWINTER.GRP goto cdw
162
if not exist %cddrive%:\GAMEDATA\NWINTER.GRP goto cdw
155
copy %cddrive%:GAMEDATA\NWINTER.GRP .\nwinter.grp
163
copy %cddrive%:GAMEDATA\NWINTER.GRP .\nwinter.grp
156
echo.
164
echo.
157
type NWINTRO.TXT
165
type NWINTRO.TXT
158
echo.
166
echo.
159
pause
167
pause
-
 
168
call :grpchecksum
-
 
169
call :grpchecksum_results
-
 
170
goto nonwgrp_return
160
171
-
 
172
:grpchecksum
161
echo a6728f621f121f9db02ee67c39efdbb5eea95711 *nwinter.grp | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
173
echo a6728f621f121f9db02ee67c39efdbb5eea95711 *nwinter.grp | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
162
if "%ERRORLEVEL%"=="0" echo NWINTER.GRP checksum verified.
174
if "%ERRORLEVEL%"=="0" set version=full
163
if "%ERRORLEVEL%"=="1" echo NWINTER.GRP checksum does not match. You may have a bad copy.
175
if "%ERRORLEVEL%"=="1" echo 1b33b2cbb7101b5b18b15855392f55575413ecc3 *nwinter.grp | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
-
 
176
if "%ERRORLEVEL%"=="0" set version=demo
-
 
177
if "%ERRORLEVEL%"=="1" set version=unknown
164
goto nonwgrp_return
178
goto :eof
165
179
-
 
180
:grpchecksum_results
-
 
181
if "%version%"="full" echo NWINTER.GRP checksum verified.
-
 
182
if "%version%"="demo" echo NWINTER.GRP (demo version) checksum verified.
-
 
183
if "%version%"="unknown" echo NWINTER.GRP checksum does not match. You may have a bad copy.
-
 
184
echo.
-
 
185
goto :eof
166
186
167
:cdno
187
:cdno
168
echo '%cddrive%' is not valid.  Please try again.
188
echo '%cddrive%' is not valid.  Please try again.
169
goto retry
189
goto retry
170
190
171
:cdw
191
:cdw
172
echo '%cddrive%' is not the correct disc.  Please try again.
192
echo '%cddrive%' is not the correct disc.  Please try again.
173
goto retry
193
goto retry
174
194
175
:mapextract
195
:mapextract
176
echo Extracted maps not found. Proceeding to installation.
196
echo Extracted maps not found or patched. Proceeding to installation.
177
goto extract
197
goto extract
178
198
179
:updateextract
199
:updateextract
180
echo Map patch update required. Proceeding to installation.
200
echo Map patch update required. Proceeding to installation.
181
goto extract
201
goto extract
182
202
183
:extract
203
:extract
184
echo.
204
echo.
185
echo                                ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
205
echo                                ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
186
echo                                º Installation º
206
echo                                º Installation º
187
echo                                ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
207
echo                                ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
188
echo.
208
echo.
-
 
209
call :grpchecksum
-
 
210
call :grpchecksum_results
189
if not exist nwl1.patch goto nopatch
211
if not exist nwl1.patch goto nopatch
190
if not exist nwl2.patch goto nopatch
212
if not exist nwl2.patch goto nopatch
191
if not exist nwl3.patch goto nopatch
213
if not exist nwl3.patch goto nopatch
192
if not exist nwl4.patch goto nopatch
214
if not exist nwl4.patch goto nopatch
193
if not exist nwl5.patch goto nopatch
215
if not exist nwl5.patch goto nopatch
194
if not exist nwl6.patch goto nopatch
216
if not exist nwl6.patch goto nopatch
195
if not exist nwl7.patch goto nopatch
217
if not exist nwl7.patch goto nopatch
196
if not exist nwl8.patch goto nopatch
218
if not exist nwl8.patch goto nopatch
197
md nw_preserve
219
md nw_preserve
198
if exist nwl*.map move /y nwl*.map nw_preserve\
220
if exist nwl*.map move /y nwl*.map nw_preserve\
199
if exist "%exedir%\nwl*.map" move /y "%exedir%\nwl*.map" nw_preserve\
221
if exist "%exedir%\nwl*.map" move /y "%exedir%\nwl*.map" nw_preserve\
200
"%addondir%\utils\windows\win32\kextract.exe" NWINTER.GRP E2L*.MAP
222
"%addondir%\utils\windows\win32\kextract.exe" NWINTER.GRP E2L*.MAP
201
ren E2L1.MAP nwl1.map
223
ren E2L1.MAP nwl1.map
202
ren E2L2.MAP nwl2.map
224
ren E2L2.MAP nwl2.map
203
ren E2L3.MAP nwl3.map
225
ren E2L3.MAP nwl3.map
204
ren E2L4.MAP nwl4.map
226
ren E2L4.MAP nwl4.map
205
ren E2L5.MAP nwl5.map
227
ren E2L5.MAP nwl5.map
206
ren E2L6.MAP nwl6.map
228
ren E2L6.MAP nwl6.map
207
ren E2L7.MAP nwl7.map
229
ren E2L7.MAP nwl7.map
208
ren E2L8.MAP nwl8.map
230
ren E2L8.MAP nwl8.map
209
if exist nwpatch*.h266 del /f /q nwpatch*.h266
231
if exist nwpatch*.h266 del /f /q nwpatch*.h266
210
if exist nwflag*.h266 del /f /q nwflag*.h266
232
if exist nwflag*.h266 del /f /q nwflag*.h266
211
echo.
233
echo.
212
echo Map patching will now begin.
234
echo Map patching will now begin.
213
echo.
235
echo.
214
pause
236
pause
215
echo
237
echo
216
"%addondir%\utils\windows\win32\bspatch.exe" nwl1.map nwl1.map nwl1.patch
238
"%addondir%\utils\windows\win32\bspatch.exe" nwl1.map nwl1.map nwl1.patch
217
"%addondir%\utils\windows\win32\bspatch.exe" nwl2.map nwl2.map nwl2.patch
239
"%addondir%\utils\windows\win32\bspatch.exe" nwl2.map nwl2.map nwl2.patch
218
"%addondir%\utils\windows\win32\bspatch.exe" nwl3.map nwl3.map nwl3.patch
240
"%addondir%\utils\windows\win32\bspatch.exe" nwl3.map nwl3.map nwl3.patch
219
"%addondir%\utils\windows\win32\bspatch.exe" nwl4.map nwl4.map nwl4.patch
241
"%addondir%\utils\windows\win32\bspatch.exe" nwl4.map nwl4.map nwl4.patch
220
"%addondir%\utils\windows\win32\bspatch.exe" nwl5.map nwl5.map nwl5.patch
242
"%addondir%\utils\windows\win32\bspatch.exe" nwl5.map nwl5.map nwl5.patch
221
"%addondir%\utils\windows\win32\bspatch.exe" nwl6.map nwl6.map nwl6.patch
243
"%addondir%\utils\windows\win32\bspatch.exe" nwl6.map nwl6.map nwl6.patch
222
"%addondir%\utils\windows\win32\bspatch.exe" nwl7.map nwl7.map nwl7.patch
244
"%addondir%\utils\windows\win32\bspatch.exe" nwl7.map nwl7.map nwl7.patch
223
"%addondir%\utils\windows\win32\bspatch.exe" nwl8.map nwl8.map nwl8.patch
245
"%addondir%\utils\windows\win32\bspatch.exe" nwl8.map nwl8.map nwl8.patch
224
if exist nwpatch*.h266 del /f /q nwpatch*.h266
246
if exist nwpatch*.h266 del /f /q nwpatch*.h266
225
if exist nwflag*.h266 del /f /q nwflag*.h266
247
if exist nwflag*.h266 del /f /q nwflag*.h266
226
echo Do not delete this file^! You will be forced to reinstall NW+ and repatch the maps. >nwflag_%addonver%.h266
248
echo Do not delete this file^! You will be forced to reinstall NW+ and repatch the maps. >nwflag_%addonver%.h266
227
attrib +r nwflag_%addonver%.h266
249
attrib +r nwflag_%addonver%.h266
228
echo.
250
echo.
229
echo Patching complete^!
251
echo Patching complete^!
230
:scanning
252
:scanning
231
cd "%exedir%"
253
cd "%exedir%"
232
echo.
254
echo.
233
echo Scanning directory for potential problems.
255
echo Scanning directory for potential problems.
234
if exist nwl1.mhk goto mhkfound
256
if exist nwl1.mhk goto mhkfound
235
if exist nwl1demo.mhk goto mhkfound
257
if exist nwl1demo.mhk goto mhkfound
236
if exist nwl2.mhk goto mhkfound
258
if exist nwl2.mhk goto mhkfound
237
if exist nwl3.mhk goto mhkfound
259
if exist nwl3.mhk goto mhkfound
238
if exist nwl4.mhk goto mhkfound
260
if exist nwl4.mhk goto mhkfound
239
if exist nwl5.mhk goto mhkfound
261
if exist nwl5.mhk goto mhkfound
240
if exist nwl6.mhk goto mhkfound
262
if exist nwl6.mhk goto mhkfound
241
if exist nwl7.mhk goto mhkfound
263
if exist nwl7.mhk goto mhkfound
242
if exist nwl8.mhk goto mhkfound
264
if exist nwl8.mhk goto mhkfound
243
if exist _nwzoo.mhk goto mhkfound
265
if exist _nwzoo.mhk goto mhkfound
244
:mhkfound_done
266
:mhkfound_done
245
if exist TILES005.ART goto artfound
267
if exist TILES005.ART goto artfound
246
if exist TILES006.ART goto artfound
268
if exist TILES006.ART goto artfound
247
if exist TILES007.ART goto artfound
269
if exist TILES007.ART goto artfound
248
if exist TILES008.ART goto artfound
270
if exist TILES008.ART goto artfound
249
if exist TILES009.ART goto artfound
271
if exist TILES009.ART goto artfound
250
if exist TILES012.ART goto artfound
272
if exist TILES012.ART goto artfound
251
if exist TILES013.ART goto artfound
273
if exist TILES013.ART goto artfound
252
if exist TILES014.ART goto artfound
274
if exist TILES014.ART goto artfound
253
if exist TILES015.ART goto artfound
275
if exist TILES015.ART goto artfound
254
:artfound_done
276
:artfound_done
255
call :checksum c6b8ca33ea6a2ec46b8dfeca4f9a3d5e078d0789 NWACTOR.CON "NWINTER file detected and neutralized:"
277
call :checksum c6b8ca33ea6a2ec46b8dfeca4f9a3d5e078d0789 NWACTOR.CON "NWINTER file detected and neutralized:"
256
call :checksum fdb91aa2912f16232ed9020a7d8ec35834ef58c8 NWDEFS.CON "NWINTER file detected and neutralized:"
278
call :checksum fdb91aa2912f16232ed9020a7d8ec35834ef58c8 NWDEFS.CON "NWINTER file detected and neutralized:"
257
call :checksum 2bb2ddc7319e0935569b724f3c67cb953fdb79d6 NWINTER.CON "NWINTER file detected and neutralized:"
279
call :checksum 2bb2ddc7319e0935569b724f3c67cb953fdb79d6 NWINTER.CON "NWINTER file detected and neutralized:"
258
call :checksum 5ae347733be1f87f35d1930186de1ed764f4682f NWSNOW.CON "NWINTER file detected and neutralized:"
280
call :checksum 5ae347733be1f87f35d1930186de1ed764f4682f NWSNOW.CON "NWINTER file detected and neutralized:"
259
call :checksum 5df8b3b4216dcfdb8bc0adf6241f8a893eacfd98 NWUSER.CON "NWINTER file detected and neutralized:"
281
call :checksum 5df8b3b4216dcfdb8bc0adf6241f8a893eacfd98 NWUSER.CON "NWINTER file detected and neutralized:"
260
if exist NWinter.con goto confound
282
if exist NWinter.con goto confound
261
if exist NWActor.con goto confound
283
if exist NWActor.con goto confound
262
if exist NWDefs.con goto confound
284
if exist NWDefs.con goto confound
263
if exist NWDP.con goto confound
285
if exist NWDP.con goto confound
264
if exist NWDPCode.con goto confound
286
if exist NWDPCode.con goto confound
265
if exist NWDPXXX.con goto confound
287
if exist NWDPXXX.con goto confound
266
if exist NWEDuke.con goto confound
288
if exist NWEDuke.con goto confound
267
if exist NWSnow.con goto confound
289
if exist NWSnow.con goto confound
268
if exist NWUser.con goto confound
290
if exist NWUser.con goto confound
269
:confound_done
291
:confound_done
270
cd /d "%exedir%"
292
cd /d "%exedir%"
271
if not exist GAME.CON "%addondir%\utils\windows\win32\kextract.exe" DUKE3D.GRP GAME.CON
293
if not exist GAME.CON "%addondir%\utils\windows\win32\kextract.exe" DUKE3D.GRP GAME.CON
272
if not exist DEFS.CON "%addondir%\utils\windows\win32\kextract.exe" DUKE3D.GRP DEFS.CON
294
if not exist DEFS.CON "%addondir%\utils\windows\win32\kextract.exe" DUKE3D.GRP DEFS.CON
273
if not exist USER.CON "%addondir%\utils\windows\win32\kextract.exe" DUKE3D.GRP USER.CON
295
if not exist USER.CON "%addondir%\utils\windows\win32\kextract.exe" DUKE3D.GRP USER.CON
274
cd /d "%addondir%"
296
cd /d "%addondir%"
275
echo.
297
echo.
276
pause
298
pause
277
goto restart
299
goto restart
278
300
279
:checksum
301
:checksum
280
if not exist "%~2" goto :eof
302
if not exist "%~2" goto :eof
281
echo %~1 *%~2 | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
303
echo %~1 *%~2 | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
282
if "%ERRORLEVEL%"=="0" (
304
if "%ERRORLEVEL%"=="0" (
283
ren "%~2" "NWOld_%~nx2"
305
ren "%~2" "NWOld_%addonver%_%~nx2"
284
echo %~3 %~nx2
306
echo %~3 %~nx2
285
)
307
)
286
goto :eof
308
goto :eof
287
309
288
:nopatch
310
:nopatch
289
echo.
311
echo.
290
echo Error: You don't have all the *.patch files in your directory.
312
echo Error: You don't have all the *.patch files in your directory.
291
echo Aborting installation.
313
echo Aborting installation.
292
echo Map patching is required for NW+ to function correctly.
314
echo Map patching is required for NW+ to function correctly.
293
echo.
315
echo.
294
pause
316
pause
295
goto end
317
goto end
296
318
297
:mhkfound
319
:mhkfound
298
echo.
320
echo.
299
echo Problematic .mhk files have been found in your directory.
321
echo Problematic .mhk files have been found in your directory.
300
echo Unless you have knowingly made a modification to NW's map hacks,
322
echo Unless you have knowingly made a modification to NW's map hacks,
301
echo the presence of these files in your %exeproper% directory will
323
echo the presence of these files in your %exeproper% directory will
302
echo cause NW+ to function incorrectly.
324
echo cause NW+ to function incorrectly.
303
echo.
325
echo.
304
echo nwl1.mhk
326
echo nwl1.mhk
305
echo nwl1demo.mhk
327
echo nwl1demo.mhk
306
echo nwl2.mhk
328
echo nwl2.mhk
307
echo nwl3.mhk
329
echo nwl3.mhk
308
echo nwl4.mhk
330
echo nwl4.mhk
309
echo nwl5.mhk
331
echo nwl5.mhk
310
echo nwl6.mhk
332
echo nwl6.mhk
311
echo nwl7.mhk
333
echo nwl7.mhk
312
echo nwl8.mhk
334
echo nwl8.mhk
313
echo _nwzoo.mhk
335
echo _nwzoo.mhk
314
goto mhkfound_done
336
goto mhkfound_done
315
337
316
:artfound
338
:artfound
317
echo.
339
echo.
318
echo Problematic .art files have been found in your directory.
340
echo Problematic .art files have been found in your directory.
319
echo Unless you have knowingly made a modification to NW's art,
341
echo Unless you have knowingly made a modification to NW's art,
320
echo the presence of these files in your %exeproper% directory will
342
echo the presence of these files in your %exeproper% directory will
321
echo cause NW+ to function incorrectly.
343
echo cause NW+ to function incorrectly.
322
echo.
344
echo.
323
echo TILES005.ART
345
echo TILES005.ART
324
echo TILES006.ART
346
echo TILES006.ART
325
echo TILES007.ART
347
echo TILES007.ART
326
echo TILES008.ART
348
echo TILES008.ART
327
echo TILES009.ART
349
echo TILES009.ART
328
echo TILES012.ART
350
echo TILES012.ART
329
echo TILES013.ART
351
echo TILES013.ART
330
echo TILES014.ART
352
echo TILES014.ART
331
echo TILES015.ART
353
echo TILES015.ART
332
goto artfound_done
354
goto artfound_done
333
355
334
:confound
356
:confound
335
echo.
357
echo.
336
echo Problematic .con files have been found in your directory.
358
echo Problematic .con files have been found in your directory.
337
echo Unless you have knowingly made a modification to NW's programming,
359
echo Unless you have knowingly made a modification to NW's programming,
338
echo the presence of these files in your %exeproper% directory will
360
echo the presence of these files in your %exeproper% directory will
339
echo cause NW+ to function incorrectly.
361
echo cause NW+ to function incorrectly.
340
echo.
362
echo.
341
echo NWinter.con
363
echo NWinter.con
342
echo NWEDuke.con
364
echo NWEDuke.con
343
echo NWDefs.con
365
echo NWDefs.con
344
echo NWUser.con
366
echo NWUser.con
345
echo NWDP.con
367
echo NWDP.con
346
echo NWDPCode.con
368
echo NWDPCode.con
347
echo NWDPXXX.con
369
echo NWDPXXX.con
348
echo NWActor.con
370
echo NWActor.con
349
echo NWSnow.con
371
echo NWSnow.con
350
echo.
372
echo.
351
echo IF THESE ARE THE ORIGINAL NUCLEAR WINTER CON FILES, OR THEY COME FROM
373
echo IF THESE ARE THE ORIGINAL NUCLEAR WINTER CON FILES, OR THEY COME FROM
352
echo AN OUTDATED VERSION OF NW+, REMOVE THEM FROM YOUR %exeproper% DIRECTORY
374
echo AN OUTDATED VERSION OF NW+, REMOVE THEM FROM YOUR %exeproper% DIRECTORY
353
echo IMMEDIATELY^!
375
echo IMMEDIATELY^!
354
echo NW+ uses modified .con files to fix programming errors created by
376
echo NW+ uses modified .con files to fix programming errors created by
355
echo the original programmers. Due to improvements made to the levels,
377
echo the original programmers. Due to improvements made to the levels,
356
echo NW+ will have major errors if the included .con files are not used.
378
echo NW+ will have major errors if the included .con files are not used.
357
goto confound_done
379
goto confound_done
358
380
359
:execheck
381
:execheck
360
if exist %exename%.bat goto execheck_done
382
if exist %exename%.bat goto execheck_done
361
if exist ..\%exename%.exe (
383
if exist ..\%exename%.exe (
362
cd ..
384
cd ..
363
goto recheck
385
goto recheck
364
)
386
)
365
if exist ..\..\%exename%.exe (
387
if exist ..\..\%exename%.exe (
366
cd ..\..
388
cd ..\..
367
goto recheck
389
goto recheck
368
)
390
)
369
if exist ..\..\..\%exename%.exe (
391
if exist ..\..\..\%exename%.exe (
370
cd ..\..\..
392
cd ..\..\..
371
goto recheck
393
goto recheck
372
)
394
)
373
if exist ..\%exename%.bat (
395
if exist ..\%exename%.bat (
374
cd ..
396
cd ..
375
goto execheck_done
397
goto execheck_done
376
)
398
)
377
if exist ..\..\%exename%.bat (
399
if exist ..\..\%exename%.bat (
378
cd ..\..
400
cd ..\..
379
goto execheck_done
401
goto execheck_done
380
)
402
)
381
if exist ..\..\..\%exename%.bat (
403
if exist ..\..\..\%exename%.bat (
382
cd ..\..\..
404
cd ..\..\..
383
goto execheck_done
405
goto execheck_done
384
)
406
)
385
echo Warning: You don't have %exeproper% in your directory.
407
echo Warning: You don't have %exeproper% in your directory.
386
goto execheck_done
408
goto execheck_done
387
409
388
:nodir
410
:nodir
389
echo.
411
echo.
390
echo Error: "nw_plus" data directory not found.
412
echo Error: "nw_plus" data directory not found.
391
echo Aborting launch.
413
echo Aborting launch.
392
echo.
414
echo.
393
pause
415
pause
394
goto end
416
goto end
395
417
396
:end
418
:end
397
echo.
419
echo.
-
 
420
set version=
398
set editor=0
421
set editor=
399
set xxx=0
422
set xxx=
400
set dp=0
423
set dp=
401
set debug=0
424
set debug=
402
cd %dir%
425
popd
403
@title %ComSpec%
426
@title %ComSpec%
404
@color 07
427
@color 07
405
 
428