Rev 26 | Rev 28 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 26 | 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 Caribbean: Life's A Beach Plus º |
27 | echo º Duke Caribbean: Life's A Beach Plus º |
28 | echo ÈÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍͼ |
28 | echo ÈÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍͼ |
Line 63... | Line 63... | ||
63 | ren "%addondir%\VACATION.GRP" vacation.grp |
63 | ren "%addondir%\VACATION.GRP" vacation.grp |
64 | ) else ( |
64 | ) else ( |
65 | goto novacagrp |
65 | goto novacagrp |
66 | ) ) |
66 | ) ) |
67 | 67 | ||
68 | :novacagrp_done |
68 | :novacagrp_return |
69 | if not exist vaca1.map goto mapextract |
69 | if not exist vaca1.map goto mapextract |
70 | if not exist vaca2.map goto mapextract |
70 | if not exist vaca2.map goto mapextract |
71 | if not exist vaca3.map goto mapextract |
71 | if not exist vaca3.map goto mapextract |
72 | if not exist vaca4.map goto mapextract |
72 | if not exist vaca4.map goto mapextract |
73 | if not exist vaca5.map goto mapextract |
73 | if not exist vaca5.map goto mapextract |
Line 180... | Line 180... | ||
180 | echo. |
180 | echo. |
181 | pause |
181 | pause |
182 | md vaca15ssi |
182 | md vaca15ssi |
183 | cd vaca15ssi |
183 | cd vaca15ssi |
184 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
184 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
185 | ..\utils\windows\win32\unpackssi.exe ..\VACA15.SSI |
185 | "%addondir%\utils\windows\win32\unpackssi.exe" ..\VACA15.SSI |
186 | move /y VACATION.PRG ..\vacation.grp |
186 | move /y VACATION.PRG ..\vacation.grp |
187 | cd .. |
187 | cd .. |
188 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
188 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
189 | rd /s /q vaca15ssi |
189 | rd /s /q vaca15ssi |
190 | goto novacagrp_done |
190 | goto novacagrp_done |
Line 195... | Line 195... | ||
195 | echo. |
195 | echo. |
196 | pause |
196 | pause |
197 | md vacappssi |
197 | md vacappssi |
198 | cd vacappssi |
198 | cd vacappssi |
199 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
199 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
200 | ..\utils\windows\win32\unpackssi.exe ..\VACAPP.SSI |
200 | "%addondir%\utils\windows\win32\unpackssi.exe" ..\VACAPP.SSI |
201 | move /y VACATION.PRG ..\vacation.grp |
201 | move /y VACATION.PRG ..\vacation.grp |
202 | cd .. |
202 | cd .. |
203 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
203 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
204 | rd /s /q vacappssi |
204 | rd /s /q vacappssi |
205 | goto novacagrp_done |
205 | goto novacagrp_done |
Line 210... | Line 210... | ||
210 | echo. |
210 | echo. |
211 | pause |
211 | pause |
212 | md vaca13ssi |
212 | md vaca13ssi |
213 | cd vaca13ssi |
213 | cd vaca13ssi |
214 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
214 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
215 | ..\utils\windows\win32\unpackssi.exe ..\VACA13.SSI |
215 | "%addondir%\utils\windows\win32\unpackssi.exe" ..\VACA13.SSI |
216 | ren *.TRA *.ART |
216 | ren *.TRA *.ART |
217 | ren *.PCS *.SCP |
217 | ren *.PCS *.SCP |
218 | ren VACA1.MAP vaca1.map |
218 | ren VACA1.MAP vaca1.map |
219 | ren VACA2.MAP vaca2.map |
219 | ren VACA2.MAP vaca2.map |
220 | ren VACA3.MAP vaca3.map |
220 | ren VACA3.MAP vaca3.map |
Line 231... | Line 231... | ||
231 | ren *.DIM *.MID |
231 | ren *.DIM *.MID |
232 | ren *.MNA *.ANM |
232 | ren *.MNA *.ANM |
233 | ren *.COV *.VOC |
233 | ren *.COV *.VOC |
234 | ren *.OMD *.DMO |
234 | ren *.OMD *.DMO |
235 | ren DUKETEAM.ANM RADLOGO.ANM |
235 | ren DUKETEAM.ANM RADLOGO.ANM |
236 | ..\utils\windows\win32\kgroup.exe VACATION.GRP *.ART *.SCP *.map *.MID *.ANM *.VOC *.DMO CARIB.EXE |
236 | "%addondir%\utils\windows\win32\kgroup.exe" VACATION.GRP *.ART *.SCP *.map *.MID *.ANM *.VOC *.DMO CARIB.EXE |
237 | move /y VACATION.GRP ..\vacation.grp |
237 | move /y VACATION.GRP ..\vacation.grp |
238 | move /y *.map ..\ |
238 | move /y *.map ..\ |
239 | cd .. |
239 | cd .. |
240 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
240 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
241 | rd /s /q vaca13ssi |
241 | rd /s /q vaca13ssi |
242 | goto novacagrp_done |
242 | goto novacagrp_done |
243 | 243 | ||
- | 244 | :novacagrp_done |
|
- | 245 | echo ea0a9a77b9aee6edce76afa19eaea3a810fb2390 *vacation.grp | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check - |
|
- | 246 | if "%ERRORLEVEL%"=="0" echo VACATION.GRP checksum verified. |
|
- | 247 | if "%ERRORLEVEL%"=="1" echo VACATION.GRP checksum does not match. You may have a bad copy. |
|
- | 248 | goto novacagrp_return |
|
- | 249 | ||
244 | :mapextract |
250 | :mapextract |
245 | echo Extracted maps not found. Proceeding to installation. |
251 | echo Extracted maps not found. Proceeding to installation. |
246 | goto extract |
252 | goto extract |
247 | 253 | ||
248 | :updateextract |
254 | :updateextract |
Line 268... | Line 274... | ||
268 | if not exist vacadm3.patch goto nopatch |
274 | if not exist vacadm3.patch goto nopatch |
269 | if not exist vacadm4.patch goto nopatch |
275 | if not exist vacadm4.patch goto nopatch |
270 | md vaca_preserve |
276 | md vaca_preserve |
271 | if exist vaca*.map move /y vaca*.map vaca_preserve\ |
277 | if exist vaca*.map move /y vaca*.map vaca_preserve\ |
272 | if exist "%exedir%\vaca*.map" move /y "%exedir%\vaca*.map" vaca_preserve\ |
278 | if exist "%exedir%\vaca*.map" move /y "%exedir%\vaca*.map" vaca_preserve\ |
273 | utils\windows\win32\kextract.exe VACATION.GRP VACA*.MAP |
279 | "%addondir%\utils\windows\win32\kextract.exe" VACATION.GRP VACA*.MAP |
274 | ren VACA1.MAP vaca1.map |
280 | ren VACA1.MAP vaca1.map |
275 | ren VACA2.MAP vaca2.map |
281 | ren VACA2.MAP vaca2.map |
276 | ren VACA3.MAP vaca3.map |
282 | ren VACA3.MAP vaca3.map |
277 | ren VACA4.MAP vaca4.map |
283 | ren VACA4.MAP vaca4.map |
278 | ren VACA5.MAP vaca5.map |
284 | ren VACA5.MAP vaca5.map |
Line 288... | Line 294... | ||
288 | echo. |
294 | echo. |
289 | echo Map patching will now begin. |
295 | echo Map patching will now begin. |
290 | echo. |
296 | echo. |
291 | pause |
297 | pause |
292 | echo |
298 | echo |
293 | utils\windows\win32\bspatch.exe vaca1.map vaca1.map vaca1.patch |
299 | "%addondir%\utils\windows\win32\bspatch.exe" vaca1.map vaca1.map vaca1.patch |
294 | utils\windows\win32\bspatch.exe vaca2.map vaca2.map vaca2.patch |
300 | "%addondir%\utils\windows\win32\bspatch.exe" vaca2.map vaca2.map vaca2.patch |
295 | utils\windows\win32\bspatch.exe vaca3.map vaca3.map vaca3.patch |
301 | "%addondir%\utils\windows\win32\bspatch.exe" vaca3.map vaca3.map vaca3.patch |
296 | utils\windows\win32\bspatch.exe vaca4.map vaca4.map vaca4.patch |
302 | "%addondir%\utils\windows\win32\bspatch.exe" vaca4.map vaca4.map vaca4.patch |
297 | utils\windows\win32\bspatch.exe vaca5.map vaca5.map vaca5.patch |
303 | "%addondir%\utils\windows\win32\bspatch.exe" vaca5.map vaca5.map vaca5.patch |
298 | utils\windows\win32\bspatch.exe vaca6.map vaca6.map vaca6.patch |
304 | "%addondir%\utils\windows\win32\bspatch.exe" vaca6.map vaca6.map vaca6.patch |
299 | utils\windows\win32\bspatch.exe vaca7.map vaca7.map vaca7.patch |
305 | "%addondir%\utils\windows\win32\bspatch.exe" vaca7.map vaca7.map vaca7.patch |
300 | utils\windows\win32\bspatch.exe vacasl.map vacasl.map vacasl.patch |
306 | "%addondir%\utils\windows\win32\bspatch.exe" vacasl.map vacasl.map vacasl.patch |
301 | utils\windows\win32\bspatch.exe vacadm1.map vacadm1.map vacadm1.patch |
307 | "%addondir%\utils\windows\win32\bspatch.exe" vacadm1.map vacadm1.map vacadm1.patch |
302 | utils\windows\win32\bspatch.exe vacadm2.map vacadm2.map vacadm2.patch |
308 | "%addondir%\utils\windows\win32\bspatch.exe" vacadm2.map vacadm2.map vacadm2.patch |
303 | utils\windows\win32\bspatch.exe vacadm3.map vacadm3.map vacadm3.patch |
309 | "%addondir%\utils\windows\win32\bspatch.exe" vacadm3.map vacadm3.map vacadm3.patch |
304 | utils\windows\win32\bspatch.exe vacadm4.map vacadm4.map vacadm4.patch |
310 | "%addondir%\utils\windows\win32\bspatch.exe" vacadm4.map vacadm4.map vacadm4.patch |
305 | if exist vacapatch*.h266 del /f /q vacapatch*.h266 |
311 | if exist vacapatch*.h266 del /f /q vacapatch*.h266 |
306 | if exist vacaflag*.h266 del /f /q vacaflag*.h266 |
312 | if exist vacaflag*.h266 del /f /q vacaflag*.h266 |
307 | echo Do not delete this file^! You will be forced to reinstall Vaca+ and repatch the maps. >vacaflag_%addonver%.h266 |
313 | echo Do not delete this file^! You will be forced to reinstall Vaca+ and repatch the maps. >vacaflag_%addonver%.h266 |
308 | attrib +r vacaflag_%addonver%.h266 |
314 | attrib +r vacaflag_%addonver%.h266 |
309 | echo. |
315 | echo. |
Line 337... | Line 343... | ||
337 | if exist TILES009.ART goto artfound |
343 | if exist TILES009.ART goto artfound |
338 | if exist TILES010.ART goto artfound |
344 | if exist TILES010.ART goto artfound |
339 | if exist TILES012.ART goto artfound |
345 | if exist TILES012.ART goto artfound |
340 | if exist TILES014.ART goto artfound |
346 | if exist TILES014.ART goto artfound |
341 | :artfound_done |
347 | :artfound_done |
- | 348 | call :checksum 3d5092d053b23a823c1fa0ad0b0bdbc33b2a09bb DEFS.CON "VACA15 file detected and neutralized:" |
|
- | 349 | call :checksum 807aaf21edd6e315bcb76dd54450f28616f84609 GAME.CON "VACA15 file detected and neutralized:" |
|
- | 350 | call :checksum 6d29c3b19d26ff84edb104e68120edc5150066dd USER.CON "VACA15 file detected and neutralized:" |
|
- | 351 | call :checksum 856374f3b42a1f2e355730ffc70497a3e6a49585 BEACHBAB.CON "VACA15 file detected and neutralized:" |
|
- | 352 | call :checksum efb8168c6351d4b5e2c108ebc8189d4aba85ef35 BEACHBAL.CON "VACA15 file detected and neutralized:" |
|
- | 353 | call :checksum a947947409a76ea7e6c46076a8cfbaa76f8b0172 BEACHBTH.CON "VACA15 file detected and neutralized:" |
|
- | 354 | call :checksum 3c11b9d40a204849c2d7d6c10984397f3b6a444c DRAGON.CON "VACA15 file detected and neutralized:" |
|
- | 355 | call :checksum 1417476e2cd8a3aef85dd9c1f36308f2123d8b54 SEAGULL.CON "VACA15 file detected and neutralized:" |
|
- | 356 | call :checksum 0c1314dcd983b232f6afb941942e1ccbd7331ebb SOUNDS.CON "VACA15 file detected and neutralized:" |
|
- | 357 | call :checksum 032a25b2cd98e19a5ff9a859ac27c91a4abfcb46 USER.CON "VACAPP file detected and neutralized:" |
|
- | 358 | call :checksum 34ed9d27095d547e20fb9db87957d17ca9cb2046 DEFS.CON "VACA13 file detected and neutralized:" |
|
- | 359 | call :checksum 3480ad8caca150b7c4678a42a606c0d9941db631 GAME.CON "VACA13 file detected and neutralized:" |
|
- | 360 | call :checksum 74feb12ecfa57cb4c8e151593bff89e06b1ae11e USER.CON "VACA13 file detected and neutralized:" |
|
- | 361 | call :checksum 840d701ca5e1e590ff03510eb5d63880f3e5be79 BEACHBAB.CON "VACA13 file detected and neutralized:" |
|
- | 362 | call :checksum f4c7080384dde2f298e807b1bc9901e6e61ac617 BEACHBAL.CON "VACA13 file detected and neutralized:" |
|
- | 363 | call :checksum 9965ae6e6b4337d06e1df22b41592b4cdfb69b2f BEACHBTH.CON "VACA13 file detected and neutralized:" |
|
- | 364 | call :checksum d56a1ff075671d0919540086a062b37290113621 DRAGON.CON "VACA13 file detected and neutralized:" |
|
- | 365 | call :checksum 06be81473bad004296324b2d63f4730ac2160aa6 SEAGULL.CON "VACA13 file detected and neutralized:" |
|
- | 366 | call :checksum ef149cd90764bae685d9fab83eb2fe719486dce3 SOUNDS.CON "VACA13 file detected and neutralized:" |
|
342 | if exist Vacation.con goto confound |
367 | if exist Vacation.con goto confound |
343 | if exist VacaEDuke.con goto confound |
368 | if exist VacaEDuke.con goto confound |
344 | if exist VacaDefs.con goto confound |
369 | if exist VacaDefs.con goto confound |
345 | if exist VacaUser.con goto confound |
370 | if exist VacaUser.con goto confound |
346 | if exist VacaDP.con goto confound |
371 | if exist VacaDP.con goto confound |
Line 355... | Line 380... | ||
355 | :confound_done |
380 | :confound_done |
356 | echo. |
381 | echo. |
357 | pause |
382 | pause |
358 | goto restart |
383 | goto restart |
359 | 384 | ||
- | 385 | :checksum |
|
- | 386 | if not exist "%~2" goto :eof |
|
- | 387 | echo %~1 *%~2 | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check - |
|
- | 388 | if "%ERRORLEVEL%"=="0" ( |
|
- | 389 | ren "%~2" "VacaOld_%~nx2" |
|
- | 390 | echo %~3 %~nx2 |
|
- | 391 | ) |
|
- | 392 | goto :eof |
|
- | 393 | ||
360 | :nopatch |
394 | :nopatch |
361 | echo. |
395 | echo. |
362 | echo Error: You don't have all the *.patch files in your directory. |
396 | echo Error: You don't have all the *.patch files in your directory. |
363 | echo Aborting installation. |
397 | echo Aborting installation. |
364 | echo Map patching is required for Vaca+ to function correctly. |
398 | echo Map patching is required for Vaca+ to function correctly. |