Subversion Repositories vaca_plus

Rev

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