home *** CD-ROM | disk | FTP | other *** search
/ Action Ware 12: Heretic & Hexen / actionware12.iso / acware12 / utility / hxshot10 / install.bat < prev   
DOS Batch File  |  1996-03-24  |  4KB  |  173 lines

  1. @ECHO OFF
  2. CLS
  3. ECHO Shotgun for Hexen PWAD 
  4. ECHO.
  5. ECHO Installation Program
  6. ECHO.
  7. ECHO.
  8.  
  9. IF "%1" == "" GOTO missing_param
  10. IF "%2" == "" GOTO missing_param
  11. IF "%3" == "" GOTO missing_param
  12. IF NOT EXIST %1\HEXEN.WAD GOTO nodooms
  13. IF NOT EXIST %2\%3.WAD GOTO nodooms
  14.  
  15. ECHO.
  16. ECHO Building temporary work directories...
  17. MD HXENSHOT
  18. COPY FHFX*.BMP .\HXENSHOT
  19. COPY FHMRB0.BMP .\HXENSHOT
  20. COPY BLANK.BMP .\HXENSHOT
  21. COPY ADVISOR.BMP .\HXENSHOT
  22. COPY DEUT.EXE .\HXENSHOT
  23. COPY HXENSHOT.* .\HXENSHOT
  24. DEL FHFX*.BMP
  25. DEL FHMRB0.BMP
  26. DEL BLANK.BMP
  27. DEL ADVISOR.BMP
  28. DEL DEUT.EXE
  29. DEL HXENSHOT.*
  30. CD HXENSHOT
  31. MD SPRITES
  32. MD SOUNDS
  33. MD GRAPHICS
  34.  
  35. ECHO.
  36. ECHO Extracting sprites from DOOM...
  37. DEUT -%3 %2 -bmp -get SHOTA0
  38. DEUT -%3 %2 -bmp -get SHTGA0
  39. DEUT -%3 %2 -bmp -get SHTGB0
  40. DEUT -%3 %2 -bmp -get SHTGC0
  41. REN SHOTA0.BMP WFHMA0.BMP
  42. REN SHTGA0.BMP FHMRA0.BMP
  43. REN SHTGB0.BMP FHMRC0.BMP
  44. REN SHTGC0.BMP FHMRD0.BMP
  45. COPY FHMRC0.BMP FHMRE0.BMP
  46. COPY ADVISOR.BMP .\GRAPHICS
  47. DEL ADVISOR.BMP
  48. COPY *.BMP .\SPRITES
  49. DEL *.BMP
  50. CD SPRITES
  51. COPY BLANK.BMP FHFXA1.BMP
  52. COPY BLANK.BMP FHFXB1.BMP
  53. COPY BLANK.BMP FHFXC1.BMP
  54. COPY BLANK.BMP FHFXD1.BMP
  55. COPY BLANK.BMP FHFXE1.BMP
  56. COPY BLANK.BMP FHFXF1.BMP
  57. COPY BLANK.BMP FHFXG1.BMP
  58. COPY BLANK.BMP FHFXH1.BMP
  59. COPY BLANK.BMP FHFXA8A2.BMP
  60. COPY BLANK.BMP FHFXB8B2.BMP
  61. COPY BLANK.BMP FHFXC8C2.BMP
  62. COPY BLANK.BMP FHFXD8D2.BMP
  63. COPY BLANK.BMP FHFXE8E2.BMP
  64. COPY BLANK.BMP FHFXF8F2.BMP
  65. COPY BLANK.BMP FHFXG8G2.BMP
  66. COPY BLANK.BMP FHFXH8H2.BMP
  67. COPY BLANK.BMP FHFXA7A3.BMP
  68. COPY BLANK.BMP FHFXB7B3.BMP
  69. COPY BLANK.BMP FHFXC7C3.BMP
  70. COPY BLANK.BMP FHFXD7D3.BMP
  71. COPY BLANK.BMP FHFXE7E3.BMP
  72. COPY BLANK.BMP FHFXF7F3.BMP
  73. COPY BLANK.BMP FHFXG7G3.BMP
  74. COPY BLANK.BMP FHFXH7H3.BMP
  75. COPY BLANK.BMP FHFXA6A4.BMP
  76. COPY BLANK.BMP FHFXB6B4.BMP
  77. COPY BLANK.BMP FHFXC6C4.BMP
  78. COPY BLANK.BMP FHFXD6D4.BMP
  79. COPY BLANK.BMP FHFXE6E4.BMP
  80. COPY BLANK.BMP FHFXF6F4.BMP
  81. COPY BLANK.BMP FHFXG6G4.BMP
  82. COPY BLANK.BMP FHFXH6H4.BMP
  83. COPY BLANK.BMP FHFXA5.BMP
  84. COPY BLANK.BMP FHFXB5.BMP
  85. COPY BLANK.BMP FHFXC5.BMP
  86. COPY BLANK.BMP FHFXD5.BMP
  87. COPY BLANK.BMP FHFXE5.BMP
  88. COPY BLANK.BMP FHFXF5.BMP
  89. COPY BLANK.BMP FHFXG5.BMP
  90. COPY BLANK.BMP FHFXH5.BMP
  91. COPY BLANK.BMP FHFXM0.BMP
  92. COPY BLANK.BMP FHFXN0.BMP
  93. COPY BLANK.BMP FHFXO0.BMP
  94. COPY BLANK.BMP FHFXP0.BMP
  95. COPY BLANK.BMP FHFXQ0.BMP
  96. COPY BLANK.BMP FHFXR0.BMP
  97. COPY BLANK.BMP FHFXS0.BMP
  98. COPY BLANK.BMP FHFXT0.BMP
  99. COPY BLANK.BMP FHFXU0.BMP
  100. COPY BLANK.BMP FHFXV0.BMP
  101. COPY BLANK.BMP FHFXW0.BMP
  102. DEL BLANK.BMP
  103. CD..
  104.  
  105. ECHO.
  106. ECHO Extracting sounds from DOOM...
  107. DEUT -%3 %2 -wav -get DSSHOTGN
  108. REN DSSHOTGN.WAV HAMMIS2.WAV
  109. COPY HAMMIS2.WAV HAMWAL1.WAV
  110. COPY *.WAV .\SOUNDS
  111. DEL *.WAV
  112.  
  113. ECHO.
  114. ECHO Buiding incomplete PWAD file...
  115. REN %1\HEXEN.WAD HERETIC.WAD
  116. DEUT -heretic %1 -make hxenshot.wcd %1\hxenshot.wad
  117.  
  118. ECHO.
  119. ECHO Appending HEXEN sprites to PWAD...
  120. DEUT -heretic %1 -sprites -append %1\hxenshot.wad
  121. REN %1\HERETIC.WAD HEXEN.WAD
  122.  
  123. ECHO.
  124. ECHO Copying .BAT and .TXT to %1...
  125. copy hxenshot.rmy %1\hxenshot.bat /Y
  126. copy hxenshot.txt %1\hxenshot.txt /Y
  127.  
  128. ECHO.
  129. ECHO Cleaning up...
  130. ECHO Answer yes to any questions that follow...
  131. DEL *.*
  132. CD SPRITES
  133. DEL *.*
  134. CD..
  135. RD SPRITES
  136. CD SOUNDS
  137. DEL *.*
  138. CD..
  139. RD SOUNDS
  140. CD GRAPHICS
  141. DEL *.*
  142. CD..
  143. RD GRAPHICS
  144. CD..
  145. RD HXENSHOT
  146.  
  147. ECHO.
  148. ECHO Done!
  149. ECHO.
  150. ECHO To finish cleaning, del INSTALL.BAT.
  151. ECHO.
  152. ECHO To play, go to the %1 and type "HXENSHOT"
  153. ECHO.
  154. GOTO end2
  155.  
  156. :missing_param
  157. ECHO Usage:  install x:\path\to\hexen x:\path\to\doom doomgame
  158. ECHO.
  159. ECHO         e.g.  install c:\games\hexen c:\games\doom2 doom2
  160. ECHO.
  161. GOTO end
  162.  
  163. :nodooms
  164. ECHO Either %1 and/or %2 and/or %3 are not correct!
  165. ECHO.
  166. GOTO end
  167.  
  168. :end
  169. ECHO Installation aborted.
  170. ECHO.
  171.  
  172. :end2
  173.