home *** CD-ROM | disk | FTP | other *** search
/ Instant Doom Levels / Instant.Doom.Levels.-.Level.Master.II.iso / WADS / DOOM1 / M_O / OTTAWAU.ZIP / CHG2OU.BAT < prev    next >
DOS Batch File  |  1995-03-20  |  6KB  |  158 lines

  1. @echo off
  2. cls
  3. if '%0'=='back2org' goto back2org
  4. if '%0'=='BACK2ORG' goto back2org
  5. if '%0'=='back2org.bat' goto back2org
  6. if '%0'=='BACK2ORG.BAT' goto back2org
  7. echo ********************************************************************
  8. echo ***              OTTAWAU.WAD ver 0.9 (pre-release)               ***
  9. echo ********************************************************************
  10. dmcheck /q s 14680064
  11. echo  
  12. if errorlevel==1 goto nospace
  13. if not exist doom.exe goto nofiles
  14. if not exist doom.wad goto nofiles
  15. if not exist ottawau.wad goto nofiles
  16. if not exist bupdate.exe goto nofiles
  17. :chg2ou
  18. dmcheck /q v 1.9
  19. echo  
  20. if not errorlevel == 2 goto go_on
  21. echo  
  22. echo ********************************************************************
  23. echo ***    Sorry, you can't use this program and PWAD on a sharewear ***
  24. echo *** copy of DOOM!                                                ***
  25. echo ********************************************************************
  26. echo  
  27. goto end
  28. :go_on
  29. if not errorlevel == 1 goto ok_1666
  30. echo  
  31. echo ********************************************************************
  32. echo ***    You do not have version 1.9 of DOOM or the files aren't   ***
  33. echo *** in their original versions. Please re-install the original   ***
  34. echo *** DOOM.WAD and DOOM.EXE files and try again!                   ***
  35. echo ********************************************************************
  36. echo  
  37. goto end
  38. :ok_1666
  39. cls
  40. echo ********************************************************************
  41. echo ***                    OTTAWAU.WAD ver 0.9                       ***
  42. echo ********************************************************************
  43. echo  
  44. echo      ╔═════════════════════════════════════════════════════════╗
  45. echo      ║     You are about to update the DOOM.EXE, DOOM.WAD and  ║
  46. echo      ║ OTTAWAU.WAD files to have the new floors, new ceilings, ║
  47. echo      ║ new monsters and changed text for the Ottawa University ║
  48. echo      ║ scenario. If this is not what you want to do, then      ║
  49. echo      ║ press [CTRL]C to abort, otherwise press [ENTER] to      ║
  50. echo      ║ continue this updating procedure.                       ║
  51. echo      ╚═════════════════════════════════════════════════════════╝
  52. pause >nul
  53. cls
  54. if exist chg2ou.bat goto ok1
  55. echo  
  56. echo ********************************************************************
  57. echo ***     Please make sure you are running chg2ou from the         ***
  58. echo *** same directory as DOOM.EXE, DOOM.WAD and OTTAWAU.WAD!        ***
  59. echo ********************************************************************
  60. echo  
  61. goto end
  62. :ok1
  63. echo One moment, updating DOOM.EXE file (10-20 seconds)...
  64. bupdate doom.exe outemp.exe d2ouexe.pch >nul
  65. if not exist outemp.exe goto error1
  66. ren doom.exe doomexe.ou
  67. ren outemp.exe doom.exe
  68. echo One moment, updating DOOM.WAD file (1-2 minutes)...
  69. bupdate doom.wad outemp.wad d2ouwad.pch >nul
  70. if not exist outemp.wad goto error2
  71. ren doom.wad doomwad.ou
  72. ren outemp.wad doom.wad
  73. echo One moment, updating OTTAWAU.WAD file (15-30 seconds)...
  74. bupdate ottawau.wad outemp.wad o2chwad.pch >nul
  75. if not exist outemp.wad goto error3
  76. ren ottawau.wad ouwad.ou
  77. ren outemp.wad ottawau.wad
  78. echo  
  79. echo  
  80. echo Changes successfully made!
  81. chgname CHG2OU BACK2ORG
  82. :back2org
  83. if not exist doomexe.ou goto noback
  84. if not exist doomwad.ou goto noback
  85. if not exist ouwad.ou goto noback
  86. cls
  87. if exist back2org.bat goto ok2
  88. echo  
  89. echo ********************************************************************
  90. echo ***     Please make sure you are running BACK2ORG from the       ***
  91. echo *** same directory as DOOM.EXE, DOOM.WAD and OTTAWAU.WAD!        ***
  92. echo ********************************************************************
  93. echo  
  94. goto end
  95. :ok2
  96. echo One moment, restoring original DOOM files...
  97. del doom.wad
  98. ren doomwad.ou doom.wad
  99. del doom.exe
  100. ren doomexe.ou doom.exe
  101. del ottawau.wad
  102. ren ouwad.ou ottawau.wad
  103. echo Files restored successfully!
  104. chgname BACK2ORG CHG2OU
  105. :nofiles
  106. echo  
  107. echo ***     Please make sure you are running this from a directory   ***
  108. echo *** with the files DOOM.EXE, DOOM.WAD, OTTAWAU.WAD and the       ***
  109. echo *** BUPDATE.EXE files. Then try again!                           ***
  110. echo ********************************************************************
  111. goto end
  112. :noback
  113. echo  
  114. echo ***     The backup files from the CHG2OU process seam to be      ***
  115. echo *** missing! Please make sure you are running this from the same ***
  116. echo *** directory from which CHG2OU was run and that the files       ***
  117. echo *** DOOMEXE.OU, DOOMWAD.OU and OUWAD.OU exist. Otherwise, you    ***
  118. echo *** will have to re-install the original DOOM 1.2 game!          ***
  119. echo ********************************************************************
  120. goto end
  121. :nospace
  122. echo ***     Oops! There isn't enough space on your hard disk to do   ***
  123. echo *** the update. You need at least 14Meg. Please correct this and ***
  124. echo *** try again!                                                   ***
  125. echo ********************************************************************
  126. goto end
  127. :error1
  128. echo  
  129. echo ********************************************************************
  130. echo ***     An error has occured trying to update the DOOM.EXE       ***
  131. echo *** file!                                                        ***
  132. goto error
  133. :error2
  134. del doom.exe
  135. ren orgdoom.exe doom.exe
  136. echo  
  137. echo ********************************************************************
  138. echo ***     An error has occured trying to update the DOOM.WAD       ***
  139. echo *** file!                                                        ***
  140. goto error
  141. :error3
  142. del doom.exe
  143. ren orgdoom.exe doom.exe
  144. del doom.wad 
  145. ren orgdoom.wad doom.wad
  146. echo  
  147. echo ********************************************************************
  148. echo ***     An error has occured trying to update the OTTAWAU.WAD    ***
  149. echo *** file!                                                        ***
  150. :error
  151. echo ********************************************************************
  152. echo ***     Please check to make sure the files are in the same      ***
  153. echo *** directory as the original DOOM.EXE and DOOM.WAD or a copy    ***
  154. echo *** of them and that there is enough free space on the disk and  ***
  155. echo *** then try again!                                              ***
  156. echo ********************************************************************
  157. :end
  158.