Subversion Repositories nw_plus

Rev

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

Rev 25 Rev 27
Line 18... Line 18...
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=r003
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                          ÈÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍͼ
Line 63... Line 63...
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
:nonwgrp_done
68
:nonwgrp_return
69
if not exist nwl1.map goto mapextract
69
if not exist nwl1.map goto mapextract
70
if not exist nwl2.map goto mapextract
70
if not exist nwl2.map goto mapextract
71
if not exist nwl3.map goto mapextract
71
if not exist nwl3.map goto mapextract
72
if not exist nwl4.map goto mapextract
72
if not exist nwl4.map goto mapextract
73
if not exist nwl5.map goto mapextract
73
if not exist nwl5.map goto mapextract
Line 150... Line 150...
150
if not '%cddrive%'=='' set cddrive=%cddrive:~0,1%
150
if not '%cddrive%'=='' set cddrive=%cddrive:~0,1%
151
if '%cddrive%'=='' goto cdno
151
if '%cddrive%'=='' goto cdno
152
if not exist %cddrive%:\ goto cdno
152
if not exist %cddrive%:\ goto cdno
153
if not exist %cddrive%:\* goto cdno
153
if not exist %cddrive%:\* goto cdno
154
if not exist %cddrive%:\GAMEDATA\NWINTER.GRP goto cdw
154
if not exist %cddrive%:\GAMEDATA\NWINTER.GRP goto cdw
155
copy %cddrive%:GAMEDATA\NWINTER.GRP .\
155
copy %cddrive%:GAMEDATA\NWINTER.GRP .\nwinter.grp
156
echo.
156
echo.
157
type NWINTRO.TXT
157
type NWINTRO.TXT
158
echo.
158
echo.
159
pause
159
pause
-
 
160
-
 
161
echo a6728f621f121f9db02ee67c39efdbb5eea95711 *nwinter.grp | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
-
 
162
if "%ERRORLEVEL%"=="0" echo NWINTER.GRP checksum verified.
-
 
163
if "%ERRORLEVEL%"=="1" echo NWINTER.GRP checksum does not match. You may have a bad copy.
160
goto nonwgrp_done
164
goto nonwgrp_return
-
 
