home *** CD-ROM | disk | FTP | other *** search
/ Shareware Compilation 11 / SharewareCD_11.zip / dos / alientc / install.bat < prev    next >
DOS Batch File  |  1994-10-18  |  5KB  |  182 lines

  1. echo OFF
  2.  
  3. rem INSTALL      for v1.666
  4. rem INSTALL 0    for v1.2
  5.  
  6.  
  7. echo.      ************************************
  8. echo.      *    ALIENS Total Conversion       *
  9. echo.      *                                  *
  10. echo.      *        by Justin Fisher          *
  11. echo.      *                                  *
  12. echo.      ************************************
  13. echo.
  14. echo.   Secret level by Richard Love
  15. echo.   New Installation by Olivier Montanuy
  16. echo.
  17. echo.   ************ Good News *************
  18. echo.   You won't need to uninstall ALIEN TC
  19. echo.   DOOM will still work as usual
  20. echo.
  21. echo.   ************ Bad News ****************
  22. echo.   Installation still requires about 2 additional megs
  23. echo.
  24. echo.   Beside DeHackEd (and DMSTR for DOOM 1.2) this install uses 
  25. echo.   DeuSF, a powerfull tool to regenerate sprite and flats PWADS. 
  26. echo.   Look for the last version of DeuTex/DeuSF on infant2.   
  27. echo.
  28. pause
  29.  
  30. echo This batch is for Registered version:
  31. if "%1%" == "0" goto vv12
  32. echo.   *** DOOM 1.666 ***
  33. goto vvend
  34. :vv12
  35. echo.    *** DOOM 1.2 ***
  36. goto vvend
  37. :vvend
  38. echo. hit CTRL-C now  if this is incorrect.
  39. pause
  40.  
  41. echo. DOOM.EXE and DOOM.WAD must be in that directory
  42.  
  43. pause
  44. goto save
  45. :missfile
  46. echo. Error: A file is Missing from the archives
  47. exit
  48. :fail
  49. echo Error: Can't Find DOOM files
  50. exit
  51.  
  52. :save
  53. if not exist DEHACKED.INI goto save2
  54. echo WARNING: existing file DEHACKED.INI could compromise
  55. echo that installation. Remove that file please.
  56. exit
  57.  
  58. :save2
  59.  
  60. if not exist DOOM.EXE goto fail
  61. if not exist DOOM.WAD goto fail
  62. echo Temporarily saving DOOM.EXE as DOOM1.EXE
  63. echo This uses about 600K of disk space
  64. pause
  65. copy DOOM.EXE DOOM1.EXE
  66.  
  67. echo Checking ALITCWAD.WAD
  68. if not exist ALITCWAD.WAD goto missfile
  69. echo Checking ALITCSND.WAD
  70. if not exist ALITCSND.WAD goto missfile
  71. echo Checking ALITCSF.WAD
  72. if not exist ALITCSF.WAD goto missfile
  73. echo Checking DEHACKED.EXE
  74. if not exist DEHACKED.EXE goto missfile
  75.  
  76.  
  77. if "%1%" == "0" goto version12
  78. rem
  79. rem V1.666 V2
  80. rem
  81. echo Checking ALITCP16.DEH
  82. if not exist ALITCP16.DEH goto missfile
  83. echo applying patch for 1.666
  84. pause
  85. Dehacked -load alitcp16.deh
  86. if not ERRORLEVEL 0             goto failp
  87. goto rename
  88. rem
  89. rem  V1.2
  90. rem
  91. :version12
  92. echo Checking ALITCP12.DEH
  93. if not exist ALITCP12.DEH goto missfile
  94. echo Applying dehached patch for DOOM 1.2
  95. pause
  96. Dehacked -load alitcp12.DEH
  97. if not ERRORLEVEL 0             goto failp
  98. echo Checking ALITCS12.DEH
  99. if not exist ALITCS12.DEH goto missfile
  100. echo applying string patch for DOOM 1.2
  101. pause
  102. DMStr alitcs12.str
  103. if not ERRORLEVEL 0             goto failp
  104. goto rename
  105.  
  106. :failp
  107. ren DOOM1.EXE DOOM.EXE
  108. echo *********
  109. echo * ERROR *
  110. echo *********
  111. echo An error occured.
  112. echo  Do you use the right DOOM version?
  113. echo  Is your DOOM version registered?
  114. echo  did you have enough disk space?
  115. exit
  116.  
  117.  
  118.  
  119. :rename
  120. echo Changing .EXE name
  121. pause
  122. if exist ALIENTC.EXE del ALIENTC.EXE
  123. ren DOOM.EXE ALIENTC.EXE
  124. ren DOOM1.EXE DOOM.EXE
  125. echo Modified DOOM.EXE is now ALIENTC.EXE
  126.  
  127. rem
  128. rem Sprite and Flat PWAD
  129. rem  install compatible 1.2 and 1.666 and maybe DOOM2
  130. rem
  131. echo Creating new sprite and flat PWAD with DeuSF
  132. echo This uses about 1.5 more meg of disk space.
  133. pause
  134. echo Checking alitcsf.wad
  135. if not exist alitcsf.wad goto missfile
  136. echo Appending sprites&flats to alitcsf.wad.
  137. echo This may take a minute or so.
  138.  
  139. rem REM those lines if you do not want to append DOOM sprites
  140. rem to alitcsf.wad
  141. rem
  142. DeuSF -app alitcsf.wad > alitcsf.log
  143. if not ERRORLEVEL 0             goto failsf
  144.  
  145. rem unREM those lines if you want to create a completely new PWAD,
  146. rem like DMADDS did.
  147. rem
  148. rem    move alitcsf.wad alitcsf2.wad
  149. rem    DeuSf -add alitcsf2.wad alitcsf.wad
  150. rem    if not ERRORLEVEL 0             goto failsf
  151.  
  152.  
  153. rem Restoration
  154. rem
  155. echo To restore AlienTC sprite file:  DeuSF -res alitcsf.wad
  156. goto fini
  157.  
  158. :failsf
  159. echo *********
  160. echo * ERROR *
  161. echo *********
  162. echo An error occured during sprite and flat generation.
  163. echo Did you have enough disk space?
  164. echo Else that could mean there was a bug in my DeuSF.EXE.
  165. echo If this is confirmed, mail me your bitter
  166. echo disapointment together with the file ALITCSF.LOG
  167. echo    Really sorry for the inconvenience.
  168. echo      O.Montanuy (montanuy@dmi.ens.fr)
  169. exit
  170.  
  171.  
  172. :fini
  173. echo. finished!
  174. echo. PWAD Files:
  175. echo.   alitcsnd.wad = sounds
  176. echo.   alitcwad.wad = levels demo graphics patches
  177. echo.   alitcsf.wad = all the sprites flats
  178. echo.
  179. echo. play with ALIENTC.EXE -file alitcsnd.wad alitcwad.wad alitcsf.wad
  180. echo. or simply type ALIEN.
  181.  
  182.