Subversion Repositories vaca_plus

Rev

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