Subversion Repositories vaca_plus

Rev

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