home *** CD-ROM | disk | FTP | other *** search
/ Soundblaster 17 / SBCD17.ISO / doom / ade / tutor / tutor.doc < prev    next >
Encoding:
Text File  |  1994-10-20  |  17.7 KB  |  435 lines

  1.   DEU II TUTORIAL v1.5
  2.  
  3.   Making your first original level.
  4.  
  5.   This document and the accompanying .wad files should help
  6.   you to see what you need to do to build a level.  It's a
  7.   sort of touch-and-see how it works thing.  (sounds like
  8.   fun!)
  9.  
  10.   This tutorial works best it you print out the TUTOR.DOC
  11.   and then follow along with DEU II on the computer.
  12.  
  13.   Items appearing in braces {} indicate that there is a file
  14.   that you can load to follow along and see how to do things.
  15.   load the file by typing  "R wadfilename.WAD" at the DEU Main Menu.
  16.   After the file is loaded type "E 1" to go into the editor.
  17.   then select the editing mode(s) indicated in the braces
  18.   and move the pointer around to touch things and look at how
  19.   they are structured.
  20.  
  21.  
  22.   Now we begin our journey...
  23.  
  24.    1. First create the new map with the Create command from the
  25.       main menu (C 1).  Go into vertices mode (hit tab) and
  26.       create some vertices by positioning the cursor where you
  27.       want the vertex and then press "Ins" to place a vertex
  28.       there.  Using the Grid mode (press G) is helpful if you
  29.       want to line up the vertices.  You will need a minimum of
  30.       three to create an enclosed polygon.  (Don't be afraid
  31.       of running out until you're really good at this,
  32.       many Doom II maps contain well over 800 vertices.)
  33.  
  34.    2. Group the vertices by marking them (highlight them and left click the
  35.       mouse or press "M") and add linedefs by pressing insert.  It is best
  36.       to mark them in CLOCKWISE order.
  37.  
  38.    3. Mark all of the lines for the sector (you will want to mark the ones
  39.       that aren't already marked) and press "Ins" to add a sector.
  40.  
  41.    4. Repeat steps 1 - 3.
  42.       (You'll want more than 1 sector, unless you are very dull).
  43.       {S1.WAD - vertices, linedefs}
  44.       Load up this wad and see a very basic 2 sector map.
  45.  
  46.    5. (This step is made mostly obsolete by DEU5.0 and above since
  47.       it now does these things automatically, but you can verify it
  48.       anyway.)
  49.  
  50.       If you have any lines that are shared by 2 sectors and are meant
  51.       to be the place where you cross from room to room set the Flags
  52.       to 2S (two-sided and shoot thru) and turn off the Impassable Flag.
  53.       You will probably want to get rid of any of the Normal/Upper/Lower
  54.       Textures that are on lines that you walk across (usually, unless
  55.       you want to create the illusion of walking through a wall.).
  56.  
  57.       {S2.WAD - Linedef} Check out Linedef # 1.
  58.  
  59.  
  60.    6. To change the way the walls look, select a line or a group of lines
  61.       and change the Normal texture on some of the Sidedefs. (To go to
  62.       line editing mode, press L).
  63.  
  64.       {S3.WAD - Linedef} Take a look at Linedefs #0,2, and 3.
  65.  
  66.  
  67.    7. Change the Floor and Ceiling Textures in a sector. (To go to sector
  68.       editing mode press S).
  69.  
  70.       {s4.wad -Sector}  Look at Sector #1, compare to the default in
  71.       sector 0.
  72.  
  73.  
  74.    8. Add a Player1 Start thing. If you want to play cooperatively you
  75.       will also want to add a Player2, Player3 and Player4 start thing
  76.       and if you want to play in deathmatch mode you must have a MINIMUM
  77.       of 4 deathmatch start things)
  78.  
  79.       {s5.wad -Things}  That's were you start and the direction you're
  80.       facing.
  81.  
  82.    9. Change the type of one of the lines to
  83.          "Special - Ends level goes to next level."
  84.       If you want to be able to leave the level you will need an exit.
  85.       (Even if just to see the deathmatch frag counts!).
  86.  
  87.       {S6.WAD - Linedefs} Check out Line 5.  Oh yeah, the texture was
  88.       changed to one of the SW1xxxx textures so that it looks like a
  89.       switch too.  Nice touch eh?
  90.  
  91.  
  92.   10. Use Q to quit and save your changes.  Answer Y to the question
  93.       about building the nodes, etc. (unless you use expert mode,
  94.       in which case... Why are you reading the tutorial?? ;-)
  95.  
  96.   11. Use Q to quit DEU II.
  97.  
  98.   12. Fire up Doom II and try it out!
  99.  
  100.    DOOM2 -FILE yourfile.WAD
  101.  
  102.         If you are working on a level higher than E1L1 you can
  103.         go straight there by using IDCLEVxy  where xy is the map number.
  104.  
  105.   13. To record a demo of your level (a .LMP file) type this:
  106.  
  107.    DOOM2 -DEVPARM -WARP m -SKILL s -RECORD demofile -FILE yourfile.WAD
  108.  
  109.         You must NOT type the .LMP extention and you MUST type the .WAD
  110.         extension. 'm' is for map number (1 to 32) and 's' is for skill
  111.         level (1 to 5). If you die before the end, press SPACE to end the
  112.         recording and go back to DOS.
  113.  
  114.   14. To play back your demo, type this:
  115.  
  116.    DOOM2 -PLAYDEMO demofile -FILE yourfile.WAD
  117.  
  118.  
  119.  
  120.  
  121.   CHAPTER 2:  The Adventure Continues...
  122.  
  123.  
  124.  
  125.   Now that we have a level, let's put some cool stuff in it.  What
  126.   we will do here is to show ONE possible way to construct some
  127.   special sectors like doors, stairs and lifts.  Please note that
  128.   there ARE other ways to do them because there are many different
  129.   types of doors & lifts, etc.  Also, you're a little more experienced
  130.   at making vertices, lines and sectors already so we are not going
  131.   to have as many WAD files to demonstrate the structures, just one
  132.   or two to show each structure.
  133.  
  134.  
  135.  
  136.  
  137.   Adding a *DOOR*.  We'll open it for you...
  138.  
  139.   1. The split linedef feature can be used to add a vertex which
  140.      can then be dragged to where you want the edge of the door
  141.      to be.  This is helpful if you decide after you build the
  142.      sector that you want to have a door.  If you planned ahead
  143.      you won't need this.
  144.  
  145.      Add some vertices & lines to build a new sector which will
  146.      later become the door.
  147.  
  148.      You may want to add some more vertices and lines to build a sector
  149.      on the other side of the door so you've got somewhere to go once
  150.      the door is open.
  151.  
  152.   {s7.wad - linedefs and sectors}
  153.  
  154.      There's no door here yet, but it'll be coming soon.
  155.      Split line 0 into lines 0 & 8.
  156.      Added lines 9,10,11.  Used lines 0,9,10,& 11 to add sector 2
  157.      (Sector 2 will become the door in the next file.)
  158.      Added lines 12,13,14.  Added sector 3 on lines 10,12,13,& 14.
  159.      Sector 3 is the room on the other side.
  160.  
  161.   2. The "Normal" vector of the lines (The side of the arrow with the
  162.      line sticking out of it) must be on the 'outside' of the door.
  163.  
  164.      Change the type of the linedefs on the front and back of the door
  165.      to a DOOR type.  1 DR Open door - closes after 5 seconds is the
  166.      best one for beginners, you'll figure out other types of doors later.
  167.  
  168.      Change the first sidedef of the front & back of the door to have
  169.      an Upper Texture only (NO Normal or Lower Texture).  If you want it
  170.      to be obvious, make it a texture that looks like a door.
  171.  
  172.      Change the ceiling height of the door sector to the same level
  173.      as it's floor.  It will rise until it's just below the height
  174.      of the lowest adjacent ceiling.
  175.  
  176.      Change the ceiling texture of the door sector to something that looks
  177.      like the bottom of the door.
  178.  
  179.      On the linedefs on the sides of the door that are the door frame,
  180.      set the flags to Lo (lower texture unpegged.) This will keep them
  181.      from moving when the door goes up.  Also, you should set the
  182.      Normal texture to something that looks like a door frame.
  183.  
  184.      {s8.wad - linedefs and sectors}
  185.  
  186.      Linedefs 0 & 10, changed type to Door - DR open door
  187.      Changed first sidedefs upper texture (BIGDOOR2).
  188.      Set sector #2 Ceiling height to the same as its' floor.
  189.      Changed ceiling texture (FLAT20).
  190.      Changed lines 9 & 11 texture (DOORTRAK).
  191.      Set 9 & 11 to type Lower Unpegged.
  192.      Tada!  A working door!
  193.  
  194.  
  195.   Perhaps you can buy a Stairway to Heaven, but you'll have to
  196.   build the *STAIRWAY* to Hell!
  197.  
  198.  
  199.   1. Add the linedefs and sectors that will become the stairs.
  200.  
  201.   2. Individually change the floor heights of each stair sector.
  202.      Change them in units of 8 or 16 for best results (24 is the
  203.      maximum for a stair you can climb, but it looks pretty tall).
  204.      Increment for stairs going up, decrement for stairs going
  205.      down. (obviously)
  206.  
  207.   3. For sidedefs facing a sector that has a floor height lower
  208.      than its floor, set the lower texture to something that looks
  209.      like a stair.
  210.  
  211.   4. If the ceiling height is changed set the upper texture of sidedefs
  212.      facing sectors with higher cielings.
  213.  
  214.   {s9.wad - linedefs, sectors}
  215.  
  216.      Set individual floor heights on sectors 4,5,6,7,8
  217.      Set ceiling height on sectors 4,5,6,7,8,9
  218.      Set first sidedef lower texture on lines 13,16,19, & 22.
  219.      Set seconds sidedef upper texture on line 13.
  220.  
  221.      Also, for demonstration set the floor height on sector 9
  222.      lower so that you could 'fall' down into it and not be able
  223.      to get out because 64 units is too tall to climb.
  224.      Because sector 9 is lower, set a lower texture on the second
  225.      sidedef of line 28.
  226.  
  227.  
  228.  
  229.  
  230.   Hey buddy!  Need a *LIFT*?
  231.  
  232.  
  233.   1.  It's best to make the linedefs on the sides of the lift that
  234.       you can walk across have their "Normal" sides (the one with the
  235.       little line sticking out) on the outside of the lift.
  236.  
  237.   2.  Change the TYPE of the linedef facing the sector with the lower
  238.       floor height to "Raise lift & switch to lower...".
  239.  
  240.   3.  Set the TYPE of the linedef facing the sector with the same floor
  241.       height to "WR - lower lift...".
  242.  
  243.   4.  Verify or set the floor height of the lift sector to its maximum
  244.       height.
  245.  
  246.   5.  Set the FLAGS for linedefs on the side (that you don't cross) to
  247.       Upper texture unpegged.
  248.  
  249.   6.  Set a lower texture on the sidedef of the linedef which will be
  250.       higher than the lift when it is down.
  251.  
  252.   7.  Set a floor texture on the lift sector to something that looks
  253.       like a lift floor. (optional, but it looks good).
  254.  
  255.   8.  Assign the lift sector a linedef TAG number.  Use the lowest
  256.       available tag number.
  257.  
  258.   9.  Assign the linedefs with the Lift TYPES the sector TAG number
  259.       that you assigned to the lift sector.
  260.  
  261.   {s10.wad - linedefs, sectors)
  262.  
  263.      Flipped linedef 28.
  264.      Set linedef 28 type to Raise lift...
  265.      Set linedef 25 type to Lower lift...
  266.      Set linedefs 26 & 27 flags to upper texture unpegged.
  267.      Set floor height of sector 9 to it's up position.
  268.      Set floor texture of sector 9 to STEP2.
  269.      Set lower texture of linedef 25 second sidedef.
  270.      Assigned TAG #1 to sector 9.
  271.      Assigned TAG #1 to linedefs 25 & 28.
  272.  
  273.  
  274.  
  275.   * TRANSPORTER pad, 1 to beam up! *
  276.  
  277.  
  278.   {for the next few examples you will want to also try out the WADs to
  279.    see how they look in DOOM II}
  280.  
  281.   1. First create two sectors. One has to be a multiple of 64x64 units.
  282.      It will be the 'pad' and has to be aligned on a vertex with a
  283.      multiple of 64 (use G for grid to align the vertex points) or else
  284.      the texture for the pad will be offset and will look bad. {T1.WAD}
  285.  
  286.   2. Make sure the lines on the side of the pad are the right way, the
  287.      player will transport when he travels from side 1 to side 2 of the
  288.      line.
  289.  
  290.   3. Edit the line type and change it to 97 WR Transport to other sector
  291.      (Go to line type, then special) or 91 W1 if you want it to work
  292.      only once.
  293.  
  294.   4. Set the Sector tag number of the lines to an unused number.
  295.  
  296.   5. Next, you'll need to decide where you want to transport. Select a
  297.      sector and set the linedef tag to the same as above.
  298.  
  299.   6. Lastly, add a transporter exit thing somewhere in the destination
  300.      sector.
  301.  
  302.  
  303.  
  304.   Ok, now we're cooking!  Let's make everything look good!
  305.  
  306.  
  307.   1. {T2.WAD} is the same as above, but with textures aligned. Now
  308.      you know why I took that weird texture!
  309.  
  310.   2. Look at Sidedef #2 & #5 (first sidedefs of lindedefs #2 & #5).
  311.      You'll see that they have a texture X alignment.
  312.  
  313.   3. Here's how to figure it out: go to maximum zoom (press = a few
  314.      times), then display the smallest grid (press SHIFT-G once). Each
  315.      square of the grid is 8 alignment points. To move a texture to
  316.      the left, X needs to be positive and to move it to the right,
  317.      X has to be negative. The way you have to look at it is taking
  318.      the wall itself and moving it over (or behind) the other one
  319.      as to blend the two together.
  320.  
  321.   4. So, if you look at sidedefs #2 and #5, you'll see that #2 has an
  322.      X offset of -64 and #5 of +64.
  323.  
  324.  
  325.  
  326.   Line up!  (Texture Alignment)
  327.  
  328.   Now, we do some heavy math stuff! Aligning vertically for stairs and
  329.   more complex horizontal alignments.
  330.  
  331.  
  332.   1. {A1.WAD} is a test WAD with two stairs in it. One has varying
  333.      ceiling heights and the other has the same ceiling. This one
  334.      needs a LOT of work!
  335.  
  336.   2. {A2.WAD} is the aligned one. Looks a lot better hey! Here's how
  337.      it's done. NOTE that this is only for NORMAL textures, not
  338.      UPPER or LOWER textures, they are aligned in a different way.
  339.  
  340.   3. For starters, go back to A1, you'll notice that when the ceiling
  341.      is the same height, the textures align (vertically that is!) and
  342.      that's because DOOM II displays a texture starting from the top left
  343.      of the panel. So, to align a texture vertically all you need to
  344.      know is the difference in ceiling height. {In A2.WAD look at the
  345.      Y offset of linedefs #5, #13, #12 and #3}.
  346.  
  347.   4. There's a problem with aligning all these linedefs because you'd
  348.      need to be able to align beyond the -100 to 100 limit. The trick
  349.      is to do a little math (I know, yuck!). If you need to align a
  350.      texture by 128 points, then you'll need to move one 100 points
  351.      one way and the other -28 the other. {In A2.WAD look at the X
  352.      offsets of linedefs #14 and #0}.
  353.  
  354.   5. Another problem is when the linedef is longer than the size of
  355.      a given wall. In the case of SKY2, it's 256 points wide and the
  356.      length of the wall composed of linedefs #2, #4, #11 and #10 is a
  357.      total of 464 points, so SKY1 fits almost twice. If you look at
  358.      the X offsets for the above lines, you'll probably say: "How the
  359.      heck did he get those!?!?" It's really elementary math skills!
  360.  
  361.   6. Here's how it's done; first, lines #2, #4 and #11 together are
  362.      256 points long, so lines #2 and # 10 will have the exact same
  363.      offset. Next, if you left line #2 with an offset of 0, you would
  364.      need to move line #4 by 128 (or -128 which is the same because
  365.      the texture is 256) and line #4 by 128+64=192 (or -64 which is
  366.      192-256). You can't do that! Remember, you have a limit of -100
  367.      to 100, so 128 (or -128) will not do, so we need to use two
  368.      lines to do it. If you move line #2 by -100, then you only need
  369.      to move line #4 by 28 (-100 - 28 = -128) and line #11 by 92 (28
  370.      + 64 = 92). Then all you do is set line #10 the same as line
  371.      #2 which is -100.
  372.  
  373.   7. I know it looks really complicated, but it really is simple once
  374.      you know how to do it (I know, I sound like your fifth grade math
  375.      teacher!). Anyways, DEU may eventually have an align texture
  376.      feature, so you can wait until then, but if you want to be in the
  377.      hall of fame of WADs, you'll need to align those textures NOW!
  378.  
  379.  
  380.  
  381.   Wow! I want more! OK, here's the best you can do to align the
  382.   textures for windows and secret doors...
  383.  
  384.   1. Look at W1.WAD (run DOOM II with it, type 'doom2 -file w1.wad', and
  385.      start a new 2 game). Go to each side of the window - one side is
  386.      aligned and the other is not. Now look at each of the secret doors,
  387.      one is aligned vertically and the other is not. Can you figure out
  388.      how to align UPPER textures? OK, I'll tell you, but I won't explain
  389.      the X offset alignement, I just did in the last few paragraphs!
  390.  
  391.      {Check the MAP (press TAB) when running DOOM II with W1.WAD, you
  392.      can only see a door (yellow line) on the WEST side. The Secret
  393.      bit is set for that Linedef, also the Sector behind the EAST
  394.      door is also of type "secret".}
  395.  
  396.   2. First, for windows, you'll just need to set the flag "Upper
  397.      Texture is Unpegged" because normally an UPPER texture is drawn
  398.      from the bottom left corner up (remember a NORMAL texture is
  399.      drawn from the TOP left corner down) and changing this flag will
  400.      make it drawn just like a NORMAL texture. This will align the
  401.      texture vertically (assuming the ceiling height is the same as
  402.      the adjoining walls).
  403.  
  404.   3. Second, for doors, you don't want to set the "unpegged" flag
  405.      because the door would not look right when oppening, so you want
  406.      to adjust the texture with an offset. In W1, the ceiling is 100
  407.      high and STARTAN3 is 128 high, so you want the Y offset to be
  408.      -28 (128 - 100 = -28).
  409.  
  410.   4. Third, you'll want to know how to align the bottom part of a
  411.      window. Well, unless somebody proves otherwise, it can't be
  412.      done. Sure, you can use textures that LOOK aligned (because
  413.      of the Window height and texture type) but you can't REALLY
  414.      do it. Here's why: LOWER textures are drawn the exact same way
  415.      as NORMAL textures (from TOP left corner down) unless you set
  416.      the "Lower texture is unpegged" flag in which case it starts
  417.      from wherever the upper texture ended. Look at the WEST side
  418.      of the window in W1.WAD (the side that isn't aligned). I set
  419.      the upper and lower textures to unpegged. See the difference?
  420.      The LOWER texture of the "aligned" side is the same as the
  421.      UPPER texture there, but on the "un-aligned" side, it is the
  422.      continuty of the UPPER texture.
  423.  
  424.  
  425.  
  426.   Well that's all for now...
  427.  
  428.   The rest you can probably figure out from looking at the original
  429.   levels from id software.  (Really, we figured it out and we're
  430.   stupid. You should have much less trouble.)
  431.  
  432.   The DEUTUTOR was compiled by Steve Bareman and Jean-Serge Gagnon
  433.   with guidance from Raphael Quinet and numerous helpful suggestions
  434.   from DEU II users and alt.games.doom.
  435.