home *** CD-ROM | disk | FTP | other *** search
/ The Complete Doom Accessory Pack 3 / TheCompleteDoomAccessoryPackVolumeIiiCd.bin / faqs / howto.txt < prev    next >
Text File  |  1994-08-23  |  14KB  |  302 lines

  1. note: Aug 23rd, 1994:
  2.  
  3. There is a new utility called WACKER (currently beta7) that will do
  4. almost everything explained here. Check it out.
  5.  
  6. ========================== additional note 07/01/94 =====================
  7.  
  8.     When I wrote the following text, DEU 5.21 was not available yet.
  9. Keep in mind that you may be able to do all of what I describe by
  10. using only DEU 5.21 with the X, I, R and G command. All you need it
  11. to put the modified GIF file in DOOM.WAD with DMGRAPH, extract it to
  12. a raw file with DEU's X command, put the original graphic back in
  13. DOOM.WAD, load your map in DEU, the include the modified graphic with
  14. the I command, then read the graphic in the PWAD with the R command
  15. and lastly, group the two PWADs with the G command. You may include
  16. as many PWADS as you want (DEMOS too), but DEU has a limit of 12 open
  17. files at a time. You'll have to group the PWADs in seperate DEU sessions
  18. if you have more than 12.
  19.  
  20. ========================================================================
  21.  
  22.  
  23. Hi,
  24.     I'm the author of FOREST.WAD (get FORESTxx.ZIP on many sites), and
  25. am also a beta tester of DEU. When I released FOREST 1.1, I was the
  26. first (to my knowledge) to release a PWAD that included new graphics
  27. and new demos. I thought it would be nice for other DOOMers to be able
  28. to do what I did, so I will try to explain how I did it in a simple
  29. language. I will include BATCH files and DIR files so that you can
  30. use them as examples to do it.
  31.  
  32. **********
  33. Before I begin, this is VERY IMPORTANT, WAD MASTER PUTS AN IWAD MARKER
  34. AT THE BEGINNING OF THE PWAD FILE, PLEASE, PLEASE, PLEASE, BEFORE 
  35. UPLOADING ANY NEW WADS CREATED USING IT, CHANGE THE "I" TO A "P" BEFORE
  36. WITH ANY HEX EDITOR. This is probably because it was written before 
  37. ID released information (or someone else) about the IWAD-PWAD formats.
  38. **********
  39.  
  40.  
  41. You will need these files:
  42.  
  43. WT100.ZIP (Wad tools 1.0) to view the graphics in the DOOM.WAD file
  44.               and find the name of the texture you want to change.
  45.  
  46. DMGRAP10.ZIP (Doom graph 1.0) to extract and store a GIF file to/from
  47.               the DOOM.WAD file.
  48.  
  49. DMAUD11.ZIP (Doom audio 1.1) to extract and store audio files to/from
  50.               the DOOM.WAD file (I didn't do it, but you could also
  51.               include new sounds in a PWAD file)
  52.  
  53. WDMSTR05.ZIP (Wad Master 1.0) to extract the raw data from your new
  54.               levels and the modified textures or sound from the 
  55.               DOOM.WAD file.
  56.  
  57.  
  58. How does it all come together?
  59.    Once you have created your level with DEU (or any other editor)
  60. decide what texture you want to change, find out what it's name is in
  61. the DOOM.WAD file with WT and extract it with DMGRAPH. For example if
  62. you want to change the SP_DUDE2 texture, you will find with WT that
  63. it's name is WALL50_2, so use the command "DMGRAPH WALL50_2 -e file.gif".
  64. You will want to check the insertion point for when you put the modified
  65. graph back in with "DMGRAPH WALL50_2 -v". Once you have the GIF, do what
  66. you want (I used PhotoFinish to edit it), store it back in DOOM.WAD
  67. with the command "DMGRAPH WALL50_2 -s newfile.gif -i 63,123" (make a
  68. copy of it first to be able to put back the original in) so that you can
  69. extract the RAW file with WAD Master. 
  70.  
  71.     To use WadMaster, you need to create a reference DIR file with
  72. WADDIR. If your new map is called "NEWMAP", and we want the
  73. dir file to be NEWMAP.DIR then type:
  74. "WADDIR NEWMAP.WAD >MEWMAP.DIR". Once you have the DIR file, you must
  75. edit it so that seperate entries (levels, if you have more than one
  76. level) do not go in the same directory. Look at the first few lines
  77. (without the comment), they will be like this:
  78. E1M1\                    E1M1\                   0
  79. THINGS                   THINGS                  10
  80. LINEDEFS                 LINEDEFS                952
  81.  
  82. you must add a dospath to the first column like this:
  83. E1M1\                    E1M1\                   0
  84. E1M1\THINGS              THINGS                  10
  85. E1M1\LINEDEFS            LINEDEFS                952
  86.  
  87. (make sure the column 2 starts at the same place)
  88.  
  89. Once you've done that, you can extract the raw data to dos files
  90. in a directory, so create a directory (like NEWMAP) and type the command
  91. "UPKWAD -o NEWMAP NEWMAP.DIR NEWMAP.WAD" and this will extract all
  92. the resources in the PWAD map you created to the directory NEWMAP.
  93.  
  94. OK! now let's put the modified GIF in there! Look at the order in which
  95. the DOOM.WAD directory is (do WADDIR >DOOM.DIR) so that you can put the
  96. new graphic in the proper order (it won't work otherwise). You will want 
  97. to copy the NEWMAP.DIR file to an other name, let's say NEWMAP1.DIR and
  98. edit it to add the proper references to it. WALL50_2 is in the P2 section,
  99. so you need to add the folowing lines at the end of the NEWMAP1.DIR file:
  100.  
  101. P2_START\                P2_START\               0
  102. P2_START\WALL50_2        WALL50_2                17544
  103. P2_END\                  P2_END\                 0
  104.  
  105. (notice that the DEMO1-3 are just before the E1M1 entry, so you could
  106. put the lines as they apear in DOOM.DIR just before the E1M1 line in
  107. NEWMAP1.DIR and copy any demo lmp for your PWAD to NEWMAP\DEMOx (no LMP
  108. extention). That's how I did it)
  109.  
  110. Once you've done that, create a WAD DIR file to be able to extract the
  111. raw graphic from DOOM.WAD (after storing the modified GIF, let's call
  112. it NEW50_2.GIF in DOOM.WAD with "DMGRAPH WALL50_2 -s NEW50_2.GIF"). You
  113. will also need to create an other directory, let's say GRAPHIC. So, 
  114. create the WAD DIR file like this: (let's call it GRAPHIC.DIR)
  115.  
  116. P2_START\                P2_START\               0
  117. P2_START\WALL50_2        WALL50_2                17544
  118. P2_END\                  P2_END\                 0
  119.  
  120. and type the command "UPKWAD -o GRAPHIC.DIR" (it used DOOM.WAD by default)
  121. and you will have a new file in GRAPHIC\P2_START call WALL50_2. I 
  122. copied the raw files to an other name, but you don't have to. You can
  123. just copy it like this "COPY GRAPHIC\P2_START\WALL50_2 NEWMAP\P2_START"
  124.  
  125. Now we're ready to put the new graphic and demos in a PWAD file. So
  126. type the command "PKWAD -o NEWMAP NEWMAP1.DIR TOTAL.WAD". Remember that
  127. you have to use a modified wad dir file (that's why I typre NEWMAP1.DIR
  128. instead of just NEWMAP.DIR) that includes the new files you want 
  129. included in the new PWAD file, like the DEMOs, graphic or sound
  130. resources. You can put anything there!
  131.  
  132. To finish it off, here's a copy of a series of files I used to create
  133. FOREST.WAD, I will not explain them here because you should be able
  134. to figure it out, if not, there is documentation that comes with
  135. Wad master, I figured it out, I'm sure you can.
  136.  
  137. ------------------------- getpics.bat -------------------------------
  138.  
  139. @echo off
  140. cls
  141. echo Storing new graphics in DOOM.WAD...
  142. dmgraph sky2 -s forest.gif -i 127,123 >nul
  143. dmgraph wall50_2 -s new50_2.gif -i 63,123 >nul
  144. dmgraph mwall5_1 -s new5_1.gif -i 63,123 >nul
  145. dmgraph mwall4_2 -s new4_2.gif -i 63,123 >nul
  146. dmgraph credit -s newcred.gif -i 0,0 >nul
  147. echo Unpacking new graphics to raw files...
  148. upkwad -o graph graph.dir >nul
  149. echo Putting normal graphics back in DOOM.WAD...
  150. dmgraph sky2 -s sky2.gif -i 127,123 >nul
  151. dmgraph wall50_2 -s wall50_2.gif -i 63,123 >nul
  152. dmgraph mwall5_1 -s mwall5_1.gif -i 63,123 >nul
  153. dmgraph mwall4_2 -s mwall4_2.gif -i 63,123 >nul
  154. dmgraph credit -s credit.gif -i 0,0 >nul
  155. echo Copying raw graphics to .pic files...
  156. copy graph\p2_start\sky2 newsky2.pic >nul
  157. copy graph\p2_start\wall50_2 new50_2.pic >nul
  158. copy graph\p2_start\mwall5_1 new5_1.pic >nul
  159. copy graph\p2_start\mwall4_2 new4_2.pic >nul
  160. copy graph\credit newcred.pic >nul
  161.  
  162. ------------------------- graph.dir --------------------------------
  163. # DOOM WAD FILE DIRECTORY LISTING
  164. # LINES STARTING WITH # ARE IGNORED
  165. # EACH LINE CONTAINS DOSFILE WADFILE SIZE
  166. # THIS FILE CAN BE USED TO UNPACK/PACK WAD FILES
  167. # DO NOT CHANGE THE ORDER OF THESE LINES!!!!
  168. # HOWEVER, DELETION IS OKAY
  169. CREDIT                   CREDIT                  68168
  170. P2_START\                P2_START\               0
  171. P2_START\WALL50_2        WALL50_2                17544
  172. P2_START\MWALL4_2        MWALL4_2                17544
  173. P2_START\MWALL5_1        MWALL5_1                17544
  174. P2_START\SKY2            SKY2                    65344
  175. P2_END\                  P2_END\                 0
  176. P_END\                   P_END\                  0
  177. # IN FILE doom.wad THERE ARE 10366184 bytes in 2045 FILES.
  178.  
  179. ------------------------ makejs.bat ---------------------------------
  180. @echo off
  181. cls
  182. echo Creating composite file of all missions...
  183. deu -file e2m1js.wad e2m2js.wad e2m3js.wad <makejs.key >nul
  184. echo Unpacking WAD...
  185. upkwad -o forest forest.dir forest.wad >nul
  186. echo Copying new image files...
  187. copy newsky2.pic forest\p2_start\sky2 >nul
  188. copy new50_2.pic forest\p2_start\wall50_2 >nul
  189. copy new5_1.pic forest\p2_start\mwall5_1 >nul
  190. copy new4_2.pic forest\p2_start\mwall4_2 >nul
  191. copy newcred.pic forest\credit >nul
  192. echo Copying DEMO files...
  193. copy js1.lmp forest\demo2 >nul
  194. copy js2.lmp forest\demo3 >nul
  195. copy js3.lmp forest\demo1 >nul
  196. echo Creating new WAD with DEMO files and new graphics...
  197. pkwad -o forest jsdemos.dir forest.wad >nul
  198.  
  199. --------------------- makejs.key ---------------------------------
  200. g forest.wad
  201. q
  202.  
  203. ---------------------- forest.dir --------------------------------
  204. # DOOM WAD FILE DIRECTORY LISTING
  205. # LINES STARTING WITH # ARE IGNORED
  206. # EACH LINE CONTAINS DOSFILE WADFILE SIZE
  207. # THIS FILE CAN BE USED TO UNPACK/PACK WAD FILES
  208. # DO NOT CHANGE THE ORDER OF THESE LINES!!!!
  209. # HOWEVER, DELETION IS OKAY
  210. E2M1\                    E2M1\                   0
  211. E2M1\THINGS              THINGS                  2720
  212. E2M1\LINEDEFS            LINEDEFS                5684
  213. E2M1\SIDEDEFS            SIDEDEFS                16620
  214. E2M1\VERTEXES            VERTEXES                1352
  215. E2M1\SEGS                SEGS                    6672
  216. E2M1\SSECTORS            SSECTORS                716
  217. E2M1\NODES               NODES                   4984
  218. E2M1\SECTORS             SECTORS                 2418
  219. E2M1\REJECT              REJECT                  1082
  220. E2M1\BLOCKMAP            BLOCKMAP                11942
  221. E2M2\                    E2M2\                   0
  222. E2M2\THINGS              THINGS                  2250
  223. E2M2\LINEDEFS            LINEDEFS                4956
  224. E2M2\SIDEDEFS            SIDEDEFS                14100
  225. E2M2\VERTEXES            VERTEXES                1344
  226. E2M2\SEGS                SEGS                    6372
  227. E2M2\SSECTORS            SSECTORS                744
  228. E2M2\NODES               NODES                   5180
  229. E2M2\SECTORS             SECTORS                 2002
  230. E2M2\REJECT              REJECT                  742
  231. E2M2\BLOCKMAP            BLOCKMAP                11782
  232. E2M3\                    E2M3\                   0
  233. E2M3\THINGS              THINGS                  10
  234. E2M3\LINEDEFS            LINEDEFS                3248
  235. E2M3\SIDEDEFS            SIDEDEFS                9960
  236. E2M3\VERTEXES            VERTEXES                764
  237. E2M3\SEGS                SEGS                    4104
  238. E2M3\SSECTORS            SSECTORS                472
  239. E2M3\NODES               NODES                   3276
  240. E2M3\SECTORS             SECTORS                 1378
  241. E2M3\REJECT              REJECT                  352
  242. E2M3\BLOCKMAP            BLOCKMAP                3624
  243. # IN FILE forest.wad THERE ARE 130850 bytes in 33 FILES.
  244.  
  245. ---------------------------- jsdemos.dir ---------------------------
  246. # DOOM WAD FILE DIRECTORY LISTING
  247. # LINES STARTING WITH # ARE IGNORED
  248. # EACH LINE CONTAINS DOSFILE WADFILE SIZE
  249. # THIS FILE CAN BE USED TO UNPACK/PACK WAD FILES
  250. # DO NOT CHANGE THE ORDER OF THESE LINES!!!!
  251. # HOWEVER, DELETION IS OKAY
  252. DEMO1                    DEMO1                   1000
  253. DEMO2                    DEMO2                   1000
  254. DEMO3                    DEMO3                   1000
  255. E2M1\                    E2M1\                   0
  256. E2M1\THINGS              THINGS                  2720
  257. E2M1\LINEDEFS            LINEDEFS                5684
  258. E2M1\SIDEDEFS            SIDEDEFS                16620
  259. E2M1\VERTEXES            VERTEXES                1352
  260. E2M1\SEGS                SEGS                    6672
  261. E2M1\SSECTORS            SSECTORS                716
  262. E2M1\NODES               NODES                   4984
  263. E2M1\SECTORS             SECTORS                 2418
  264. E2M1\REJECT              REJECT                  1082
  265. E2M1\BLOCKMAP            BLOCKMAP                11942
  266. E2M2\                    E2M2\                   0
  267. E2M2\THINGS              THINGS                  2250
  268. E2M2\LINEDEFS            LINEDEFS                4956
  269. E2M2\SIDEDEFS            SIDEDEFS                14100
  270. E2M2\VERTEXES            VERTEXES                1344
  271. E2M2\SEGS                SEGS                    6372
  272. E2M2\SSECTORS            SSECTORS                744
  273. E2M2\NODES               NODES                   5180
  274. E2M2\SECTORS             SECTORS                 2002
  275. E2M2\REJECT              REJECT                  742
  276. E2M2\BLOCKMAP            BLOCKMAP                11782
  277. E2M3\                    E2M3\                   0
  278. E2M3\THINGS              THINGS                  10
  279. E2M3\LINEDEFS            LINEDEFS                3248
  280. E2M3\SIDEDEFS            SIDEDEFS                9960
  281. E2M3\VERTEXES            VERTEXES                764
  282. E2M3\SEGS                SEGS                    4104
  283. E2M3\SSECTORS            SSECTORS                472
  284. E2M3\NODES               NODES                   3276
  285. E2M3\SECTORS             SECTORS                 1378
  286. E2M3\REJECT              REJECT                  352
  287. E2M3\BLOCKMAP            BLOCKMAP                3624
  288. CREDIT                   CREDIT                  68168
  289. P2_START\                P2_START\               0
  290. 2_START\WALL50_2        WALL50_2                17544
  291. 2_START\MWALL4_2        MWALL4_2                17544
  292. 2_START\MWALL5_1        MWALL5_1                17544
  293. 2_START\SKY2            SKY2                    34554
  294. 2_END\                  P2_END\                 0
  295. _END\                   P_END\                  0
  296.  IN FILE doomjs.wad THERE ARE 130850 bytes in 33 FILES.
  297.  
  298.  
  299.  
  300.  
  301.  
  302.