Rev 29 | Rev 37 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 29 | Rev 30 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | 3 | ||
4 | :restart |
4 | :restart |
5 | title Duke Caribbean: Life's A Beach Plus 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 | if "%editor%"=="1" title Duke Caribbean: Life's A Beach 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 |
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 | call :grpchecksum |
|
68 | :novacagrp_return |
69 | :novacagrp_return |
- | 70 | if not "%version%"=="demo" ( |
|
69 | if not exist vaca1.map goto mapextract |
71 | if not exist vaca1.map goto mapextract |
70 | if not exist vaca2.map goto mapextract |
72 | if not exist vaca2.map goto mapextract |
71 | if not exist vaca3.map goto mapextract |
73 | if not exist vaca3.map goto mapextract |
72 | if not exist vaca4.map goto mapextract |
74 | if not exist vaca4.map goto mapextract |
73 | if not exist vaca5.map goto mapextract |
75 | if not exist vaca5.map goto mapextract |
Line 77... | Line 79... | ||
77 | if not exist vacadm1.map goto mapextract |
79 | if not exist vacadm1.map goto mapextract |
78 | if not exist vacadm2.map goto mapextract |
80 | if not exist vacadm2.map goto mapextract |
79 | if not exist vacadm3.map goto mapextract |
81 | if not exist vacadm3.map goto mapextract |
80 | if not exist vacadm4.map goto mapextract |
82 | if not exist vacadm4.map goto mapextract |
81 | if not exist vacaflag_%addonver%.h266 goto updateextract |
83 | if not exist vacaflag_%addonver%.h266 goto updateextract |
- | 84 | ) |
|
82 | cd "%exedir%" |
85 | cd "%exedir%" |
83 | echo. |
86 | echo. |
84 | echo. |
87 | echo. |
85 | echo. |
88 | echo. |
86 | echo. |
89 | echo. |
87 | echo. |
90 | echo. |
- | 91 | echo. |
|
- | 92 | echo. |
|
- | 93 | echo. |
|
88 | 94 | echo. |
|
89 | 95 | ||
90 | :init |
96 | :init |
91 | pause |
97 | pause |
92 | echo. |
98 | echo. |
93 | goto check |
99 | goto check |
Line 95... | Line 101... | ||
95 | :check |
101 | :check |
96 | 102 | ||
97 | echo. |
103 | echo. |
98 | echo Launching Duke Nukem 3D . . . |
104 | echo Launching Duke Nukem 3D . . . |
99 | echo Thanks for %action%^! |
105 | echo Thanks for %action%^! |
- | 106 | echo. |
|
100 | 107 | ||
101 | if "%editor%"=="1" ( |
108 | if "%editor%"=="1" ( |
102 | type "%exedir%\names.h" > "%exedir%\VacaNames.h" |
109 | type "%exedir%\names.h" > "%exedir%\VacaNames.h" |
103 | echo. >> "%exedir%\VacaNames.h" |
110 | echo. >> "%exedir%\VacaNames.h" |
104 | type "%addondir%\VacaNames.def" >> "%exedir%\VacaNames.h" |
111 | type "%addondir%\VacaNames.def" >> "%exedir%\VacaNames.h" |
Line 243... | Line 250... | ||
243 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
250 | if "%debug%"=="1" echo DEBUG: Changing directory to "%cd%". |
244 | rd /s /q vaca13ssi |
251 | rd /s /q vaca13ssi |
245 | goto novacagrp_done |
252 | goto novacagrp_done |
246 | 253 | ||
247 | :novacagrp_done |
254 | :novacagrp_done |
248 | echo ea0a9a77b9aee6edce76afa19eaea3a810fb2390 *vacation.grp | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check - |
- | |
249 | if "%ERRORLEVEL%"=="0" echo VACATION.GRP checksum verified. |
255 | call :grpchecksum |
250 | if "%ERRORLEVEL%"=="1" echo VACATION.GRP checksum does not match. You may have a bad copy. |
256 | call :grpchecksum_results |
251 | goto novacagrp_return |
257 | goto novacagrp_return |
252 | 258 | ||
- | 259 | :grpchecksum |
|
- | 260 | echo ea0a9a77b9aee6edce76afa19eaea3a810fb2390 *vacation.grp | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check - |
|
- | 261 | if "%ERRORLEVEL%"=="0" set version=full |
|
- | 262 | if "%ERRORLEVEL%"=="1" set version=unknown |
|
- | 263 | goto :eof |
|
- | 264 | ||
- | 265 | :grpchecksum_results |
|
- | 266 | if "%version%"="full" echo VACATION.GRP checksum verified. |
|
- | 267 | if "%version%"="unknown" echo VACATION.GRP checksum does not match. You may have a bad copy. |
|
- | 268 | echo. |
|
- | 269 | goto :eof |
|
- | 270 | ||
- | 271 | ||
253 | :mapextract |
272 | :mapextract |
254 | echo Extracted maps not found. Proceeding to installation. |
273 | echo Extracted maps not found or patched. Proceeding to installation. |
255 | goto extract |
274 | goto extract |
256 | 275 | ||
257 | :updateextract |
276 | :updateextract |
258 | echo Map patch update required. Proceeding to installation. |
277 | echo Map patch update required. Proceeding to installation. |
259 | goto extract |
278 | goto extract |
Line 262... | Line 281... | ||
262 | echo. |
281 | echo. |
263 | echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» |
282 | echo ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍ» |
264 | echo º Installation º |
283 | echo º Installation º |
265 | echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ |
284 | echo ÈÍÍÍÍÍÍÍÍÍÍÍÍÍͼ |
266 | echo. |
285 | echo. |
- | 286 | call :grpchecksum |
|
- | 287 | call :grpchecksum_results |
|
267 | if not exist vaca1.patch goto nopatch |
288 | if not exist vaca1.patch goto nopatch |
268 | if not exist vaca2.patch goto nopatch |
289 | if not exist vaca2.patch goto nopatch |
269 | if not exist vaca3.patch goto nopatch |
290 | if not exist vaca3.patch goto nopatch |
270 | if not exist vaca4.patch goto nopatch |
291 | if not exist vaca4.patch goto nopatch |
271 | if not exist vaca5.patch goto nopatch |
292 | if not exist vaca5.patch goto nopatch |
Line 392... | Line 413... | ||
392 | 413 | ||
393 | :checksum |
414 | :checksum |
394 | if not exist "%~2" goto :eof |
415 | if not exist "%~2" goto :eof |
395 | echo %~1 *%~2 | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check - |
416 | echo %~1 *%~2 | "%addondir%\utils\windows\win32\sha1sum.exe" --status --check - |
396 | if "%ERRORLEVEL%"=="0" ( |
417 | if "%ERRORLEVEL%"=="0" ( |
397 | ren "%~2" "VacaOld_%~nx2" |
418 | ren "%~2" "VacaOld_%addonver%_%~nx2" |
398 | echo %~3 %~nx2 |
419 | echo %~3 %~nx2 |
399 | ) |
420 | ) |
400 | goto :eof |
421 | goto :eof |
401 | 422 | ||
402 | :nopatch |
423 | :nopatch |
Line 517... | Line 538... | ||
517 | pause |
538 | pause |
518 | goto end |
539 | goto end |
519 | 540 | ||
520 | :end |
541 | :end |
521 | echo. |
542 | echo. |
- | 543 | set version= |
|
522 | set editor=0 |
544 | set editor= |
523 | set xxx=0 |
545 | set xxx= |
524 | set dp=0 |
546 | set dp= |
525 | set debug=0 |
547 | set debug= |
526 | cd %dir% |
548 | popd |
527 | @title %ComSpec% |
549 | @title %ComSpec% |
528 | @color 07 |
550 | @color 07 |