home *** CD-ROM | disk | FTP | other *** search
/ MegaDoom Add-On 3 / MEGADOOM3.iso / dm1wads / tutor4 / tutor.txt next >
Text File  |  1994-10-26  |  24KB  |  553 lines

  1. TUTOR.TXT, a DEU Tutorial by Jeff Cochran
  2.  
  3. Additional files include:
  4.  
  5.         TUTOR1.WAD
  6.         TUTOR2.WAD
  7.         TUTOR3.WAD
  8.         TUTOR4.WAD
  9.  
  10. All files in this archive are totally free, and delivered into
  11. the public domain by their author, Jeff Cochran.  This is a
  12. supplementary help file for using DEU, and has no connection with
  13. the authors of DEU, or id Software.  Any trademarks or copyrights
  14. mentioned in here are the property of their respectful owners.  As
  15. usual, there is no warranty, express or implied in this material, use
  16. it at your own risk.  Do not use your original DOOM.WAD file, even
  17. nothing in here should damage it (Basically, use your head, man!)
  18.  
  19. ------------------------------------------------------------------
  20.  
  21. This document is a step-by-step tutorial to get you acquainted with
  22. Doom Editor Utilities (DEU) version 5.  These are the techniques it
  23. took me about eight or ten hours to figure out, and I hope I save
  24. you some time.  If you follow these TO THE LETTER, you *should* get
  25. the same results.  The tutorial will start you with creating a
  26. basic level of two sectors, then move to creating a door with door
  27. frame, another sector beyond that (you gotta have something to go
  28. through the door into...), and eventually working with light
  29. levels, placing things and matching textures.  If you're really
  30. good little boys and girls, I might continue the series with
  31. building lifts, stairs and teleporters.
  32.  
  33. First off, create a directory exclusively for DEU, unzip it into
  34. that directory, and then copy everything from your DOOM directory
  35. into it (No, you don't need it all, but you need a lot of it and I
  36. haven't got the space to list the files you do need...).  Also copy
  37. the .WAD files that were with these docs (TUTOR1.WAD to TUTOR4.WAD)
  38. into the DEU directory.  If you don't know how to copy these files
  39. around, grab a copy of DOS for Dummies by Dan Gookin and go sit by
  40. the window and read it.  If you're working under Windows or on a
  41. Mac, go sit by the window and have a cookie.
  42.  
  43. Start DEU by typing:
  44.  
  45.      DEU [ENTER]
  46.  
  47. At the prompt on the screen (yes DEU is running...), type:
  48.  
  49.      C 1 1 [ENTER]  (There are spaces between the C and 1's)
  50.  
  51. This starts you off with a new level (Specifically Episode 1, Level
  52. 1) and a completely blank canvas to paint your DEU masterpiece. Now
  53. press the + key (that's the plus sign) until you hear a beep.  This
  54. puts DEU in maximum magnification, for what we're going to create
  55. it's a pretty good size to work at.  Press the G key five times to
  56. give yourself a grid that DEU will snap to, it'll keep your rooms
  57. neat and square.  Each of these squares is a multiple of four, and
  58. all the textures in DEU are also measured in multiples of four. 
  59. This makes it easier to match textures later.
  60.  
  61. Now press the V key to put yourself into Vertice mode.  Move the
  62. mouse pointer to the top left of the screen (I'll be using cardinal
  63. directions like North, South, etc from now on, this is the NW
  64. corner area) about 3 boxes down from the top.  Press the INSERT key
  65. and a vertice will appear.  (It looks like an X in a box...).  Move
  66. the mouse pointer 16 squares (yes, count them, it's important) to
  67. the east, and press INSERT again.  Then move 16 squares south,
  68. press INSERT, and 16 more back to the west and press INSERT a
  69. fourth time.  You now have four vertices on the screen in a square,
  70. 16 boxes to a side.  Like this:
  71.  
  72.  
  73.  
  74.           X                   X
  75.  
  76.  
  77.  
  78.  
  79.  
  80.           X                   X
  81.  
  82. (Or thereabouts, depending on your printer...).  I'll number these
  83. as 1 - NW, 2 - NE, 3 - SE, and 4 - SW.  Now click on the vertices
  84. with the left mouse button in this order:
  85.  
  86.      1, 2, 3, 4  (NW, NE, SE, SW)
  87.  
  88. Once these are highlighted (In that order!), press INSERT and DEU
  89. will create three Linedefs between them.  You'll notice lines
  90. sticking out of one of the sides of each linedef, sorta like this:
  91.  
  92.      X--------------------X
  93.                |
  94.                |
  95.                |
  96.  
  97. (At least if your printer is handling this file...).  These lines
  98. mark the First Sidedef of each linedef.  These are *extremely*
  99. important, so pay attention to them.  For now, they should all
  100. point inward (if not, reboot the system and start at the beginning
  101. again, you *have* to get this down).
  102.  
  103. Now, press V to get to Vertice mode again, highlight vertices 4 and
  104. 1 (In that order - SW then NW) by clicking with the left mouse
  105. button (last time I tell you how to highlight, from now on when you
  106. read "highlight" you'll automatically click with the left mouse
  107. button).  Now press INSERT and a fourth linedef will be created,
  108. with the first sidedef pointing inward.  This is why you click on
  109. the vertices in the right order, so the linedefs are in the right
  110. order.  Now highlight each linedef (all the first sidedefs will
  111. show up) and press INSERT again.  You've just created your first
  112. sector!
  113.  
  114. Now we need a second sector (a one sector level is pretty boring
  115. and may not work...), so press V to get back to Vertice mode.Count
  116. sixteen squares to the east of vertice 2 (NE) and put your cursor
  117. there and press INSERT.  Now count south sixteen squares and INSERT
  118. another vertice.  Let's call these 5 and 6, thusly:
  119.  
  120.  
  121.      1                      2                    5
  122.      X----------------------X                    X
  123.      |                      |
  124.      |                      |
  125.      |                      |
  126.      |                      |
  127.      |                      |
  128.      |                      |
  129.      X----------------------X                    X
  130.      4                      3                    6
  131.  
  132.  
  133. No click on vertices 2, 5, 6, and 3, in that order.  Press INSERT
  134. to create three new linedefs, and while they are highlighted,
  135. position the mouse pointer over the linedef that completes the new
  136. sector, already running from vertice 2 to vertice 3.  When all four
  137. are highlighted, press INSERT to create a new sector.  Press L to
  138. go back to Linedef mode again, highlight that same linedef from 2
  139. to 3 again, and press ENTER to edit it.  Select Add Second Sidedef,
  140. and you'll have a pass-through line created automatically for you. 
  141. When this line is highlighted, you should notice in the display
  142. below that the linedef is 2 Sided  (There's a ------2s--- in the
  143. flags section) and also is passable (It's not marked Impassable in
  144. the flags area, if you highlight another linedef on the outside
  145. walls it'll show -----------Im in the flags area for Impassable).
  146.  
  147. At this point, if you press S to go to Sector mode, you'll see two
  148. sectors highlightable as Sector 0 and Sector 1.  If sector 1 (The
  149. eastern one) doesn't light or won't light fully (all four linedefs
  150. turn yellow), it may simply be a problem with DEU.  The sector
  151. really exists, but DEU hasn't caught on yet.  The way to correct
  152. this is to press Q now, for quit and save, select E1L1.WAD as the
  153. name (default), and press Y to recalculate the nodes.  If there are
  154. no beeps or warnings, press E 1 1 (Those are spaces...) at the
  155. prompt, and you'll be back editing the level you created.  Press +
  156. until it beeps, the G five times and you'll be about where you
  157. started.
  158.  
  159. Let's take a look at your creation.  Press T to go to Thing mode,
  160. move the cursor somewhere in the NW corner of the first sector you
  161. created (sector 0), and press INSERT to create a new thing.  With
  162. it highlighted, press ENTER to edit it, then select Type, Player,
  163. Player 1 Start and you have a spot to beam into your new level. 
  164. Press Q to quit and save, answer with the name E1L1.WAD if it asks,
  165. as well as Y to rebuild nodes if it asks.  Let's load your level
  166. and play it (boring as it is...)
  167.  
  168. Press Q to quit DEU, then type:
  169.  
  170.           DOOM -File E1L1.WAD  [ENTER]
  171.  
  172. Doom will run after it announces that this is a modified .WAD file,
  173. select Episode 1, and choose Hurt Me Plenty (we haven't gotten into
  174. levels of play and there's no enemies yet so it really doesn't
  175. matter...).  When the game starts, you'll be in a smallish room,
  176. facing the long end, and you can move around and look at it.  At
  177. this point you won't even see the ceiling (it's there, just really
  178. high...), but as long as you did everything correctly it'll look
  179. fine.  If it doesn't run, doesn't look right, or DEU gave you an
  180. error when you chose Q to quit editing and saved your level, it's
  181. because either you didn't get the linedefs bound to the right
  182. sector, or somehow you managed to get no texture on a linedef or a
  183. 2 sided linedef where there's only one side.  If this isn't a
  184. rectangular room that you can look around and see no errors, go
  185. back to the start and try it again.  There are *NO* bugs in DEU
  186. that create this, only incorrect use of the editor.  Your level
  187. should match (or at least be close to) the TUTOR1.WAD file included
  188. with this tutorial.
  189.  
  190. Now, on to more fun...
  191.  
  192. What good is a level with two sectors comprising one room with four
  193. walls, a ceiling and a floor?  Not much.  Heck, we at least need a
  194. door!
  195.  
  196. First, fire up DEU again and at the prompt type:
  197.  
  198.      R E1L1.WAD  [ENTER]
  199.  
  200. to load your level into DEU for more editing.  Then type:
  201.  
  202.      E 1 1  [ENTER]
  203.  
  204. to edit your level.  Press the + key until you hear a beep and are
  205. at maximum magnification, and then press G five times to bring your
  206. grid back up (when you press the + sign, the magnification centers
  207. on your mouse cursor, so put it over your map where you want to
  208. be).
  209.  
  210. We're going to move quicker through the vertices, linedef and
  211. sector creation, if you paid attention through the first part you
  212. shouldn't have any trouble.  We're going to create a door between
  213. this room and the next, complete with a recessed doorway, and we'll
  214. need to create four more sectors to do it.
  215.  
  216. First we need a starting point, and while we could make the door
  217. the whole width of the wall, that's an awfully big door.  Let's
  218. break the wall down some first.  We'll use the following line
  219. diagram for reference:
  220.  
  221.      1         A         2         B        3
  222.      X-------------------X------------------X      
  223.      |                   |                  |      
  224.      |                   |                  |        
  225.      |                   |                  |      
  226.      | F                 | G                | C    
  227.      |                   |                  |      
  228.      |                   |                  |        
  229.      |                   |                  |          
  230.      |                   |                  |      
  231.      X-------------------X------------------X      
  232.      6        E          5         D        4
  233.  
  234. First position your cursor over the easternmost linedef (C) and
  235. press L to go into Linedef mode.  With linedef C still highlighted,
  236. press [F10], then [4] to split the linedef.  Select the southern
  237. half of this split, like this:
  238.  
  239.  
  240.      X
  241.      |
  242.      |  C
  243.      |
  244.      |
  245.      X
  246.      |
  247.      |  H   <--  This one!
  248.      |
  249.      |
  250.      X
  251.  
  252. With that line highlighted, press [F10] and [4] again, to split it
  253. again, thusly:
  254.  
  255.  
  256.      X
  257.      |
  258.      |  C
  259.      |
  260.      |
  261.      X
  262.      |  H
  263.      |  
  264.      X
  265.      |
  266.      |  I
  267.      X
  268.  
  269. You're going to use linedef H as your door, and if you did
  270. everything right you should have an 8 box long C, and a four box H
  271. and I.  If not, try it again.
  272.  
  273. Now press V for Vertice mode, and INSERT a new vertice one square
  274. east from the northern vertice of H, and another one, one square
  275. east of the southernmost vertice of H.  Like this:
  276.  
  277.      X
  278.      |
  279.      |  
  280.      |
  281.      |
  282.    1 X  X 2
  283.      |  
  284.      |  
  285.    4 X  X 3
  286.      |
  287.      |  
  288.      X
  289.  
  290. Click on the vertices in this order:  1, 2, 3, 4, then press INSERT
  291. to create the new linedefs.  With those linedefs still highlighted,
  292. position the cursor over the fourth linedef of this new sector (H
  293. a couple diagrams ago...) and press INSERT again to create the new
  294. sector.  Now repeat this process twice more to create a pattern
  295. like this:
  296.  
  297.  
  298.      X
  299.      |
  300.      |  
  301.      |
  302.      |
  303.      X--X--X--X 
  304.      |  |  |  |
  305.      |  |  |  |
  306.      X--X--X--X 
  307.      |
  308.      |  
  309.      X
  310.  
  311. (God it's tough to draw with these characters...).  Once you've got
  312. those down, create another 16 x 16 square sector on the east end of
  313. this, with the vertices like this:
  314.  
  315.  
  316.               2                3
  317.      X        X----------------X
  318.      |        |                |
  319.      |        |                |
  320.      |        |                |
  321.      |        |                |
  322.      X--X--X--X 1              |
  323.      |  |  |  |                |
  324.      |  |  |  |                |
  325.      X--X--X--X 6              |
  326.      |        |                |
  327.      |        |                |
  328.      X        X----------------X
  329.               5                4
  330.  
  331. Make sure you click on the vertices in a clockwise direction,
  332. starting with the vertice shared by the last sector, and you'll
  333. always get the first sidedef indicators pointing inward.  The last
  334. sector should have the vertices clicked on in numerical order (1,
  335. 2, 3, 4, 5, 6) to create the linedefs and then the sector.  We now
  336. have the basis for the door and doorway.  But first let's alter
  337. some sectors.
  338.  
  339. Consider the sectors from left to right (west to east) as 0, 1, 2,
  340. 3, 4, and 5.  (If you press S to go to sector mode, as you
  341. highlight each, you'll see the sector number in the information
  342. box.  It should match this order.)  To highlight a sector, or a
  343. linedef or vertice, just position the cursor over it.  If you're
  344. having strange problems, remember that clicking on an item will
  345. keep it highlighted until you click on it again, or change modes. 
  346. To un-highlight everything you've been working on just change modes
  347. and then back again.  Leaving a stray linedef highlighted while
  348. you're changing another changes both, something you don't usually
  349. want.
  350.  
  351. Okay, so you've got the sectors like this:
  352.  
  353.  
  354.    ----------------------        ------------
  355.    |         |          |        |          |
  356.    |         |          |        |          |
  357.    |         |          |        |          |
  358.    |         |          |--|--|--|          |
  359.    |         |          |  |  |  |          |
  360.    |         |          |--|--|--|          |
  361.    |         |          |        |          |
  362.    ----------------------        ------------
  363.        0          1       2  3  4     5
  364.  
  365. Press S to get into Sector mode, then highlight sector 0.  Press
  366. ENTER to edit the sector, then choose Ceiling Height and set it to
  367. 128.  (All the measurements in DEU are in multiples of four,
  368. remember?  And most of the patterns are 8, 16, 64 or 128 high
  369. and/or wide.  Therefor, 128 high ceilings are a decent looking
  370. ceiling level.)  Do the same for sectors 1 and 5.  The set the
  371. ceiling height for sectors 2 and 4 at 85 (not a multiple of four,
  372. but looks right when you're done...), and sector 3 at 0.  That's
  373. right, ZERO, after all, when the door (a door is a sector too, and
  374. sector 3 is our door...) is closed the ceiling and floor are the
  375. same height.  Now let's take a look at just the smaller section
  376. where the doorway is.  Press L for Linedef mode and we'll designate
  377. the linedefs as so:
  378.  
  379.  
  380.    |    5          6         7     |
  381.    |-------------------------------|
  382.    |         |          |          |
  383.    |         |          |          |
  384.    |         |          |          |
  385.    | 1       | 2        | 3        | 4
  386.    |         |          |          |
  387.    |         |          |          |
  388.    |         |          |          |
  389.    |-------------------------------|
  390.    |    8          9         10    |
  391.  
  392. Select linedef #1 and press enter to edit it.  Select Edit First
  393. Sidedef, and then Upper Texture, and type in STARTAN3.  Select
  394. linedef 4 and set the Second Sidedef, Upper Texture to STARTAN3 as
  395. well.  These are the textures that appear above the doorway, the
  396. lower texture is left as -, or none, so that you can see into the
  397. doorway.
  398.  
  399. The first sidedef indicator for line 1 should face west, as with
  400. line 2.  Line 3 and 4 also have the first sidedef currently facing
  401. west, and line 4 will stay that way, but we want line 3 to have the
  402. first sidedef facing east (it's the eastern face of our door sector
  403. and if the first linedef doesn't face out, then the door can't
  404. open).  Highlight line 3 and press [F10], then press [5] to flip
  405. the linedefs.  Keep line 3 highlighted, and press [ENTER] to edit
  406. the linedef, then edit linedef, type, doors, and select 1 - DR Open
  407. Door.  While line 3 is still highlighted, press [ENTER] again,
  408. choose edit first sidedef, and set the upper texture to BIGDOOR2. 
  409. Now select line 2, and go through the same steps for it, setting
  410. its type as 1 - DR Open Door, and its upper texture for first
  411. sidedef as BIGDOOR2.  (You can set both sides of a door to be any
  412. texture, so a hidden door on one side could be obvious on the
  413. other, but usually you'll want the same texture on both sides.)  On
  414. both lines 2 and 3, the second sidedef should have a texture of -,
  415. or no texture at all.
  416.  
  417. Lines 6 and 9 are the door tracks, so let's set them as such. 
  418. Highlight line 6 and press [ENTER].  Select edit first sidedef, and
  419. set the texture to DOORTRAK.  The highlight the line, press [ENTER]
  420. and choose edit linedef.  Choose flags and set the flags as Im for
  421. impassable and Lo for lower texture unpegged.  This will keep the
  422. door tracks from moving up and down with the door.  Pay attention
  423. to the flags, they are actually toggles and each time you choose it
  424. you will flip the state of that flag.  If you choose Impassable
  425. when the flag is already set, that linedef becomes passable. 
  426. Generally you'll want a linedef that's passable to be 2 sided also,
  427. and that requires a sector on the other side.  Just having one
  428. linedef flag off can really screw up a level, as can not having a
  429. texture where one is needed.
  430.  
  431. For now, let's save this level by pressing Q, then choosing
  432. E1L1.WAD for the name and pressing Y to rebuild the nodes.  If all
  433. is well, there will be no errors, if you get one, press E 1 1
  434. [ENTER] to re-edit the level, and check every linedef flag, sidedef
  435. texture and linedef type and make sure they are as we wanted them. 
  436. Believe me, it'll all compile with no errors if it's right.
  437.  
  438. Exit DEU by typing Q, and then load your level by typing:
  439.  
  440.      DOOM -FILE E1L1.WAD  [ENTER]
  441.  
  442. Select your settings, start the level and go open your new door. 
  443. Your level should look like the file TUTOR2.WAD included with this
  444. tutorial file.
  445.  
  446. By now, you've noticed that your level is pretty complete as far as
  447. the small section we're going to make, but it doesn't look quite
  448. right.  Let's go in and clean it up, basically "professionalize" it
  449. and not be stuck with a level that's not ready for prime time. 
  450. First off, let's get rid of the default wall textures.
  451.  
  452. Start DEU, load the level by pressing:
  453.  
  454.      R E1L1.WAD  [ENTER]
  455.  
  456. and then press E 1 1 [ENTER] to edit your level.  Press the + key
  457. until the beep, and again bring up the grid by pressing G five
  458. times.
  459.  
  460. We'll identify your lines and sectors like this:
  461.  
  462.  
  463.         2         5                   20
  464.    ----------------------        ------------
  465.    |         |          |        |          |
  466.    |         |        6 |        | 19       |
  467.    |         |          |10 13 16|          |
  468. 1  |         | 3        |--|--|--|          | 21
  469.    |         |        7 |  |12|15| 18       |
  470.    |         |          |--|--|--|          |
  471.    |         |        8 |11 14 17| 23       |
  472.    ----------------------        ------------
  473.         4         9                   22
  474.  
  475.              |          |  |  |  |
  476. Sector  0    |     1    | 2| 3| 4|    5
  477.  
  478. To start, click the left mouse button on lines 1, 2, 5, 6, 19, 20,
  479. 21, 22, 23, 8, 9, and 4.  When they are all highlighted, press
  480. [ENTER] and edit the first sidedef to have the texture STONE2. 
  481. Press S to go to sector mode, then L to get back to line mode and
  482. the lines won't be highlighted (easier than re-clicking them to un-
  483. highlight them...).
  484.  
  485. Now highlight line 7, and edit the upper texture of sidedef 1 to be
  486. STONE2.  Highlight line 18 and edit the second sidedef to have an
  487. upper texture of STONE2 as well.  Now your rooms are all stone
  488. block, but let's change the door (BIGDOOR2 looked chopped off,
  489. remember?) and the doorway look.
  490.  
  491. Select lines 10, 11, 16, and 17 and edit their first sidedef to a
  492. texture of LITE3.  Then select each side of the door, line 12 and
  493. line 15, and edit the upper texture to be DOORHI.  Remember to un-
  494. highlight any lines before you select the new batch, the easiest
  495. way is to switch out of Line mode and back in again (Press S then
  496. L).
  497.  
  498. Now switch to sector mode and highlight sector 0 (the westernmost
  499. sector) and press [ENTER].  Set the light level in this sector to
  500. 130.  Now do the same for sectors 1 and 5 (the other big sectors). 
  501. Highlight sector 3 (the door itself) and edit the ceiling and floor
  502. textures to both be FLAT5_5.  This pretty much takes care of the
  503. mood of the level, now let's add some interest.
  504.  
  505. Press T to get to Thing mode (no, it's not an Addams Family
  506. editor...), and position the cursor near the NE corner of sector 1
  507. (the NE corner of the big room).  Press [INSERT] to put a new thing
  508. there, and press [ENTER] to edit it.  Change the type to Weapon,
  509. and choose a shotgun.  Now we need something to shoot with it.
  510.  
  511. Move the cursor to the center of sector 5 (the easternmost sector)
  512. and press [INSERT].  With this new thing highlighted, press [ENTER]
  513. to edit it, and change the type to Enemy, and make it a Trooper. 
  514. With the trooper still highlighted, press [ENTER] again, and edit
  515. the direction to be West so the trooper is facing the door.  Now
  516. press Q to save your work, which should match TUTOR3.WAD, exit DEU
  517. and load your level by typing:
  518.  
  519.      DOOM -FILE E1L1.WAD  [ENTER]
  520.  
  521. Grab the shotgun, open the door and blast your freshly created
  522. enemy trooper.  While you're there, take a look back at the door
  523. and notice how strange the texture above the door looks since it
  524. doesn't line up with the walls.  Let's fix that final little
  525. inconsistency.
  526.  
  527. Reload DEU, press the + key and G keys until you're ready to edit,
  528. and go to line mode.  Highlight line 7, and edit the first linedef,
  529. and set the Texture Y Offset to 43.  (Sector 1 has a ceiling height
  530. of 128 and sector 2 has a height of 85.  128 minus 85 equals 43. 
  531. This works as long as you keep the sectors at heights similar to
  532. the dimensions of the textures, but you'll be close this way. 
  533. Every once in a while you'll need to eyeball the texture, but math
  534. can take care of a lot of problems.)  We kept the walls of our
  535. layout to multiples of four (at the grid level we've been using
  536. each square works out to be 16 units wide), so the texture has been
  537. an even map.  We can use the same math trick to align the X axis of
  538. the textures as well, or we can pull the walls out a little to make
  539. the textures fit.
  540.  
  541. While we're here, let's go ahead and change the Shotgun thing to be
  542. a BFG9000, and to make it fair, the Trooper to be a Demon.  Then
  543. save your work, load it up in Doom, and blast that pink sucker!
  544.  
  545. Your work should match TUTOR4.WAD at this point, and until the next
  546. installment, you're on your own in creating your levels.  Practice
  547. a lot, and carefully dissect all the id Software levels for hints
  548. and tricks.
  549.  
  550. --------------------------------------------------------------------
  551.  
  552. Comments and questions may be directed to:  jcochran@usacomputers.com
  553.