165
161
166
162
:cdno
167
:cdno
163
echo '%cddrive%' is not valid.  Please try again.
168
echo '%cddrive%' is not valid.  Please try again.
164
goto retry
169
goto retry
165
170
Line 190... Line 195...
190
if not exist nwl7.patch goto nopatch
195
if not exist nwl7.patch goto nopatch
191
if not exist nwl8.patch goto nopatch
196
if not exist nwl8.patch goto nopatch
192
md nw_preserve
197
md nw_preserve
193
if exist nwl*.map move /y nwl*.map nw_preserve\
198
if exist nwl*.map move /y nwl*.map nw_preserve\
194
if exist "%exedir%\nwl*.map" move /y "%exedir%\nwl*.map" nw_preserve\
199
if exist "%exedir%\nwl*.map" move /y "%exedir%\nwl*.map" nw_preserve\
195
utils\windows\win32\kextract.exe NWINTER.GRP E2L*.MAP
200
"%addondir%\utils\windows\win32\kextract.exe" NWINTER.GRP E2L*.MAP
196
ren E2L1.MAP nwl1.map
201
ren E2L1.MAP nwl1.map
197
ren E2L2.MAP nwl2.map
202
ren E2L2.MAP nwl2.map
198
ren E2L3.MAP nwl3.map
203
ren E2L3.MAP nwl3.map
199
ren E2L4.MAP nwl4.map
204
ren E2L4.MAP nwl4.map
200
ren E2L5.MAP nwl5.map
205
ren E2L5.MAP nwl5.map
Line 206... Line 211...
206
echo.
211
echo.
207
echo Map patching will now begin.
212
echo Map patching will now begin.
208
echo.
213
echo.
209
pause
214
pause
210
echo
215
echo
211
utils\windows\win32\bspatch.exe nwl1.map nwl1.map nwl1.patch
216
"%addondir%\utils\windows\win32\bspatch.exe" nwl1.map nwl1.map nwl1.patch
212
utils\windows\win32\bspatch.exe nwl2.map nwl2.map nwl2.patch
217
"%addondir%\utils\windows\win32\bspatch.exe" nwl2.map nwl2.map nwl2.patch
213
utils\windows\win32\bspatch.exe nwl3.map nwl3.map nwl3.patch
218
"%addondir%\utils\windows\win32\bspatch.exe" nwl3.map nwl3.map nwl3.patch
214
utils\windows\win32\bspatch.exe nwl4.map nwl4.map nwl4.patch
219
"%addondir%\utils\windows\win32\bspatch.exe" nwl4.map nwl4.map nwl4.patch
215
utils\windows\win32\bspatch.exe nwl5.map nwl5.map nwl5.patch
220
"%addondir%\utils\windows\win32\bspatch.exe" nwl5.map nwl5.map nwl5.patch
216
utils\windows\win32\bspatch.exe nwl6.map nwl6.map nwl6.patch
221
"%addondir%\utils\windows\win32\bspatch.exe" nwl6.map nwl6.map nwl6.patch
217
utils\windows\win32\bspatch.exe nwl7.map nwl7.map nwl7.patch
222
"%addondir%\utils\windows\win32\bspatch.exe" nwl7.map nwl7.map nwl7.patch
218
utils\windows\win32\bspatch.exe nwl8.map nwl8.map nwl8.patch
223
"%addondir%\utils\windows\win32\bspatch.exe" nwl8.map nwl8.map nwl8.patch
219
if exist nwpatch*.h266 del /f /q nwpatch*.h266
224
if exist nwpatch*.h266 del /f /q nwpatch*.h266
220
if exist nwflag*.h266 del /f /q nwflag*.h266
225
if exist nwflag*.h266 del /f /q nwflag*.h266
221
echo Do not delete this file^! You will be forced to reinstall NW+ and repatch the maps. >nwflag_%addonver%.h266
226
echo Do not delete this file^! You will be forced to reinstall NW+ and repatch the maps. >nwflag_%addonver%.h266
222
attrib +r nwflag_%addonver%.h266
227
attrib +r nwflag_%addonver%.h266
223
echo.
228
echo.
Line 245... Line 250...
245
if exist TILES012.ART goto artfound
250
if exist TILES012.ART goto artfound
246
if exist TILES013.ART goto artfound
251
if exist TILES013.ART goto artfound
247
if exist TILES014.ART goto artfound
252
if exist TILES014.ART goto artfound
248
if exist TILES015.ART goto artfound
253
if exist TILES015.ART goto artfound
249
:artfound_done
254
:artfound_done
-
 
255
call :checksum c6b8ca33ea6a2ec46b8dfeca4f9a3d5e078d0789 NWACTOR.CON "NWINTER file detected and neutralized:"
-
 
256
call :checksum fdb91aa2912f16232ed9020a7d8ec35834ef58c8 NWDEFS.CON "NWINTER file detected and neutralized:"
-
 
257
call :checksum 2bb2ddc7319e0935569b724f3c67cb953fdb79d6 NWINTER.CON "NWINTER file detected and neutralized:"
-
 
258
call :checksum 5ae347733be1f87f35d1930186de1ed764f4682f NWSNOW.CON "NWINTER file detected and neutralized:"
-
 
259
call :checksum 5df8b3b4216dcfdb8bc0adf6241f8a893eacfd98 NWUSER.CON "NWINTER file detected and neutralized:"
250
if exist NWinter.con goto confound
260
if exist NWinter.con goto confound
251
if exist NWActor.con goto confound
261
if exist NWActor.con goto confound
252
if exist NWDefs.con goto confound
262
if exist NWDefs.con goto confound
253
if exist NWDP.con goto confound
263
if exist NWDP.con goto confound
254
if exist NWDPCode.con goto confound
264
if exist NWDPCode.con goto confound
Line 259... Line 269...
259
:confound_done
269
:confound_done
260
echo.
270
echo.
261
pause
271
pause
262
goto restart
272
goto restart
263
273
-
 
274
:checksum
-
 
275
if not exist "%~2" goto :eof
-
 
276
echo %~1 *%~2 | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check -
-
 
277
if "%ERRORLEVEL%"=="0" (
-
 
278
ren "%~2" "NWOld_%~nx2"
-
 
279
echo %~3 %~nx2
-
 
280
)
-
 
281
goto :eof
-
 
282
264
:nopatch
283
:nopatch
265
echo.
284
echo.
266
echo Error: You don't have all the *.patch files in your directory.
285
echo Error: You don't have all the *.patch files in your directory.
267
echo Aborting installation.
286
echo Aborting installation.
268
echo Map patching is required for NW+ to function correctly.
287
echo Map patching is required for NW+ to function correctly.