Subversion Repositories vaca_plus

Rev

Rev 7 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1. @echo off
  2. @color 0C
  3.  
  4. :restart
  5. title Duke Caribbean: Life's A Beach Plus Batch Launcher
  6.  
  7. set dir=%cd%
  8. set vacaver=30
  9. set hrp=
  10. set hrpu=
  11.  
  12.  
  13. :title
  14. echo             ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
  15. echo             º Duke Caribbean: Life's A Beach Plus Batch Launcher º
  16. echo             ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
  17. echo                               ³ By Hendricks266 ³
  18. echo                               ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
  19. echo.
  20. 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
  22. echo Hendricks266.
  23. echo.
  24. :recheck
  25. if not exist eduke32.exe goto eduke32check
  26. :eduke32check_done
  27. if not exist vaca_plus\ goto nodir
  28. if not exist duke3d.grp echo Warning: You don't have Duke3D.grp in your directory.
  29. if exist VACATION.PRG ren VACATION.PRG VACATION.GRP
  30. if exist VACATION.GRP move VACATION.GRP vaca_plus\
  31. cd vaca_plus
  32. if exist VACATION.PRG ren VACATION.PRG VACATION.GRP
  33. if not exist VACATION.GRP goto novacagrp
  34. :novacagrp_done
  35. if not exist vacaflag%vacaver%.h266 goto extract
  36. if not exist vaca1.map goto extract
  37. if not exist vaca2.map goto extract
  38. if not exist vaca3.map goto extract
  39. if not exist vaca4.map goto extract
  40. if not exist vaca5.map goto extract
  41. if not exist vaca6.map goto extract
  42. if not exist vaca7.map goto extract
  43. if not exist vacadm1.map goto extract
  44. if not exist vacadm2.map goto extract
  45. if not exist vacadm3.map goto extract
  46. if not exist vacadm4.map goto extract
  47. if not exist vacasl.map goto extract
  48. cd ..
  49. echo.
  50. echo.
  51. echo.
  52. echo.
  53. echo.
  54.  
  55. :init
  56. pause
  57. echo.
  58. goto check
  59.  
  60. :check
  61.  
  62. if exist duke3d_hrp.zip set hrp=/gduke3d_hrp.zip
  63. if exist hrp_update.zip set hrpu=/ghrp_update.zip
  64.  
  65. echo.
  66. echo Launching Duke Nukem 3D . . .
  67. echo Thanks for playing!
  68. echo.
  69. echo Please leave this window open for the entire duration of your game.
  70. echo It will close automatically.
  71.  
  72. ::if exist *.art ren *.art *.abk
  73.  
  74. eduke32 /xVacaEDuke.con /hvacation.def /jvaca_plus /gVACATION.GRP %hrp% %hrpu% %*
  75.  
  76. ::if exist *.abk ren *.abk *.art
  77.  
  78. goto end
  79.  
  80. :noduke
  81. echo.
  82.  
  83. echo Aborting launch.
  84. echo.
  85. pause
  86. goto end
  87.  
  88. :novacagrp
  89. echo.
  90. echo Error: You don't have VACATION.GRP in your directory.
  91. echo.
  92. if exist VACA15.SSI goto ssi1
  93. if exist VACAPP.SSI goto ssi2
  94. if exist VACA13.SSI goto ssi3
  95. echo You don't have the SSI files in your directory.
  96. :retry
  97. echo.
  98. set cddrive=
  99. set /p cddrive=What is the drive letter that your Caribbean CD is in?
  100. echo.
  101. if not '%cddrive%'=='' set cddrive=%cddrive:~0,1%
  102. if '%cddrive%'=='' goto cdno
  103. if not exist %cddrive%:\ goto cdno
  104. if not exist %cddrive%:\* goto cdno
  105. if not exist %cddrive%:\VACATION\VACA13.SSI goto cdw
  106. copy %cddrive%:\VACATION\*.SSI .\
  107. echo.
  108. type DVINTRO.TXT
  109. goto novacagrp_done
  110.  
  111. :cdno
  112. echo '%cddrive%' is not valid.  Please try again.
  113. goto retry
  114.  
  115. :cdw
  116. echo '%cddrive%' is not the correct disc.  Please try again.
  117. goto retry
  118.  
  119. :ssi1
  120. echo You do have the Caribbean SSI file in this directory, but it has not been
  121. echo extracted.  It will now be unpacked.
  122. echo.
  123. pause
  124. md vaca15ssi
  125. cd vaca15ssi
  126. ..\utils\windows\win32\unpackssi.exe ..\VACA15.SSI
  127. move /y VACATION.PRG ..\VACATION.GRP
  128. cd ..
  129. rd /s /q vaca15ssi
  130. goto novacagrp_done
  131.  
  132. :ssi2
  133. echo You do have the Caribbean SSI file in this directory, but it has not been
  134. echo extracted.  It will now be unpacked.
  135. echo.
  136. pause
  137. md vacappssi
  138. cd vacappssi
  139. ..\utils\windows\win32\unpackssi.exe ..\VACAPP.SSI
  140. move /y VACATION.PRG ..\VACATION.GRP
  141. cd ..
  142. rd /s /q vacappssi
  143. goto novacagrp_done
  144.  
  145. :ssi3
  146. echo You do have the Caribbean SSI file in this directory, but it has not been
  147. echo extracted.  It will now be unpacked.
  148. echo.
  149. pause
  150. md vaca13ssi
  151. cd vaca13ssi
  152. ..\utils\windows\win32\unpackssi.exe ..\VACA13.SSI
  153. ren *.TRA *.ART
  154. ren *.PCS *.SCP
  155. ren VACA1.MAP vaca1.map
  156. ren VACA2.MAP vaca2.map
  157. ren VACA3.MAP vaca3.map
  158. ren VACA4.MAP vaca4.map
  159. ren VACA5.MAP vaca5.map
  160. ren VACA6.MAP vaca6.map
  161. ren VACA7.MAP vaca7.map
  162. ren VACASL.MAP vacasl.map
  163. ren VACADM1.MAP vacadm1.map
  164. ren VACADM2.MAP vacadm2.map
  165. ren VACADM3.MAP vacadm3.map
  166. ren VACADM4.MAP vacadm4.map
  167. ren *.NOC *.CON
  168. ren *.DIM *.MID
  169. ren *.MNA *.ANM
  170. ren *.COV *.VOC
  171. ren *.OMD *.DMO
  172. ren DUKETEAM.ANM RADLOGO.ANM
  173. ..\utils\windows\win32\kgroup.exe VACATION.GRP *.ART *.SCP *.map *.CON *.MID *.ANM *.VOC *.DMO CARIB.EXE
  174. move /y VACATION.GRP ..\VACATION.GRP
  175. move /y *.map ..\
  176. cd ..
  177. rd /s /q vaca13ssi
  178. goto novacagrp_done
  179.  
  180. :extract
  181. echo.
  182. echo              ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
  183. echo              º Duke Caribbean: Life's A Beach Plus Installation º
  184. echo              ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÑÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
  185. echo                               ³ By Hendricks266 ³
  186. echo                               ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
  187. echo.
  188. if not exist vaca1.ips goto noips
  189. if not exist vaca2.ips goto noips
  190. if not exist vaca3.ips goto noips
  191. if not exist vaca4.ips goto noips
  192. if not exist vaca5.ips goto noips
  193. if not exist vaca6.ips goto noips
  194. if not exist vaca7.ips goto noips
  195. if not exist vacasl.ips goto noips
  196. if not exist vacadm1.ips goto noips
  197. if not exist vacadm2.ips goto noips
  198. if not exist vacadm3.ips goto noips
  199. if not exist vacadm4.ips goto noips
  200. if exist vaca*.map del /f /q vaca*.map
  201. if exist ..\vaca*.map del /f /q ..\vaca*.map
  202. utils\windows\win32\kextract.exe VACATION.GRP VACA*.MAP
  203. ren VACA1.MAP vaca1.map
  204. ren VACA2.MAP vaca2.map
  205. ren VACA3.MAP vaca3.map
  206. ren VACA4.MAP vaca4.map
  207. ren VACA5.MAP vaca5.map
  208. ren VACA6.MAP vaca6.map
  209. ren VACA7.MAP vaca7.map
  210. ren VACASL.MAP vacasl.map
  211. ren VACADM1.MAP vacadm1.map
  212. ren VACADM2.MAP vacadm2.map
  213. ren VACADM3.MAP vacadm3.map
  214. ren VACADM4.MAP vacadm4.map
  215. if exist vacapatch*.h266 del /f /q vacapatch*.h266
  216. if exist vacaflag*.h266 del /f /q vacaflag*.h266
  217. echo.
  218. echo Map patching will now begin.
  219. echo.
  220. pause
  221. echo
  222. utils\windows\win32\uips.exe a vaca1.ips vaca1.map
  223. utils\windows\win32\uips.exe a vaca2.ips vaca2.map
  224. utils\windows\win32\uips.exe a vaca3.ips vaca3.map
  225. utils\windows\win32\uips.exe a vaca4.ips vaca4.map
  226. utils\windows\win32\uips.exe a vaca5.ips vaca5.map
  227. utils\windows\win32\uips.exe a vaca6.ips vaca6.map
  228. utils\windows\win32\uips.exe a vaca7.ips vaca7.map
  229. utils\windows\win32\uips.exe a vacasl.ips vacasl.map
  230. utils\windows\win32\uips.exe a vacadm1.ips vacadm1.map
  231. utils\windows\win32\uips.exe a vacadm2.ips vacadm2.map
  232. utils\windows\win32\uips.exe a vacadm3.ips vacadm3.map
  233. utils\windows\win32\uips.exe a vacadm4.ips vacadm4.map
  234. if exist vacapatch*.h266 del /f /q vacapatch*.h266
  235. if exist vacaflag*.h266 del /f /q vacaflag*.h266
  236. del /f /q vaca1.ips
  237. del /f /q vaca2.ips
  238. del /f /q vaca3.ips
  239. del /f /q vaca4.ips
  240. del /f /q vaca5.ips
  241. del /f /q vaca6.ips
  242. del /f /q vaca7.ips
  243. del /f /q vacasl.ips
  244. del /f /q vacadm1.ips
  245. del /f /q vacadm2.ips
  246. del /f /q vacadm3.ips
  247. del /f /q vacadm4.ips
  248. echo Do not delete this file! You will be force to reinstall Vaca+ and repatch the maps. >vacaflag%vacaver%.h266
  249. attrib +r vacaflag%vacaver%.h266
  250. echo.
  251. echo Patching complete!
  252. :scanning
  253. cd ..
  254. echo.
  255. echo Scanning directory for potential problems.
  256. if exist vaca1.mhk goto mhkfound
  257. if exist vaca2.mhk goto mhkfound
  258. if exist vaca3.mhk goto mhkfound
  259. if exist vaca4.mhk goto mhkfound
  260. if exist vaca5.mhk goto mhkfound
  261. if exist vaca6.mhk goto mhkfound
  262. if exist vaca7.mhk goto mhkfound
  263. if exist vacasl.mhk goto mhkfound
  264. if exist vacadm1.mhk goto mhkfound
  265. if exist vacadm2.mhk goto mhkfound
  266. if exist vacadm3.mhk goto mhkfound
  267. if exist vacadm4.mhk goto mhkfound
  268. if exist dcava0r.mhk goto mhkfound
  269. if exist dcava1.mhk goto mhkfound
  270. if exist _vacazoo.mhk goto mhkfound
  271. :mhkfound_done
  272. if exist TILES000.ART goto artfound
  273. if exist TILES003.ART goto artfound
  274. if exist TILES005.ART goto artfound
  275. if exist TILES006.ART goto artfound
  276. if exist TILES007.ART goto artfound
  277. if exist TILES008.ART goto artfound
  278. if exist TILES009.ART goto artfound
  279. if exist TILES010.ART goto artfound
  280. if exist TILES012.ART goto artfound
  281. if exist TILES014.ART goto artfound
  282. :artfound_done
  283. if exist Vacation.con goto confound
  284. if exist VacaEDuke.con goto confound
  285. if exist VacaDefs.con goto confound
  286. if exist VacaUser.con goto confound
  287. if exist VacaDP.con goto confound
  288. if exist VacaDPCode.con goto confound
  289. if exist VacaDPXXX.con goto confound
  290. if exist VSounds.con goto confound
  291. if exist VBeachBabe.con goto confound
  292. if exist VBeachBall.con goto confound
  293. if exist VBeachBather.con goto confound
  294. if exist VDragon.con goto confound
  295. if exist VSeagull.con goto confound
  296. :confound_done
  297. echo.
  298. pause
  299. goto restart
  300.  
  301. :noips
  302. echo.
  303. echo Error: You don't have all the *.ips files in your directory.
  304. echo Aborting installation.
  305. echo Map patching is required for Vaca+ to function correctly.
  306. echo.
  307. pause
  308. goto end
  309.  
  310. :mhkfound
  311. echo.
  312. echo Problematic .mhk files have been found in your directory.
  313. echo Unless you have knowingly made a modification to Vaca's map hacks,
  314. echo the presence of these files in your EDuke32 directory will
  315. echo cause Vaca+ to function incorrectly.
  316. echo.
  317. echo vaca1.mhk
  318. echo vaca2.mhk
  319. echo vaca3.mhk
  320. echo vaca4.mhk
  321. echo vaca5.mhk
  322. echo vaca6.mhk
  323. echo vaca7.mhk
  324. echo vacasl.mhk
  325. echo vacadm1.mhk
  326. echo vacadm2.mhk
  327. echo vacadm3.mhk
  328. echo vacadm4.mhk
  329. echo dcava0r.mhk
  330. echo dcava1.mhk
  331. echo _vacazoo.mhk
  332. goto mhkfound_done
  333.  
  334. :artfound
  335. echo.
  336. echo Problematic .art files have been found in your directory.
  337. echo Unless you have knowingly made a modification to Vaca's art,
  338. echo the presence of these files in your EDuke32 directory will
  339. echo cause Vaca+ to function incorrectly.
  340. echo.
  341. echo TILES000.ART
  342. echo TILES003.ART
  343. echo TILES005.ART
  344. echo TILES006.ART
  345. echo TILES007.ART
  346. echo TILES008.ART
  347. echo TILES009.ART
  348. echo TILES010.ART
  349. echo TILES012.ART
  350. echo TILES014.ART
  351. goto artfound_done
  352.  
  353. :confound
  354. echo.
  355. echo Problematic .con files have been found in your directory.
  356. echo Unless you have knowingly made a modification to Vaca's programming,
  357. echo the presence of these files in your EDuke32 directory will
  358. echo cause Vaca+ to function incorrectly.
  359. echo.
  360. echo Vacation.con
  361. echo VacaEDuke.con
  362. echo VacaDefs.con
  363. echo VacaUser.con
  364. echo VacaDP.con
  365. echo VacaDPCode.con
  366. echo VacaDPXXX.con
  367. echo VSounds.con
  368. echo VBeachBabe.con
  369. echo VBeachBall.con
  370. echo VBeachBather.con
  371. echo VDragon.con
  372. echo VSeagull.con
  373. echo.
  374. echo IF THESE ARE THE ORIGINAL CARIBBEAN CON FILES, OR THEY COME FROM
  375. echo AN OUTDATED VERSION OF VACA+, REMOVE THEM FROM YOUR EDUKE32 DIRECTORY
  376. echo IMMEDIATELY!
  377. echo Vaca+ uses modified .con files to fix programming errors created by
  378. echo the original programmers. Due to improvements made to the levels,
  379. echo Vaca+ will have major errors if the included .con files are not used.
  380. goto confound_done
  381.  
  382. :eduke32check
  383. if exist eduke32.bat goto eduke32check_done
  384. if exist ..\eduke32.exe (
  385. cd ..
  386. goto recheck
  387. )
  388. if exist ..\..\eduke32.exe (
  389. cd ..\..
  390. goto recheck
  391. )
  392. if exist ..\..\..\eduke32.exe (
  393. cd ..\..\..
  394. goto recheck
  395. )
  396. if exist ..\eduke32.bat (
  397. cd ..
  398. goto eduke32check_done
  399. )
  400. if exist ..\..\eduke32.bat (
  401. cd ..\..
  402. goto eduke32check_done
  403. )
  404. if exist ..\..\..\eduke32.bat (
  405. cd ..\..\..
  406. goto eduke32check_done
  407. )
  408. echo Warning: You don't have EDuke32 in your directory.
  409. goto eduke32check_done
  410.  
  411. :nodir
  412. echo.
  413. echo Error: "vaca_plus" data directory not found.
  414. echo Aborting launch.
  415. echo.
  416. pause
  417. goto end
  418.  
  419. :end
  420. set hrp=
  421. set hrpu=
  422. echo.
  423. @color 07
  424. @title %ComSpec%
  425. cd %dir%
  426. @echo on
  427. goto :eof
  428.