home *** CD-ROM | disk | FTP | other *** search
/ Doom 2 Explosion / Doom2Explosion.bin / doom2exp / programs / dmedut / quickgo.bat < prev    next >
DOS Batch File  |  1994-01-26  |  6KB  |  140 lines

  1. @ECHO OFF
  2. REM Check if this program has been run before...
  3. IF NOT EXIST DOOMWAD.OLD GOTO FreshStart
  4. CLS
  5. ECHO  You have run this before so I will tidy up, if you wish, after you
  6. ECHO  have pressed a key.
  7. ECHO  .
  8. PAUSE
  9. DEL DOOM.WAD
  10. DEL THINGS.11
  11. DEL NEW.11
  12. RENAME DOOMWAD.OLD DOOM.WAD
  13. :FreshStart
  14. REM Check if doom is in directory
  15. IF NOT EXIST DOOM.WAD GOTO :NoWadFile
  16. GOTO WadFileExists
  17. :NoWadFile
  18. ECHO  Cannot Find DOOM.WAD
  19. ECHO  You need to have all this stuff in the Registered doom directory.
  20. GOTO Done
  21. :WadFileExists
  22. CLS
  23. ECHO  Welcome to the DOOM EDITING UTILITIES
  24. ECHO  .
  25. ECHO  This is a batch file that guides you through the process of
  26. ECHO  editing the doom levels.
  27. ECHO  .
  28. ECHO  For this demonstration you get to edit Episode 1 Map 1
  29. ECHO  .
  30. ECHO  This first step is to rename the old version of the DOOM.WAD File 
  31. ECHO  (A Wad file is the file that DOOM stores all its information in)
  32. ECHO  To rename the file we use the RENAME command from DOS.
  33. ECHO  ie          RENAME DOOM.WAD DOOMWAD.OLD
  34. ECHO  .
  35. ECHO  We will rename the file now after you have pressed any key...
  36. ECHO  (To quit press Control-C or Control-Break and answer Y)
  37. ECHO  .
  38. PAUSE
  39. RENAME DOOM.WAD DOOMWAD.OLD
  40. CLS
  41. ECHO  Now we use the DDIR program to extract the information about the 
  42. ECHO  things in a level to a special text file for the editor. This special
  43. ECHO  file (called a THING DATA file) is a text file describing all the 
  44. ECHO  things in the level.
  45. ECHO  .
  46. ECHO  Why do we do this?   (a pause for reflection)
  47. ECHO  .
  48. PAUSE
  49. ECHO  .
  50. ECHO  Simple. WAD files are huge. If you made changes directly to the WAD 
  51. ECHO  file and you wanted to share them, you would have to give out a huge 
  52. ECHO  file to your friends. Instead now you just give out this tiny little
  53. ECHO  Thing Data File instead.
  54. ECHO  .
  55. ECHO  To extract the things from a WAD file to the THING DATA file you would
  56. ECHO  use the following command:
  57. ECHO    DDIR  DOOMWAD.OLD  EXTRACT_THINGS  1  1  Things.11
  58. ECHO      ^       ^             ^          ^  ^     ^
  59. ECHO      !       !             !          !  !     !
  60. ECHO      !       !             !          !  !     +- Name for THING DATA file 
  61. ECHO      !       !             !          !  +------- Level of Episode
  62. ECHO      !       !             !          +---------- Episode
  63. ECHO      !       !             +--------------------- Command for manager
  64. ECHO      !       +----------------------------------- Original WAD File   
  65. ECHO      +------------------------------------------- WAD file manager
  66. ECHO  .
  67. ECHO  We will do this command after you have pressed a key
  68. PAUSE
  69. DDIR DOOMWAD.OLD EXTRACT_THINGS 1 1 Things.11
  70. PAUSE
  71. IF EXIST THINGS.11 GOTO StepThree
  72. ECHO  Oh dear, failed!!!
  73. GOTO Done
  74. :StepThree
  75. CLS
  76. ECHO  Now we use the graphical editor DEDT to edit the things. To do this
  77. ECHO  we run the command:
  78. ECHO    DEDT  DOOMWAD.OLD  1  1  Things.11  New.11
  79. ECHO      ^       ^        ^  ^      ^        ^
  80. ECHO      !       !        !  !      !        !
  81. ECHO      !       !        !  !      !        +-- Things Data File Created (output)
  82. ECHO      !       !        !  !      +----------- Original Things Data File
  83. ECHO      !       !        !  +------------------ Level of Episode
  84. ECHO      !       !        +--------------------- Episode
  85. ECHO      !       +------------------------------ Original WAD file
  86. ECHO      +-------------------------------------- The editor  (Hi Mom!)
  87. ECHO  .
  88. ECHO  After you press any key the editor will start. The keys are displayed
  89. ECHO  in the bottom left corner, messages at the top.  
  90. ECHO        Move about with Cursor keys
  91. ECHO        Press Insert to add an object.    (T to change type)
  92. ECHO        Press Delete to delete n object.  
  93. ECHO        Press E when done.
  94. ECHO  (Make sure you do actually make a change)
  95. PAUSE
  96. DEDT DOOMWAD.OLD 1 1 Things.11 New.11
  97. PAUSE
  98. IF EXIST New.11 GOTO StepFour
  99. ECHO  Oh dear, failed!!!
  100. ECHO  Chances are you either made no changes or pressed Q to quit 
  101. ECHO  without saving
  102. GOTO Done
  103. :StepFour
  104. ECHO  Okay now that you have edited the file we have to rebuild a new WAD
  105. ECHO  file containing the differences. If you wanted to give this level to
  106. ECHO  others then you would need to just give out the DDIR.EXE file and the 
  107. ECHO  NEW.11 file to the others.
  108. ECHO  .
  109. PAUSE
  110. ECHO  To rebuild a WAD file from the THING DATA file you would use the 
  111. ECHO  following command:
  112. ECHO    DDIR  DOOMWAD.OLD  INCLUDE_THINGS  1  1  New.11  DOOM.WAD
  113. ECHO      ^       ^             ^          ^  ^     ^         ^
  114. ECHO      !       !             !          !  !     !         !
  115. ECHO      !       !             !          !  !     !  The New Wade File
  116. ECHO      !       !             !          !  !     +- Altered THING DATA file 
  117. ECHO      !       !             !          !  +------- Level of Episode
  118. ECHO      !       !             !          +---------- Episode
  119. ECHO      !       !             +--------------------- Command for manager
  120. ECHO      !       +----------------------------------- Original WAD File   
  121. ECHO      +------------------------------------------- WAD file manager
  122. ECHO  .
  123. ECHO  Press a key and the command will be run (it will take a while as
  124. ECHO  the WAD file is over 10000K in size!)
  125. PAUSE
  126. ECHO  .
  127. DDIR DOOMWAD.OLD INCLUDE_THINGS 1 1 New.11 DOOM.WAD
  128. PAUSE
  129. IF EXIST DOOM.WAD GOTO StepFive
  130. ECHO  Oh dear, failed!!!
  131. GOTO Done
  132. :StepFive
  133. CLS
  134. ECHO  Now play the altered level!
  135. ECHO  .
  136. ECHO  To return Doom to its original state do the following commands:
  137. ECHO    DEL  DOOM.WAD                      (deletes the altered WAD file)
  138. ECHO    RENAME DOOMWAD.OLD DOOM.WAD        (restores original WAD file)
  139. :Done
  140.