Rev 15 | Rev 18 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 15 | Rev 17 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | @echo off |
1 | @echo off |
2 | @color 0C |
2 | @color 0C |
3 | 3 | ||
4 | :restart |
4 | :restart |
5 | title Duke Caribbean: Life's A Beach Plus Batch Launcher |
5 | title Duke Caribbean: Life's A Beach Plus Launcher |
- | 6 | if "%editor%"=="1" title Duke Caribbean: Life's A Beach Plus Editor Launcher |
|
6 | 7 | ||
7 | set dir=%cd% |
8 | set dir=%cd% |
8 | set eduke32dir=%~dp0 |
9 | set exedir=%~dp0 |
9 | set vacadir=%~dp0 |
10 | set addondir=%~dp0 |
10 | set vacahrpdir=%~dp0 |
11 | set addonhrpdir=%~dp0 |
- | 12 | ||
11 | set vacaver=30 |
13 | set exename=eduke32 |
12 | set hrp= |
14 | set exeproper=EDuke32 |
- | 15 | set action=playing |
|
- | 16 | ||
- | 17 | if "%editor%"=="1" ( |
|
- | 18 | set exename=mapster32 |
|
- | 19 | set exeproper=Mapster32 |
|
- | 20 | set action=editing |
|
- | 21 | ) |
|
- | 22 | ||
13 | set hrpu= |
23 | set addonver=r001 |
14 | 24 | ||
15 | :title |
25 | :title |
16 | echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» |
26 | echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» |
17 | echo º Duke Caribbean: Life's A Beach Plus Batch Launcher º |
27 | echo º Duke Caribbean: Life's A Beach Plus º |
18 | echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ |
28 | echo ÈÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍͼ |
19 | echo ³ By Hendricks266 ³ |
29 | echo ³ By Hendricks266 ³ |
20 | echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ |
30 | echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ |
21 | echo. |
31 | echo. |
22 | echo You are playing Sunstorm Interactive's Duke Caribbean: Life's A Beach with the |
32 | echo You are %action% Sunstorm Interactive's Duke Caribbean: Life's A Beach with the |
23 | echo various enhancements of Duke Caribbean: Life's A Beach Plus, maintained by |
33 | echo various enhancements of Duke Caribbean: Life's A Beach Plus, maintained by |
24 | echo Hendricks266. |
34 | echo Hendricks266. |
25 | echo. |
35 | echo. |
26 | 36 | ||
- | 37 | if "%xxx%"=="1" echo Using XXX mode. |
|
- | 38 | if "%dp%"=="1" echo Using Duke Plus by DeeperThought. |
|
- | 39 | if "%debug%"=="1" echo Using debug mode. |
|
- | 40 | ||
27 | :recheck |
41 | :recheck |
28 | if not exist eduke32.exe goto eduke32check |
42 | if not exist %exename%.exe goto execheck |
29 | :eduke32check_done |
43 | :execheck_done |
30 | set eduke32dir=%cd% |
44 | set exedir=%cd% |
31 | if "%debug%"=="1" echo DEBUG: EDuke32 Directory: "%eduke32dir%" |
45 | if "%debug%"=="1" echo DEBUG: %exeproper% Directory: "%exedir%" |
32 | 46 | ||
33 | if not exist vaca_plus\ goto nodir |
47 | if not exist vaca_plus\ goto nodir |
34 | 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. |
35 | 49 | ||
36 | if exist vacation\ set vacahrpdir=%cd% |
50 | if exist vacation\ set addonhrpdir=%cd% |
37 | :vacadircheck |
51 | :addondircheck |
38 | if exist VACATION.PRG ren VACATION.PRG vacation.grp |
52 | if exist VACATION.PRG ren VACATION.PRG vacation.grp |
39 | cd vaca_plus |
53 | cd vaca_plus |
40 | set vacadir=%cd% |
54 | set addondir=%cd% |
41 | if exist vacation\ set vacahrpdir=%cd% |
55 | if exist vacation\ set addonhrpdir=%cd% |
42 | if exist vaca_plus\ goto vacadircheck |
56 | if exist vaca_plus\ goto addondircheck |
43 | if "%debug%"=="1" echo DEBUG: Vaca+ Directory: "%vacadir%". |
57 | if "%debug%"=="1" echo DEBUG: Vaca+ Directory: "%addondir%". |
44 | if "%debug%"=="1" echo DEBUG: VacaHRP Directory: "%vacahrpdir%". |
58 | if "%debug%"=="1" echo DEBUG: VacaHRP Directory: "%addonhrpdir%". |
45 | 59 | ||
46 | if not exist "%vacadir%\VACATION.GRP" ( |
60 | if not exist "%addondir%\VACATION.GRP" ( |
47 | if exist "%eduke32dir%\VACATION.GRP" ( |
61 | if exist "%exedir%\VACATION.GRP" ( |
48 | move /y "%eduke32dir%\VACATION.GRP" "%vacadir%\" |
62 | move /y "%exedir%\VACATION.GRP" "%addondir%\" |
49 | ren "%vacadir%\VACATION.GRP" vacation.grp |
63 | ren "%addondir%\VACATION.GRP" vacation.grp |
50 | ) else ( |
64 | ) else ( |
51 | goto novacagrp |
65 | goto novacagrp |
52 | ) |
- | |
53 | ) |
66 | ) ) |
54 | 67 | ||
55 | :novacagrp_done |
68 | :novacagrp_done |
56 | if not exist vacaflag%vacaver%.h266 goto extract |
69 | if not exist vacaflag_%addonver%.h266 goto extract |
57 | if not exist vaca1.map goto extract |
70 | if not exist vaca1.map goto extract |
58 | if not exist vaca2.map goto extract |
71 | if not exist vaca2.map goto extract |
59 | if not exist vaca3.map goto extract |
72 | if not exist vaca3.map goto extract |
60 | if not exist vaca4.map goto extract |
73 | if not exist vaca4.map goto extract |
61 | if not exist vaca5.map goto extract |
74 | if not exist vaca5.map goto extract |
Line 64... | Line 77... | ||
64 | if not exist vacadm1.map goto extract |
77 | if not exist vacadm1.map goto extract |
65 | if not exist vacadm2.map goto extract |
78 | if not exist vacadm2.map goto extract |
66 | if not exist vacadm3.map goto extract |
79 | if not exist vacadm3.map goto extract |
67 | if not exist vacadm4.map goto extract |
80 | if not exist vacadm4.map goto extract |
68 | if not exist vacasl.map goto extract |
81 | if not exist vacasl.map goto extract |
69 | cd "%eduke32dir%" |
82 | cd "%exedir%" |
- | 83 | echo. |
|
70 | echo. |
84 | echo. |
71 | echo. |
85 | echo. |
72 | echo. |
86 | echo. |
73 | echo. |
87 | echo. |
74 | 88 | ||
- | 89 | ||
75 | :init |
90 | :init |
76 | pause |
91 | pause |
77 | echo. |
92 | echo. |
78 | goto check |
93 | goto check |
79 | 94 | ||
80 | :check |
95 | :check |
81 | 96 | ||
82 | if exist duke3d_hrp.zip set hrp=-gduke3d_hrp.zip |
- | |
83 | if exist hrp_update.zip set hrpu=-ghrp_update.zip |
- | |
84 | - | ||
85 | echo. |
97 | echo. |
86 | echo Launching Duke Nukem 3D . . . |
98 | echo Launching Duke Nukem 3D . . . |
87 | echo Thanks for playing! |
99 | echo Thanks for %action%^! |
88 | echo. |
- | |
89 | echo Please do not close this window. |
- | |
90 | echo It will close automatically. |
- | |
91 | - | ||
92 | ::if exist *.art ren *.art *.abk |
- | |
93 | 100 | ||
- | 101 | :arguments |
|
- | 102 | set args= |
|
- | 103 | if exist polymer_hrp\ set args=%args% -jpolymer_hrp |
|
- | 104 | if exist duke3d_voxel.zip set args=%args% -gduke3d_voxel.zip |
|
- | 105 | if exist duke3d_hrp.zip set args=%args% -gduke3d_hrp.zip |
|
- | 106 | if exist hrp_update.zip set args=%args% -ghrp_update.zip |
|
94 | set args=-xVacaEDuke.con -hvacation.def |
107 | if exist maphacks.zip set args=%args% -gmaphacks.zip |
- | 108 | if exist eduke32_mus.zip set args=%args% -geduke32_mus.zip |
|
95 | if exist "%vacadir%" set args=%args% -j"%vacadir:\=/%" |
109 | if exist "%addondir%" set args=%args% -j"%addondir:\=/%" |
96 | if exist "%vacahrpdir%" set args=%args% -j"%vacahrpdir:\=/%" |
110 | if exist "%addonhrpdir%" set args=%args% -j"%addonhrpdir:\=/%" |
97 | set args=%args% -gvacation.grp %hrp% %hrpu% %* |
111 | set args=%args% -gvacation.grp -hvacation.def |
- | 112 | if "%editor%"=="1" set args=%args% -namesfile VacaNames.h |
|
- | 113 | if not "%editor%"=="1" set args=%args% -xVacaEDuke.con |
|
- | 114 | if "%dp%"=="1" ( |
|
- | 115 | set args=%args% -hvaca_dp.def |
|
- | 116 | if not "%editor%"=="1" set args=%args% -xVacaDP.con |
|
- | 117 | ) |
|
- | 118 | if "%xxx%"=="1" ( |
|
- | 119 | if exist xxx_lite.zip set args=%args% -gxxx_lite.zip |
|
- | 120 | if exist xxx_pack.zip set args=%args% -gxxx_pack.zip |
|
- | 121 | set args=%args% -hvaca_xxx.def |
|
- | 122 | if "%dp%"=="1" ( |
|
- | 123 | set args=%args% -hvaca_dp_xxx.def |
|
- | 124 | if not "%editor%"=="1" set args=%args% -xVacaDPXXX.con |
|
- | 125 | ) ) |
|
- | 126 | set args=%args% %* |
|
- | 127 | if "%dp%"=="1" set args=%args% -jDukePlus |
|
98 | 128 | ||
99 | set exe=eduke32 |
129 | set exe=%exename% |
100 | if "%debug%"=="1" set exe=eduke32.debug |
130 | if "%debug%"=="1" set exe=%exename%.debug |
101 | 131 | ||
102 | if exist %exe%.bat ( |
132 | if exist %exe%.bat ( |
103 | call %exe%.bat %args% |
133 | call %exe%.bat %args% |
104 | ) else ( |
134 | ) else ( |
105 | start %exe%.exe %args% |
135 | start %exe%.exe %args% |
106 | ) |
136 | ) |
107 | 137 | ||
108 | ::if exist *.abk ren *.abk *.art |
- | |
109 | - | ||
110 | goto end |
- | |
111 | - | ||
112 | :noduke |
- | |
113 | echo. |
- | |
114 | - | ||
115 | echo Aborting launch. |
- | |
116 | echo. |
- | |
117 | pause |
- | |
118 | goto end |
138 | goto end |
119 | 139 | ||
120 | :novacagrp |
140 | :novacagrp |
121 | echo. |
141 | echo. |
122 | echo Error: You don't have VACATION.GRP in your directory. |
142 | echo Error: You don't have VACATION.GRP in your directory. |
Line 215... | Line 235... | ||
215 | rd /s /q vaca13ssi |
235 | rd /s /q vaca13ssi |
216 | goto novacagrp_done |
236 | goto novacagrp_done |
217 | 237 | ||
218 | :extract |
238 | :extract |
219 | echo. |
239 | echo. |
220 | echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» |
- | |
221 | echo º Duke Caribbean: Life's A Beach Plus Installation º |
240 | echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» |
222 | echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ |
- | |
223 | echo ³ By Hendricks266 ³ |
241 | echo º Installation º |
224 | echo ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ |
242 | echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ |
225 | echo. |
243 | echo. |
226 | if not exist vaca1.ips goto noips |
244 | if not exist vaca1.ips goto noips |
227 | if not exist vaca2.ips goto noips |
245 | if not exist vaca2.ips goto noips |
228 | if not exist vaca3.ips goto noips |
246 | if not exist vaca3.ips goto noips |
229 | if not exist vaca4.ips goto noips |
247 | if not exist vaca4.ips goto noips |
Line 235... | Line 253... | ||
235 | if not exist vacadm2.ips goto noips |
253 | if not exist vacadm2.ips goto noips |
236 | if not exist vacadm3.ips goto noips |
254 | if not exist vacadm3.ips goto noips |
237 | if not exist vacadm4.ips goto noips |
255 | if not exist vacadm4.ips goto noips |
238 | md vaca_preserve |
256 | md vaca_preserve |
239 | if exist vaca*.map move /y vaca*.map vaca_preserve\ |
257 | if exist vaca*.map move /y vaca*.map vaca_preserve\ |
240 | if exist "%eduke32dir%\vaca*.map" move /y "%eduke32dir%\vaca*.map" vaca_preserve\ |
258 | if exist "%exedir%\vaca*.map" move /y "%exedir%\vaca*.map" vaca_preserve\ |
241 | utils\windows\win32\kextract.exe VACATION.GRP VACA*.MAP |
259 | utils\windows\win32\kextract.exe VACATION.GRP VACA*.MAP |
242 | ren VACA1.MAP vaca1.map |
260 | ren VACA1.MAP vaca1.map |
243 | ren VACA2.MAP vaca2.map |
261 | ren VACA2.MAP vaca2.map |
244 | ren VACA3.MAP vaca3.map |
262 | ren VACA3.MAP vaca3.map |
245 | ren VACA4.MAP vaca4.map |
263 | ren VACA4.MAP vaca4.map |
Line 270... | Line 288... | ||
270 | utils\windows\win32\uips.exe a vacadm2.ips vacadm2.map |
288 | utils\windows\win32\uips.exe a vacadm2.ips vacadm2.map |
271 | utils\windows\win32\uips.exe a vacadm3.ips vacadm3.map |
289 | utils\windows\win32\uips.exe a vacadm3.ips vacadm3.map |
272 | utils\windows\win32\uips.exe a vacadm4.ips vacadm4.map |
290 | utils\windows\win32\uips.exe a vacadm4.ips vacadm4.map |
273 | if exist vacapatch*.h266 del /f /q vacapatch*.h266 |
291 | if exist vacapatch*.h266 del /f /q vacapatch*.h266 |
274 | if exist vacaflag*.h266 del /f /q vacaflag*.h266 |
292 | if exist vacaflag*.h266 del /f /q vacaflag*.h266 |
275 | echo Do not delete this file! You will be forced to reinstall Vaca+ and repatch the maps. >vacaflag%vacaver%.h266 |
293 | echo Do not delete this file^! You will be forced to reinstall Vaca+ and repatch the maps. >vacaflag_%addonver%.h266 |
276 | attrib +r vacaflag%vacaver%.h266 |
294 | attrib +r vacaflag_%addonver%.h266 |
277 | echo. |
295 | echo. |
278 | echo Patching complete! |
296 | echo Patching complete^! |
279 | :scanning |
297 | :scanning |
280 | cd "%eduke32dir%" |
298 | cd "%exedir%" |
281 | echo. |
299 | echo. |
282 | echo Scanning directory for potential problems. |
300 | echo Scanning directory for potential problems. |
283 | if exist vaca1.mhk goto mhkfound |
301 | if exist vaca1.mhk goto mhkfound |
284 | if exist vaca2.mhk goto mhkfound |
302 | if exist vaca2.mhk goto mhkfound |
285 | if exist vaca3.mhk goto mhkfound |
303 | if exist vaca3.mhk goto mhkfound |
Line 336... | Line 354... | ||
336 | 354 | ||
337 | :mhkfound |
355 | :mhkfound |
338 | echo. |
356 | echo. |
339 | echo Problematic .mhk files have been found in your directory. |
357 | echo Problematic .mhk files have been found in your directory. |
340 | echo Unless you have knowingly made a modification to Vaca's map hacks, |
358 | echo Unless you have knowingly made a modification to Vaca's map hacks, |
341 | echo the presence of these files in your EDuke32 directory will |
359 | echo the presence of these files in your %exeproper% directory will |
342 | echo cause Vaca+ to function incorrectly. |
360 | echo cause Vaca+ to function incorrectly. |
343 | echo. |
361 | echo. |
344 | echo vaca1.mhk |
362 | echo vaca1.mhk |
345 | echo vaca2.mhk |
363 | echo vaca2.mhk |
346 | echo vaca3.mhk |
364 | echo vaca3.mhk |
Line 360... | Line 378... | ||
360 | 378 | ||
361 | :artfound |
379 | :artfound |
362 | echo. |
380 | echo. |
363 | echo Problematic .art files have been found in your directory. |
381 | echo Problematic .art files have been found in your directory. |
364 | echo Unless you have knowingly made a modification to Vaca's art, |
382 | echo Unless you have knowingly made a modification to Vaca's art, |
365 | echo the presence of these files in your EDuke32 directory will |
383 | echo the presence of these files in your %exeproper% directory will |
366 | echo cause Vaca+ to function incorrectly. |
384 | echo cause Vaca+ to function incorrectly. |
367 | echo. |
385 | echo. |
368 | echo TILES000.ART |
386 | echo TILES000.ART |
369 | echo TILES003.ART |
387 | echo TILES003.ART |
370 | echo TILES005.ART |
388 | echo TILES005.ART |
Line 379... | Line 397... | ||
379 | 397 | ||
380 | :confound |
398 | :confound |
381 | echo. |
399 | echo. |
382 | echo Problematic .con files have been found in your directory. |
400 | echo Problematic .con files have been found in your directory. |
383 | echo Unless you have knowingly made a modification to Vaca's programming, |
401 | echo Unless you have knowingly made a modification to Vaca's programming, |
384 | echo the presence of these files in your EDuke32 directory will |
402 | echo the presence of these files in your %exeproper% directory will |
385 | echo cause Vaca+ to function incorrectly. |
403 | echo cause Vaca+ to function incorrectly. |
386 | echo. |
404 | echo. |
387 | echo Vacation.con |
405 | echo Vacation.con |
388 | echo VacaEDuke.con |
406 | echo VacaEDuke.con |
389 | echo VacaDefs.con |
407 | echo VacaDefs.con |
Line 397... | Line 415... | ||
397 | echo VBeachBather.con |
415 | echo VBeachBather.con |
398 | echo VDragon.con |
416 | echo VDragon.con |
399 | echo VSeagull.con |
417 | echo VSeagull.con |
400 | echo. |
418 | echo. |
401 | echo IF THESE ARE THE ORIGINAL CARIBBEAN CON FILES, OR THEY COME FROM |
419 | echo IF THESE ARE THE ORIGINAL CARIBBEAN CON FILES, OR THEY COME FROM |
402 | echo AN OUTDATED VERSION OF VACA+, REMOVE THEM FROM YOUR EDUKE32 DIRECTORY |
420 | echo AN OUTDATED VERSION OF VACA+, REMOVE THEM FROM YOUR %exeproper% DIRECTORY |
403 | echo IMMEDIATELY! |
421 | echo IMMEDIATELY^! |
404 | echo Vaca+ uses modified .con files to fix programming errors created by |
422 | echo Vaca+ uses modified .con files to fix programming errors created by |
405 | echo the original programmers. Due to improvements made to the levels, |
423 | echo the original programmers. Due to improvements made to the levels, |
406 | echo Vaca+ will have major errors if the included .con files are not used. |
424 | echo Vaca+ will have major errors if the included .con files are not used. |
407 | goto confound_done |
425 | goto confound_done |
408 | 426 | ||
409 | :eduke32check |
427 | :execheck |
410 | if exist eduke32.bat goto eduke32check_done |
428 | if exist %exename%.bat goto execheck_done |
411 | if exist ..\eduke32.exe ( |
429 | if exist ..\%exename%.exe ( |
412 | cd .. |
430 | cd .. |
413 | goto recheck |
431 | goto recheck |
414 | ) |
432 | ) |
415 | if exist ..\..\eduke32.exe ( |
433 | if exist ..\..\%exename%.exe ( |
416 | cd ..\.. |
434 | cd ..\.. |
417 | goto recheck |
435 | goto recheck |
418 | ) |
436 | ) |
419 | if exist ..\..\..\eduke32.exe ( |
437 | if exist ..\..\..\%exename%.exe ( |
420 | cd ..\..\.. |
438 | cd ..\..\.. |
421 | goto recheck |
439 | goto recheck |
422 | ) |
440 | ) |
423 | if exist ..\eduke32.bat ( |
441 | if exist ..\%exename%.bat ( |
424 | cd .. |
442 | cd .. |
425 | goto eduke32check_done |
443 | goto execheck_done |
426 | ) |
444 | ) |
427 | if exist ..\..\eduke32.bat ( |
445 | if exist ..\..\%exename%.bat ( |
428 | cd ..\.. |
446 | cd ..\.. |
429 | goto eduke32check_done |
447 | goto execheck_done |
430 | ) |
448 | ) |
431 | if exist ..\..\..\eduke32.bat ( |
449 | if exist ..\..\..\%exename%.bat ( |
432 | cd ..\..\.. |
450 | cd ..\..\.. |
433 | goto eduke32check_done |
451 | goto execheck_done |
434 | ) |
452 | ) |
435 | echo Warning: You don't have EDuke32 in your directory. |
453 | echo Warning: You don't have %exeproper% in your directory. |
436 | goto eduke32check_done |
454 | goto execheck_done |
437 | 455 | ||
438 | :nodir |
456 | :nodir |
439 | echo. |
457 | echo. |
440 | echo Error: "vaca_plus" data directory not found. |
458 | echo Error: "vaca_plus" data directory not found. |
441 | echo Aborting launch. |
459 | echo Aborting launch. |
Line 443... | Line 461... | ||
443 | pause |
461 | pause |
444 | goto end |
462 | goto end |
445 | 463 | ||
446 | :end |
464 | :end |
447 | echo. |
465 | echo. |
- | 466 | set editor=0 |
|
- | 467 | set xxx=0 |
|
448 | @color 07 |
468 | set dp=0 |
449 | @title %ComSpec% |
469 | set debug=0 |
450 | cd %dir% |
470 | cd %dir% |
- | 471 | @title %ComSpec% |
|
- | 472 | @color 07 |