home *** CD-ROM | disk | FTP | other *** search
/ 4-Ever Doomed / 4-everdoomedcypresssoftware1994.iso / text / howto.txt < prev    next >
Text File  |  1994-04-21  |  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. @echo off
  169. cls
  170. echo Creating composite file of all missions...
  171. deu -file e2m1js.wad e2m2js.wad e2m3js.wad <makejs.key >nul
  172. echo Unpacking WAD...
  173. upkwad -o forest forest.dir forest.wad >nul
  174. echo Copying new image files...
  175. copy newsky2.pic forest\p2_start\sky2 >nul
  176. copy new50_2.pic forest\p2_start\wall50_2 >nul
  177. copy new5_1.pic forest\p2_start\mwall5_1 >nul
  178. copy new4_2.pic forest\p2_start\mwall4_2 >nul
  179. copy newcred.pic forest\credit >nul
  180. echo Copying DEMO files...
  181. copy js1.lmp forest\demo2 >nul
  182. copy js2.lmp forest\demo3 >nul
  183. copy js3.lmp forest\demo1 >nul
  184. echo Creating new WAD with DEMO files and new graphics...
  185. pkwad -o forest jsdemos.dir forest.wad >nul
  186.  
  187. --------------------- makejs.key ---------------------------------
  188. g forest.wad
  189. q
  190.  
  191. ---------------------- forest.dir --------------------------------
  192. # DOOM WAD FILE DIRECTORY LISTING
  193. # LINES STARTING WITH # ARE IGNORED
  194. # EACH LINE CONTAINS DOSFILE WADFILE SIZE
  195. # THIS FILE CAN BE USED TO UNPACK/PACK WAD FILES
  196. # DO NOT CHANGE THE ORDER OF THESE LINES!!!!
  197. # HOWEVER, DELETION IS OKAY
  198. E2M1\                    E2M1\                   0
  199. E2M1\THINGS              THINGS                  2720
  200. E2M1\LINEDEFS            LINEDEFS                5684
  201. E2M1\SIDEDEFS            SIDEDEFS                16620
  202. E2M1\VERTEXES            VERTEXES                1352
  203. E2M1\SEGS                SEGS                    6672
  204. E2M1\SSECTORS            SSECTORS                716
  205. E2M1\NODES               NODES                   4984
  206. E2M1\SECTORS             SECTORS                 2418
  207. E2M1\REJECT              REJECT                  1082
  208. E2M1\BLOCKMAP            BLOCKMAP                11942
  209. E2M2\                    E2M2\                   0
  210. E2M2\THINGS              THINGS                  2250
  211. E2M2\LINEDEFS            LINEDEFS                4956
  212. E2M2\SIDEDEFS            SIDEDEFS                14100
  213. E2M2\VERTEXES            VERTEXES                1344
  214. E2M2\SEGS                SEGS                    6372
  215. E2M2\SSECTORS            SSECTORS                744
  216. E2M2\NODES               NODES                   5180
  217. E2M2\SECTORS             SECTORS                 2002
  218. E2M2\REJECT              REJECT                  742
  219. E2M2\BLOCKMAP            BLOCKMAP                11782
  220. E2M3\                    E2M3\                   0
  221. E2M3\THINGS              THINGS                  10
  222. E2M3\LINEDEFS            LINEDEFS                3248
  223. E2M3\SIDEDEFS            SIDEDEFS                9960
  224. E2M3\VERTEXES            VERTEXES                764
  225. E2M3\SEGS                SEGS                    4104
  226. E2M3\SSECTORS            SSECTORS                472
  227. E2M3\NODES               NODES                   3276
  228. E2M3\SECTORS             SECTORS                 1378
  229. E2M3\REJECT              REJECT                  352
  230. E2M3\BLOCKMAP            BLOCKMAP                3624
  231. # IN FILE forest.wad THERE ARE 130850 bytes in 33 FILES.
  232.  
  233. ---------------------------- jsdemos.dir ---------------------------
  234. # DOOM WAD FILE DIRECTORY LISTING
  235. # LINES STARTING WITH # ARE IGNORED
  236. # EACH LINE CONTAINS DOSFILE WADFILE SIZE
  237. # THIS FILE CAN BE USED TO UNPACK/PACK WAD FILES
  238. # DO NOT CHANGE THE ORDER OF THESE LINES!!!!
  239. # HOWEVER, DELETION IS OKAY
  240. DEMO1                    DEMO1                   1000
  241. DEMO2                    DEMO2                   1000
  242. DEMO3                    DEMO3                   1000
  243. E2M1\                    E2M1\                   0
  244. E2M1\THINGS              THINGS                  2720
  245. E2M1\LINEDEFS            LINEDEFS                5684
  246. E2M1\SIDEDEFS            SIDEDEFS                16620
  247. E2M1\VERTEXES            VERTEXES                1352
  248. E2M1\SEGS                SEGS                    6672
  249. E2M1\SSECTORS            SSECTORS                716
  250. E2M1\NODES               NODES                   4984
  251. E2M1\SECTORS             SECTORS                 2418
  252. E2M1\REJECT              REJECT                  1082
  253. E2M1\BLOCKMAP            BLOCKMAP                11942
  254. E2M2\                    E2M2\                   0
  255. E2M2\THINGS              THINGS                  2250
  256. E2M2\LINEDEFS            LINEDEFS                4956
  257. E2M2\SIDEDEFS            SIDEDEFS                14100
  258. E2M2\VERTEXES            VERTEXES                1344
  259. E2M2\SEGS                SEGS                    6372
  260. E2M2\SSECTORS            SSECTORS                744
  261. E2M2\NODES               NODES                   5180
  262. E2M2\SECTORS             SECTORS                 2002
  263. E2M2\REJECT              REJECT                  742
  264. E2M2\BLOCKMAP            BLOCKMAP                11782
  265. E2M3\                    E2M3\                   0
  266. E2M3\THINGS              THINGS                  10
  267. E2M3\LINEDEFS            LINEDEFS                3248
  268. E2M3\SIDEDEFS            SIDEDEFS                9960
  269. E2M3\VERTEXES            VERTEXES                764
  270. E2M3\SEGS                SEGS                    4104
  271. E2M3\SSECTORS            SSECTORS                472
  272. E2M3\NODES               NODES                   3276
  273. E2M3\SECTORS             SECTORS                 1378
  274. E2M3\REJECT              REJECT                  352
  275. E2M3\BLOCKMAP            BLOCKMAP                3624
  276. CREDIT                   CREDIT                  68168
  277. P2_START\                P2_START\               0
  278. 2_START\WALL50_2        WALL50_2                17544
  279. 2_START\MWALL4_2        MWALL4_2                17544
  280. 2_START\MWALL5_1        MWALL5_1                17544
  281. 2_START\SKY2            SKY2                    34554
  282. 2_END\                  P2_END\                 0
  283. _END\                   P_END\                  0
  284.  IN FILE doomjs.wad THERE ARE 130850 bytes in 33 FILES.
  285. ------------------------ end -----------------------------------------
  286.  
  287. --
  288. ---
  289. Jean-Serge Gagnon                        e-mail:jsg8a@acadvm1.uottawa.ca
  290. Ottawa Univerity, Ontario                 voice:(613) 791-0785
  291. Canada    K1N 6N5                           fax:(613) 564-7180
  292. *** Get the PostScript Processing Speed Test (PPST) in /public   ***
  293. *** on gaaj.cosmos.uottawa.ca. It's a PostScript benchmark test. ***
  294.  
  295.