home *** CD-ROM | disk | FTP | other *** search
/ D!Zone (Collector's Edition) / D_ZONE_CD.ISO / helps / howto.txt < prev   
Text File  |  1994-12-06  |  14KB  |  295 lines

  1. This is a post I did to explain how to put new graphics and demos
  2. in a PWAD, enjoy!
  3.  
  4. ======================================================================
  5. From: jsg8a@acadvm1.uottawa.ca (Jean-Serge Gagnon)
  6. Newsgroups: comp.sys.ibm.pc.games.action
  7. Subject: How to put new demos and grphics in PWAD files
  8. Date: 21 Apr 1994 16:29:43 GMT
  9.  
  10. Hi,
  11.     I'm the author of FOREST.WAD (get FOREST12.ZIP on many sites), and
  12. am also a beta tester of DEU. When I released FOREST 1.1, Raphael
  13. expressed to me the fact that he was unhappy that I had release a new
  14. PWAD that included new demos and graphics because DEU 5.1 will have
  15. a feature to do this and he thought that I had over-stepped my 
  16. priviledges as a beta tested and taken advantage of that feature. I
  17. assure you that I did not! (some are saying "Sure! He just wants us
  18. to beleive that so that he feels less guilty!") I will prove it to
  19. you by trying to explain how I did it in a simple language so that
  20. other can do it also. I will include BATCH files and DIR files so that
  21. you can use them as examples to do it.
  22.     I hope this will clear the fact that I DID NOT USE THE NEW FEATURE
  23. OF DEU 5.1beta TO CREATE THIS NEW WAD.
  24.  
  25. Before I begin, this is VERY IMPORTANT, WAD MASTER PUTS AN IWAD MARKER
  26. AT THE BEGINNING OF THE PWAD FILE, PLEASE, PLEASE, PLEASE, BEFORE 
  27. UPLOADING ANY NEW WADS CREATED USING IT, CHANGE THE "I" TO A "P" BEFORE
  28. WITH ANY HEX EDITOR. This is probably because it was written before 
  29. ID released information (or someone else) about the IWAD-PWAD formats.
  30.  
  31. First, you will need these files:
  32.  
  33. WT100.ZIP (Wad tools 1.0) to view the graphics in the DOOM.WAD file
  34.               and find the name of the texture you want to change.
  35.  
  36. DMGRAP10.ZIP (Doom graph 1.0) to extract and store a GIF file to/from
  37.               the DOOM.WAD file.
  38.  
  39. DMAUD11.ZIP (Doom audio 1.1) to extract and store audio files to/from
  40.               the DOOM.WAD file (I didn't do it, but you could also
  41.               include new sounds in a PWAD file)
  42.  
  43. WDMSTR05.ZIP (Wad Master 1.0) to extract the raw data from your new
  44.               levels and the modified textures or sound from the 
  45.               DOOM.WAD file.
  46.  
  47. Second, how does it all come together.
  48.    Once you have created your level with DEU (or any other editor)
  49. decide what texture you want to change, find out what it's name is in
  50. the DOOM.WAD file with WT and extract it with DMGRAPH. For example if
  51. you want to change the SP_DUDE2 texture, you will find with WT that
  52. it's name is WALL50_2, so use the command "DMGRAPH WALL50_2 -e file.gif".
  53. You will want to check the insertion point for when you put the modified
  54. graph back in with "DMGRAPH WALL50_2 -v". Once you have the GIF, do what
  55. you want, store it back in DOOM.WAD (make a copy of it to be able to
  56. put back the original in) so that you can extract the RAW file with
  57. WAD Master. 
  58.  
  59.     To use WadMaster, you need to create a reference DIR file with
  60. WADDIR. If your new map is called "NEWMAP", and we want the
  61. dir file to be NEWMAP.DIR then type:
  62. "WADDIR NEWMAP.WAD >MEWMAP.DIR". Once you have the DIR file, you must
  63. edit it so that seperate entries (levels, if you have more than one
  64. level) do not go in the same directory. Look at the first few lines
  65. without the comment), they will be like this:
  66. E1M1\                    E1M1\                   0
  67. THINGS                   THINGS                  10
  68. LINEDEFS                 LINEDEFS                952
  69.  
  70. you must add a dospath to the first column like this:
  71. E1M1\                    E1M1\                   0
  72. E1M1\THINGS              THINGS                  10
  73. E1M1\LINEDEFS            LINEDEFS                952
  74.  
  75. (make sure the column 2 starts at the same place)
  76.  
  77. Once you've done that, you can extract the raw data to dos files
  78. in a directory, so create a directory (like NEWMAP) and type the command
  79. "UPKWAD -o NEWMAP NEWMAP.DIR NEWMAP.WAD" and this will extract all
  80. the resources in the PWAD map you created to the directory NEWMAP.
  81.  
  82. OK! now let's put the modified GIF in there! Look at the order in which
  83. the DOOM.WAD directory is (do WADDIR >DOOM.DIR) so that you can put the
  84. new graphic in the proper order (it won't work otherwise). You will want 
  85. to copy the NEWMAP.DIR file to an other name, let's say NEWMAP1.DIR and
  86. edit it to add the proper references to it. WALL50_2 is in the P2 section,
  87. so you need to add the folowing lines at the end of the NEWMAP1.DIR file:
  88.  
  89. P2_START\                P2_START\               0
  90. P2_START\WALL50_2        WALL50_2                17544
  91. P2_END\                  P2_END\                 0
  92.  
  93. (notice that the DEMO1-3 are just before the E1M1 entry, so you could
  94. put the lines as they apear in DOOM.DIR just before the E1M1 line in
  95. NEWMAP1.DIR and copy any demo lmp for your PWAD to NEWMAP\DEMOx (no LMP
  96. extention). That's how I did it)
  97.  
  98. Once you've done that, create a WAD DIR file to be able to extract the
  99. raw graphic from DOOM.WAD (after storing the modified GIF, let's call
  100. it NEW50_2.GIF in DOOM.WAD with "DMGRAPH WALL50_2 -s NEW50_2.GIF"). You
  101. will also need to create an other directory, let's say GRAPHIC. So, 
  102. create the WAD DIR file like this: (let's call it GRAPHIC.DIR)
  103.  
  104. P2_START\                P2_START\               0
  105. P2_START\WALL50_2        WALL50_2                17544
  106. P2_END\                  P2_END\                 0
  107.  
  108. and type the command "UPKWAD -o GRAPHIC.DIR" (it used DOOM.WAD by default)
  109. and you will have a new file in GRAPHIC\P2_START call WALL50_2. I 
  110. copied the raw files to an other name, but you don't have to. You can
  111. just copy it like this "COPY GRAPHIC\P2_START\WALL50_2 NEWMAP\P2_START"
  112.  
  113. Now we're ready to put the new graphic and demos in a PWAD file. So
  114. type the command "PKWAD -o NEWMAP NEWMAP1.DIR TOTAL.WAD". Remember that
  115. you have to use a modified wad dir file (that's why I typre NEWMAP1.DIR
  116. instead of just NEWMAP.DIR) that includes the new files you want 
  117. included in the new PWAD file, like the DEMOs, graphic or sound
  118. resources. You can put anything there!
  119.  
  120. To finish it off, here's a copy of a series of files I used to create
  121. FOREST.WAD, I will not explain them here because you should be able
  122. to figure it out, if not, there is documentation that comes with
  123. Wad master, I figured it out, I'm sure you can.
  124.  
  125. ------------------------- getpics.bat -------------------------------
  126.  
  127. @echo off
  128. cls
  129. echo Storing new graphics in DOOM.WAD...
  130. dmgraph sky2 -s forest.gif -i 127,123 >nul
  131. dmgraph wall50_2 -s new50_2.gif -i 63,123 >nul
  132. dmgraph mwall5_1 -s new5_1.gif -i 63,123 >nul
  133. dmgraph mwall4_2 -s new4_2.gif -i 63,123 >nul
  134. dmgraph credit -s newcred.gif -i 0,0 >nul
  135. echo Unpacking new graphics to raw files...
  136. upkwad -o graph graph.dir >nul
  137. echo Putting normal graphics back in DOOM.WAD...
  138. dmgraph sky2 -s sky2.gif -i 127,123 >nul
  139. dmgraph wall50_2 -s wall50_2.gif -i 63,123 >nul
  140. dmgraph mwall5_1 -s mwall5_1.gif -i 63,123 >nul
  141. dmgraph mwall4_2 -s mwall4_2.gif -i 63,123 >nul
  142. dmgraph credit -s credit.gif -i 0,0 >nul
  143. echo Copying raw graphics to .pic files...
  144. copy graph\p2_start\sky2 newsky2.pic >nul
  145. copy graph\p2_start\wall50_2 new50_2.pic >nul
  146. copy graph\p2_start\mwall5_1 new5_1.pic >nul
  147. copy graph\p2_start\mwall4_2 new4_2.pic >nul
  148. copy graph\credit newcred.pic >nul
  149.  
  150. ------------------------- graph.dir --------------------------------
  151. # DOOM WAD FILE DIRECTORY LISTING
  152. # LINES STARTING WITH # ARE IGNORED
  153. # EACH LINE CONTAINS DOSFILE WADFILE SIZE
  154. # THIS FILE CAN BE USED TO UNPACK/PACK WAD FILES
  155. # DO NOT CHANGE THE ORDER OF THESE LINES!!!!
  156. # HOWEVER, DELETION IS OKAY
  157. CREDIT                   CREDIT                  68168
  158. P2_START\                P2_START\               0
  159. P2_START\WALL50_2        WALL50_2                17544
  160. P2_START\MWALL4_2        MWALL4_2                17544
  161. P2_START\MWALL5_1        MWALL5_1                17544
  162. P2_START\SKY2            SKY2                    65344
  163. P2_END\                  P2_END\                 0
  164. P_END\                   P_END\                  0
  165. # IN FILE doom.wad THERE ARE 10366184 bytes in 2045 FILES.
  166.  
  167. ------------------------ makejs.bat ---------------------------------
  168.