Rev 9 | Rev 15 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 9 | Rev 13 | ||
---|---|---|---|
Line 3... | Line 3... | ||
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 Batch Launcher |
6 | 6 | ||
7 | set dir=%cd% |
7 | set dir=%cd% |
- | 8 | set eduke32dir=%~dp0 |
|
- | 9 | set vacadir=%~dp0 |
|
- | 10 | set vacahrpdir=%~dp0 |
|
8 | set vacaver=30 |
11 | set vacaver=30 |
9 | set hrp= |
12 | set hrp= |
10 | set hrpu= |
13 | set hrpu= |
11 | 14 | ||
12 | - | ||
13 | :title |
15 | :title |
14 | echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» |
16 | echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» |
15 | echo º Duke Caribbean: Life's A Beach Plus Batch Launcher º |
17 | echo º Duke Caribbean: Life's A Beach Plus Batch Launcher º |
16 | echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ |
18 | echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ |
17 | echo ³ By Hendricks266 ³ |
19 | echo ³ By Hendricks266 ³ |
Line 19... | Line 21... | ||
19 | echo. |
21 | echo. |
20 | echo You are playing Sunstorm Interactive's Duke Caribbean: Life's A Beach with the |
22 | echo You are playing Sunstorm Interactive's Duke Caribbean: Life's A Beach with the |
21 | echo various enhancements of Duke Caribbean: Life's A Beach Plus, maintained by |
23 | echo various enhancements of Duke Caribbean: Life's A Beach Plus, maintained by |
22 | echo Hendricks266. |
24 | echo Hendricks266. |
23 | echo. |
25 | echo. |
- | 26 | ||
24 | :recheck |
27 | :recheck |
25 | if not exist eduke32.exe goto eduke32check |
28 | if not exist eduke32.exe goto eduke32check |
26 | :eduke32check_done |
29 | :eduke32check_done |
- | 30 | set eduke32dir=%cd% |
|
27 | if "%debug%"=="1" echo DEBUG: Directory: "%cd%" |
31 | if "%debug%"=="1" echo DEBUG: EDuke32 Directory: "%eduke32dir%" |
- | 32 | ||
28 | if not exist vaca_plus\ goto nodir |
33 | if not exist vaca_plus\ goto nodir |
29 | if not exist duke3d.grp echo Warning: You don't have Duke3D.grp in your directory. |
34 | if not exist duke3d.grp echo Warning: You don't have Duke3D.grp in your directory. |
- | 35 | ||
30 | if exist VACATION.PRG ren VACATION.PRG VACATION.GRP |
36 | if exist vacation_hrp set vacahrpdir=%cd% |
31 | if exist vaca_plus\VACATION.PRG ren vaca_plus\VACATION.PRG VACATION.GRP |
- | |
32 | if not exist vaca_plus\VACATION.GRP ( |
37 | :vacadircheck |
33 | if exist VACATION.GRP move /y VACATION.GRP vaca_plus\ |
38 | if exist VACATION.PRG ren VACATION.PRG vacation.grp |
34 | ) |
- | |
35 | cd vaca_plus |
39 | cd vaca_plus |
- | 40 | set vacadir=%cd% |
|
- | 41 | if exist vacation_hrp set vacahrpdir=%cd% |
|
- | 42 | if exist vaca_plus goto vacadircheck |
|
36 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
43 | if "%debug%"=="1" echo DEBUG: Vaca+ Directory: "%vacadir%". |
- | 44 | if "%debug%"=="1" echo DEBUG: VacaHRP Directory: "%vacahrpdir%". |
|
- | 45 | ||
- | 46 | if not exist "%vacadir%\VACATION.GRP" ( |
|
- | 47 | if exist "%eduke32dir%\VACATION.GRP" ( |
|
- | 48 | move /y "%eduke32dir%\VACATION.GRP" "%vacadir%\" |
|
37 | if not exist VACATION.GRP goto novacagrp |
49 | ren "%vacadir%\VACATION.GRP" vacation.grp |
- | 50 | ) else ( |
|
- | 51 | goto novacagrp |
|
- | 52 | ) |
|
- | 53 | ) |
|
- | 54 | ||
38 | :novacagrp_done |
55 | :novacagrp_done |
39 | if not exist vacaflag%vacaver%.h266 goto extract |
56 | if not exist vacaflag%vacaver%.h266 goto extract |
40 | if not exist vaca1.map goto extract |
57 | if not exist vaca1.map goto extract |
41 | if not exist vaca2.map goto extract |
58 | if not exist vaca2.map goto extract |
42 | if not exist vaca3.map goto extract |
59 | if not exist vaca3.map goto extract |
Line 47... | Line 64... | ||
47 | if not exist vacadm1.map goto extract |
64 | if not exist vacadm1.map goto extract |
48 | if not exist vacadm2.map goto extract |
65 | if not exist vacadm2.map goto extract |
49 | if not exist vacadm3.map goto extract |
66 | if not exist vacadm3.map goto extract |
50 | if not exist vacadm4.map goto extract |
67 | if not exist vacadm4.map goto extract |
51 | if not exist vacasl.map goto extract |
68 | if not exist vacasl.map goto extract |
52 | cd .. |
69 | cd "%eduke32dir%" |
53 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
- | |
54 | echo. |
- | |
55 | echo. |
70 | echo. |
56 | echo. |
71 | echo. |
57 | echo. |
72 | echo. |
58 | echo. |
73 | echo. |
59 | 74 | ||
Line 62... | Line 77... | ||
62 | echo. |
77 | echo. |
63 | goto check |
78 | goto check |
64 | 79 | ||
65 | :check |
80 | :check |
66 | 81 | ||
67 | if exist duke3d_hrp.zip set hrp=/gduke3d_hrp.zip |
82 | if exist duke3d_hrp.zip set hrp=-gduke3d_hrp.zip |
68 | if exist hrp_update.zip set hrpu=/ghrp_update.zip |
83 | if exist hrp_update.zip set hrpu=-ghrp_update.zip |
69 | 84 | ||
70 | echo. |
85 | echo. |
71 | echo Launching Duke Nukem 3D . . . |
86 | echo Launching Duke Nukem 3D . . . |
72 | echo Thanks for playing! |
87 | echo Thanks for playing! |
73 | echo. |
88 | echo. |
74 | echo Please leave this window open for the entire duration of your game. |
89 | echo Please do not close this window. |
75 | echo It will close automatically. |
90 | echo It will close automatically. |
76 | 91 | ||
77 | ::if exist *.art ren *.art *.abk |
92 | ::if exist *.art ren *.art *.abk |
78 | 93 | ||
79 | eduke32 /xVacaEDuke.con /hvacation.def /jvaca_plus /gVACATION.GRP %hrp% %hrpu% %* |
94 | set args=-xVacaEDuke.con -hvacation.def -j"%vacadir%" -j"%vacahrpdir%" -gvacation.grp %hrp% %hrpu% %* |
- | 95 | set exe=eduke32 |
|
- | 96 | if "%debug%"=="1" set exe=eduke32.debug |
|
- | 97 | ||
- | 98 | if exist %exe%.bat ( |
|
- | 99 | call %exe%.bat %args% |
|
- | 100 | ) else ( |
|
- | 101 | start %exe%.exe %args% |
|
- | 102 | ) |
|
80 | 103 | ||
81 | ::if exist *.abk ren *.abk *.art |
104 | ::if exist *.abk ren *.abk *.art |
82 | 105 | ||
83 | goto end |
106 | goto end |
84 | 107 | ||
Line 128... | Line 151... | ||
128 | pause |
151 | pause |
129 | md vaca15ssi |
152 | md vaca15ssi |
130 | cd vaca15ssi |
153 | cd vaca15ssi |
131 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
154 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
132 | ..\utils\windows\win32\unpackssi.exe ..\VACA15.SSI |
155 | ..\utils\windows\win32\unpackssi.exe ..\VACA15.SSI |
133 | move /y VACATION.PRG ..\VACATION.GRP |
156 | move /y VACATION.PRG ..\vacation.grp |
134 | cd .. |
157 | cd .. |
135 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
158 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
136 | rd /s /q vaca15ssi |
159 | rd /s /q vaca15ssi |
137 | goto novacagrp_done |
160 | goto novacagrp_done |
138 | 161 | ||
Line 143... | Line 166... | ||
143 | pause |
166 | pause |
144 | md vacappssi |
167 | md vacappssi |
145 | cd vacappssi |
168 | cd vacappssi |
146 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
169 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
147 | ..\utils\windows\win32\unpackssi.exe ..\VACAPP.SSI |
170 | ..\utils\windows\win32\unpackssi.exe ..\VACAPP.SSI |
148 | move /y VACATION.PRG ..\VACATION.GRP |
171 | move /y VACATION.PRG ..\vacation.grp |
149 | cd .. |
172 | cd .. |
150 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
173 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
151 | rd /s /q vacappssi |
174 | rd /s /q vacappssi |
152 | goto novacagrp_done |
175 | goto novacagrp_done |
153 | 176 | ||
Line 178... | Line 201... | ||
178 | ren *.DIM *.MID |
201 | ren *.DIM *.MID |
179 | ren *.MNA *.ANM |
202 | ren *.MNA *.ANM |
180 | ren *.COV *.VOC |
203 | ren *.COV *.VOC |
181 | ren *.OMD *.DMO |
204 | ren *.OMD *.DMO |
182 | ren DUKETEAM.ANM RADLOGO.ANM |
205 | ren DUKETEAM.ANM RADLOGO.ANM |
183 | ..\utils\windows\win32\kgroup.exe VACATION.GRP *.ART *.SCP *.map *.CON *.MID *.ANM *.VOC *.DMO CARIB.EXE |
206 | ..\utils\windows\win32\kgroup.exe VACATION.GRP *.ART *.SCP *.map *.MID *.ANM *.VOC *.DMO CARIB.EXE |
184 | move /y VACATION.GRP ..\VACATION.GRP |
207 | move /y VACATION.GRP ..\vacation.grp |
185 | move /y *.map ..\ |
208 | move /y *.map ..\ |
186 | cd .. |
209 | cd .. |
187 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
210 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
188 | rd /s /q vaca13ssi |
211 | rd /s /q vaca13ssi |
189 | goto novacagrp_done |
212 | goto novacagrp_done |
Line 208... | Line 231... | ||
208 | if not exist vacadm2.ips goto noips |
231 | if not exist vacadm2.ips goto noips |
209 | if not exist vacadm3.ips goto noips |
232 | if not exist vacadm3.ips goto noips |
210 | if not exist vacadm4.ips goto noips |
233 | if not exist vacadm4.ips goto noips |
211 | md vaca_preserve |
234 | md vaca_preserve |
212 | if exist vaca*.map move /y vaca*.map vaca_preserve\ |
235 | if exist vaca*.map move /y vaca*.map vaca_preserve\ |
213 | if exist ..\vaca*.map move /y ..\vaca*.map vaca_preserve\ |
236 | if exist "%eduke32dir%\vaca*.map" move /y "%eduke32dir%\vaca*.map" vaca_preserve\ |
214 | utils\windows\win32\kextract.exe VACATION.GRP VACA*.MAP |
237 | utils\windows\win32\kextract.exe VACATION.GRP VACA*.MAP |
215 | ren VACA1.MAP vaca1.map |
238 | ren VACA1.MAP vaca1.map |
216 | ren VACA2.MAP vaca2.map |
239 | ren VACA2.MAP vaca2.map |
217 | ren VACA3.MAP vaca3.map |
240 | ren VACA3.MAP vaca3.map |
218 | ren VACA4.MAP vaca4.map |
241 | ren VACA4.MAP vaca4.map |
Line 243... | Line 266... | ||
243 | utils\windows\win32\uips.exe a vacadm2.ips vacadm2.map |
266 | utils\windows\win32\uips.exe a vacadm2.ips vacadm2.map |
244 | utils\windows\win32\uips.exe a vacadm3.ips vacadm3.map |
267 | utils\windows\win32\uips.exe a vacadm3.ips vacadm3.map |
245 | utils\windows\win32\uips.exe a vacadm4.ips vacadm4.map |
268 | utils\windows\win32\uips.exe a vacadm4.ips vacadm4.map |
246 | if exist vacapatch*.h266 del /f /q vacapatch*.h266 |
269 | if exist vacapatch*.h266 del /f /q vacapatch*.h266 |
247 | if exist vacaflag*.h266 del /f /q vacaflag*.h266 |
270 | if exist vacaflag*.h266 del /f /q vacaflag*.h266 |
248 | echo Do not delete this file! You will be force to reinstall Vaca+ and repatch the maps. >vacaflag%vacaver%.h266 |
271 | echo Do not delete this file! You will be forced to reinstall Vaca+ and repatch the maps. >vacaflag%vacaver%.h266 |
249 | attrib +r vacaflag%vacaver%.h266 |
272 | attrib +r vacaflag%vacaver%.h266 |
250 | echo. |
273 | echo. |
251 | echo Patching complete! |
274 | echo Patching complete! |
252 | :scanning |
275 | :scanning |
253 | cd .. |
276 | cd "%eduke32dir%" |
254 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
- | |
255 | echo. |
277 | echo. |
256 | echo Scanning directory for potential problems. |
278 | echo Scanning directory for potential problems. |
257 | if exist vaca1.mhk goto mhkfound |
279 | if exist vaca1.mhk goto mhkfound |
258 | if exist vaca2.mhk goto mhkfound |
280 | if exist vaca2.mhk goto mhkfound |
259 | if exist vaca3.mhk goto mhkfound |
281 | if exist vaca3.mhk goto mhkfound |
Line 416... | Line 438... | ||
416 | echo. |
438 | echo. |
417 | pause |
439 | pause |
418 | goto end |
440 | goto end |
419 | 441 | ||
420 | :end |
442 | :end |
421 | set hrp= |
- | |
422 | set hrpu= |
- | |
423 | echo. |
443 | echo. |
424 | @color 07 |
444 | @color 07 |
425 | @title %ComSpec% |
445 | @title %ComSpec% |
426 | cd %dir% |
446 | cd %dir% |
427 | @echo on |
447 | @echo on |