A - Z Beginner Full Guide Start Here!

From The DarkMod Wiki
Jump to navigationJump to search

"Teach Yourself Dark Mod In One Day!" by Fidcal

Page 1 | Page 2 | Page 3 | Page 4 | Page 5 | Page 6 | Index

PLEASE NOTE: This guide contains SPOILERS for the "Thief'S Den 1" Demo Mission of 2008 (V1) & 2010 (V2).

Alternatives or Supplements to This Tutorial

Sotha's excellent video tutorial showcases the creation of a small mission from start to finish: DarkRadiant_Video_Tutorials#Sotha

Springheel also has a video tutorial showcasing how to build a mission using existing prefabs and modules: DarkRadiant_Video_Tutorials#Springheel

Introduction to A-Z Beginner's Guide

Fidcal credits inspiration for this guide to Komag's well-respected tutorial on Thief 2 FMs with the DromEd editor.

This is an easy guide for complete beginners to The Dark Mod. It will lead you from start to finish, 'push that button, click that menu'. At the end you will have a fully working (but tiny and too simple) Dark Mod mission with all the main essential features. Include variations of your own as you progress if you wish. Links to more detailed info is included.

Prerequisite Installations

This tutorial assumes that you have already installed

As you install The Dark Mod, you specify a "TDM root folder" for it, containing TheDarkMod[...].exe and much else. The "Darkmod Path" is the full path of this folder, such as C:/Darkmod. (A real path is often longer.)

Here, let <darkmod> refer to the Darkmod Path.

The first time Dark Radiant runs, you will see the "Game Setup" window.

  • For "Game Type" choose "The Dark Mod 2.0 (Standalone)"
  • For "DarkMod Path" enter or browse to <darkmod>
  • For "Mission" you type or select with pull-down menu one of the FMs already downloaded for or shipped with TDM. You may change this later.

Make sure you can run Dark Mod and Dark Radiant before proceeding.

After You've Done This Tutorial

When finished you can customize the FM you've built further, or just shelve it for reference while you start your real mission!

Once you know the basics from this tutorial, another easy way to start a new FM is with Fidcal's Startpack Mappers' Guide. This FM template comes with a set of ready made components, things like objectives, briefing, readables, and so on. You just modify them and concentrate on building.

You will need to go beyond this tutorial to make a mission architecturally beautiful, have good gameplay, and so on. For that you should check out other wiki and video resources, like Mission Design Tips.

Using Dark Radiant (DR)

This tutorial will refer to default DR keys and mouse settings. A listing of default DR Controls is available to consult during A to Z, but you probably don't need to! Of course, you may have chosen different key bindings, and your screen layout may differ from screenshots here.

Remember: you can undo your last step(s) (Edit menu or CTRL+Z)

For lots more about Dark Radiant, see the DR User Guide.

Understanding Folder Structure

Original by Destined. Updated by Geep 2022

TDM Standard Distributed Core Assets

All main resources and engine executables may be found in <darkmod>, your TDM installation's root folder. Within <darkmod>, resources are stored in a large set of pk4-files. Pk4-files are simply renamed zip-files and can be opened with any common unpacking program like Winzip, Winrar or 7zip. Or you can temporarily rename them to .zip to open them with Windows builtin methods. CAUTION: Don't forget to restore them to .pk4, or things will break.

In addition, <darkmod> contains a regular subfolder called "fms", described next.

Released Fan Missions

Every FM (released or not) has a unique shortname, without spaces, used for naming its files. Let's refer to it as <FM>.

A released FM is always packaged into a pk4-file - as <FM>.pk4 - for distribution. When you download and install a released mission in-game, .../fms/<FM>/ is automatically created. Inside that goes <FM>.pk4, as well as certain files auto-copied from within <FM>.pk4:

  • readme.txt, with notes
  • darkmod.txt, a description file
  • startingmap.txt (optional)

As you play the mission, under .../<FM>/, additional items may be created, e.g.:

  • folders "savegames" and "screenshots"
  • debugging and logging files.

If you open a mission pk4-file - such as the pre-installed Training Mission (training_mission.pk4) or Tears of St. Lucia (stlucia.pk4) - you can see the folder structure used for fan missions. It contains standard folders like "maps", "textures", or "materials", that hold custom assets for that mission. An overview of all files possible to be included in a packaged mission, with a collection of links to other resources and appropriate wiki pages, can be found in the Mission Filestructure.

A fan mission under development is not usually packed into a pk4-file. We'll talk about a minimal situation next.

Your First Mission - Naming

Let's get started.

First, think of an <FM> name to use. Keep it short, because you have to keep typing it over and over in the Dark Mod console when testing! Also, for compatability with non-Windows platforms, avoid uppercase and spaces (but underscores are OK). Here, we assume "tut".

Placing Your File Structure

by Geep 2022

There are two organization methods for your file structure, called "project" and "non-project":

The "project method" is recommended. Advantages:

  • Best for FMs intended for release.
  • Closest to the release-FM file tree structure, so takes less work later.
  • Lets you launch your FM from the TDM main menu, just like a release FM.
  • Better supports custom resources with DR, preventing unintuitive problems.
  • Easier to keep track of custom resources, since per-FM, not global.

The "non-project method" is most suitable for small test maps (such as this tutorial). Advantages:

  • Particularly apt for throw-away FMs and those without custom resources.
  • Quick to set up.
  • Relies on console dmap & map commands to launch.
  • Gives you more flexibility in grouping multiple related FMs into folders if you want.
  • Custom resources are shared across your FMs.

You can use either for this tutorial. Details of creating a minimal file structure with either follow.

Organization by Project

Within <darkmod>/fms/:

  1. Create a folder with the same name as <FM> (e.g., <darkmod>/fms/tut/)
  2. Then within that, create a sub-folder "maps".
  3. Also, for the benefit of the main-menu game launcher, create the files readme.txt and darkmod.txt, and place them in /fms/tut/. Either copy them from some other FM and give them a quick edit in your favorite text editor, or create them from scratch. Don't worry overmuch about content, you can easily change it at any time. Examples follow.

Darkmod.txt (which contains some standardized prompts, i.e., field names) might have something like:

Title: A-Z Tutorial Try
Description: My version of Fidcal's A - Z Beginner Guide Tutorial, similar to Thief's Den.
Version: 1.0
Author: Fidcal and me
See "Notes" for more information.

Readme.txt (which contains "Notes") might have something like:

Maybe I'll say something here after completing the tutorial.


Within Dark Radiant, use File->Game/Project Setup... to open the "Game Settings" window to select the new FM:

  • For "Mission" you type or select with pull-down menu your new <FM> name (e.g. tut).
  • In general, after you so change the Mission, it is best practice to restart Dark Radiant, so that resources associated with the new Mission are loaded into DR. (This is not necessary right now, at the tutorial start.)

Finally, save the essentially-empty file under fms/<FM>/maps (e.g. fms/tut/maps):

  1. Open File Menu > Save As
  2. Navigate to your .../<FM>/maps folder.
  3. Change the name from unnamed.map to <FM>.map (e.g., tut.map) and press Save.

Organization by Non-Project

Originally by Destined

This method will store your new .map file in standard folder <darkmod>/maps/ instead of <darkmod>/fms/<FM>/maps/ . Optionally, you can introduce a subfolder name (here, using DR).

Within Dark Radiant, do not bother with File->Game/Project Setup.... That's because the "Mission" field can be left with any value. You will not be able to specify a non-project folder. How to place FM custom resources for a non-project are discussed much later.

To save the essentially-empty-so-far .map file:

  1. Open File Menu > Save As
  2. Navigate to the <darkmod>/maps/ folder.
  3. If you want, you use the "New Folder" icon to create a group subfolder, e.g., "mytuts". (As with <FM>, keep this name short to minimize future typing in the TDM console. Avoid upper case and spaces.)
  4. In any event, conclude by changing the map name from unnamed.map to <FM>.map (e.g., tut.map) and press Save.

Off to the Races

With either method, <FM>.map how has the stub of our tutorial game. (When speaking of a 'map', developers may be referring to this filetype, or informally to an FM as a whole. And a mission can also have an image-file representing a city or treasure map. This is usually clear from context.)

Observe that a <FM>.darkradiant file is created in the same folder; again, this is a default, essentially-empty file. This is designed to contain info used by DR (like Layers discussed later) but ignored by the game engine.

In this tutorial, we will sometimes have DR and TDM open at the same time and toggle between them.

Next, let's consider our rough storyline so we have some idea what to build...

Story, Briefing

Formal mission objectives will be described much later in this tutorial. But before you begin your mission you will obviously need to have at least some idea of storyline and plot else you will have no idea what to build. You might have a detailed story or just some simple ideas which you can develop later.

Ultimately, you will need to brief the player with information about the story, characters, and the main purpose of the mission. It probably makes sense to write that fully when you are nearly finished the mission because new ideas or even technical difficulties might make you change your story. However, in this tutorial I'll describe it early so as you build the mission the layout and objects make sense.

Your briefing text should eventually be entered as described at Briefing but temporarily you might just write it in a plain text document for reference.

This mini tutorial mission is called 'Thief's Den' so here is an example briefing (not in correct format for the gui or .xd file):

"I had a nice haul the other night including a grand scepter from Lord Frothley. But a low-life named Creep who had given me the info, then stole it from ME! Never trust a thief I say. But I know where he lives...

I also still have his message in his own hand, giving the low-down. If I can dispose of Creep and drop the message nearby then he should take the heat for the heist diverting all suspicion from me.

Creep is a nasty piece of work who is handy with a blade. He can be dangerous and may be expecting me - may even have recruited a thug or two as back up - but he has badly underestimated my stealth skills..."

Preparing to Build

When you open Dark Radiant it will default to a grid size (in the XYZ orthoview) of 8 units by 8 (changeable from version 0.9.5 onwards.) These units are 1.1 inches. Check your preference (default key P) in DR as it will be easier during this tutorial if you have the following checked (ticked) in Preferences > Orthoview...

  • Show Grid
  • Show Size Info
  • Show Coordinates

Important: It is recommend you generally build with the grid set reasonably to a large size such as the default 8 or 16 for all walls, floors, etc. This makes alignment easier. You can reduce this in the grid menu for fine placement but don't leave it like that generally or you will have complexity problems. Snap to grid (DRsnapGrid.jpg, CTRL+G) will re-align a selection to the current grid size.

We'll mostly be working in the XYZ grid orthoview but if you have room for the camera view at the side so much the better. The camera view does a rough render in 3D (F3 toggles a better rendering with lighting etc but keep that off if it slows things down which it is likely to and just use it now and again.)

  • Note the origin icon of the 'world' at 0,0,0 in the grid view
  • Zoom in and out with the mouse wheel
  • Right mouse drag the grid view to scroll around (zoom out further to scroll around faster)
  • Use Change views tool (DRnextViewBut.jpg, CTRL+Tab) to toggle between top (XY), front (XZ), and side (YZ) views (you can open aditional windows using menu View > New XY view).

The blank windows in the grid and camera views can be regarded as empty void - the space in which we shall build. We have to build in bubbles sealed off from that void like an airtight spaceship or a submarine. Any gaps will cause leaks and crash your game so it's obviously the first major rule to learn: always build inner spaces sealed off from the outer void

Apart from special materials like water and weather, all the raw material you will use is 'solid' to form different shapes. So we can make panels and place them together to form lots of floating airtight boxes and these can be linked together. The entire game then takes place inside those boxes. One box can hold a tiny cupboard or an entire cathedral and a lot of boxes can hold a city. Inside those boxes you cannot see the void.

A shortcut to putting panels together is to make one solid block and hollow it out to form a box and this is what we are going to do now to form our first room.

Making Your First Room

First we make a rough solid block...

  • Select the top view (XY) in the grid view (toggle with DRnextViewBut.jpg).
  • Left mouse drag out a rectangle any few grid units across in the middle somewhere.
  • This rectangle is called a 'brush' and used to define raw shapes for walls, floors etc.
  • Left drag within that brush to drag the brush around
  • Select the Resize tool (DRdragResize.jpg, Q).
  • Now left drag outside that brush to resize it.

Now we adjust its top view area...

  • Left drag outside that brush to resize it to 256 across left to right (X direction) by 192 up and down (Y direction in top view.) You should see those dimensions at the sides of the rectangle if you have 'Show Size Info' set in Edit > Preferences > Orthoview. The position of the top left corner is in brackets at top left.
  • Left drag within the brush to move it so its sides fit on the bigger grid. If all sides don't fit then check your dimensions and that you are still in grid size 8 (see grid menu.)
  • I prefer to build up in the top right corner from the world 0,0,0 so none of the values are negatives but you decide for yourself. Move it where you want but ideally so the sides are on the big grid.

Now we adjust its height to get our finished block (brush)...

  • Use DRnextViewBut.jpg (CTRL+Tab) to switch to side (YZ) or front (XZ) view and left drag outside the brush to change its height to 128
  • Left drag inside the brush to move it up and down so its sides are on a big grid same as you did in the top view.
  • You should now have brush 256 x 192 x 128 (see Unit Tips)
AZblock.jpg

Selecting and DEselecting

We only have one item in our view but eventually many. Operations only work on what is currently selected. When you have just created something as we just have it is automatically the current selection and should be highlighted in your views (see DR Preferences for colour.)

  • To DEselect it, point your mouse at it in either the grid or camera view and use SHIFT+ALT+Click the left mouse button (or just press the Esc key.)
  • To select it again, point your mouse at it and use SHIFT+ALT+Click the left mouse button again.

Selecting is something you'll do a lot of so get familiar with that SHIFT+ALT+Click the left mouse button. It's an exclusive select to get just one item. There are other selects I'll describe later. The Esc key always deselects and it is vitally important to get into the habit of DEselecting before you select or create something new or in some cases you will have multiple selections without knowing it and can delete or change something you didn't want to. This is why the SHIFT+ALT+Click the left mouse button is the safest select as it is exclusive and will automatically DEselect anything else that was left selected. But it won't protect an item when creating. Yes, it is possible to have say a brush selected, forget it is selected, then create say, a new light. Oh! what happened to the brush? It's gone - replaced by the light. Develop a nervous habit of keep hitting Esc to deselect when you go to create!

From now on I'll use LMB, MMB, and RMB to refer to the mouse buttons.

Camera View

You should be able to see this block in the camera view. If the camera view is just black remember F3 toggles true light rendering and we don't yet have a light so hit F3 to get a constant bright test light throughout. I won't go into details of all the camera controls suffice to say use the arrow keys and D and C to move vertically. But scroll down to 'camera' in Dark Radiant Controls, Keys & Mouse and you will see a fantastic amount of control you have in DR's camera view - especially with the mouse. It will take time to get used to them all so for now perhaps just learn enough to move around to see what you've done so far.

If you can see your block(brush) in the camera view then it is likely not to have any particular texture unless you were doing something before this tutorial. Close up you may see it is covered in a checkered blue 'shader not found' message. Don't worry if it's covered in something else like stone or wood though. Since it will eventually be hollowed out to form a room, let's paint it now with some material more suitable to the Dark Mod universe...

Materials, Textures, Painting the Block

This is the tiny home of a cheap thief so we'll use some old stonework.

I've mentioned 'textures', 'shaders', and 'materials'; what do these terms mean? A 'material' or 'shader' is the properties of a surface, including (but not necessarily) texture, sound, and others. To 'paint' our block we...

  • Select the Media Browser. This is one of the tabs on a panel. Pressing N or T hides/shows the whole panel but I guess most people leave the panel showing all the time and just select the tab they want.
  • Allow a few seconds for DR to read in the media first time and then you should see 'textures' listed
  • Click 'textures' and it opens up to show all available textures. Many of the ones you see are Doom textures. Scroll down and select 'darkmod' which reveals the ones most suitable for our use. Scroll down to stone, open it, then cobblestones and select blocks_mixed_multicolour. Right click it and select 'Apply to selection'. This covers all surfaces of the block because we have still got selected the whole block not just one surface. You should see this in the camera view. Use this throughout the house (and eventually on its outside surface for consistency.)
  • Select the Texture Browser. This is one of the tabs on the same panel as Media Browser. The Texture Browser only shows recently used textures. You should see only the one texture you selected so it's handy for future use. Odds are you will want to re-use the same textures. It will also show other textures if you clicked on them in the media browser plus any others if you were using DR before this tutorial. You can also copy and paste textures onto single or multiple surfaces (see later.)
  • Hover the mouse over the four little buttons at the top of the Texture Browser and read the text so you have some idea of what features are there for the future. For now, click on the one that says 'Flush and Reload Shaders' and it should clear all of them except the one we put on our brush. As we add others they will appear in the texture browser so you can get to them more quickly.
  • Now, press S for Surface Inspector (or View menu)
  • If you have only one face selected (more about this later) you can set Horiz and Vert scale. Value like 0.3 makes it harder for the player to see any pattern repetition (in this situation and in my opinion - use your own judgement with other textures and wall sizes.) In the mean time you can use arrow buttons to adjust the scale for the whole selected brush. Whatever scale you use, generally you should be consistent with it for the same texture wherever used in a mission. If you use copy and paste then it will transfer the scale as well which is far easier.
  • There will be more on texture adjustment later in this tutorial.

Hollowing out a Room from the Block

Building to a large grid size helps performance. The outside of our block will never be seen in the game. Once we hollow it out then the player will only see the inside so that is the surface that is rendered and that we need to align to the large grid. There are two tools to hollow out a block, both activated by a button on the left button bar: one called 'hollow' and the other 'room'. Don't use 'hollow' as it reduces the internal sides so they don't fit the big grid AND it overlaps the corners which can cause rendering errors like so....

BAD!


AZhollow.jpg



Instead use the 'room' button which does the job right (note the increased size so the internal dimensions will be the same as our original block and align to the big grid...

GOOD!


AZroom.jpg


All brushes in Doom must be convex. They cannot have any inward angles (like an L shape which would have to be two brushes together) and cannot actually be hollow. The above tools really create new side panel brushes to replace the original brush. In the case of our six-sided block that is six new brushes positioned as walls, floor, and ceiling. The walls they create are one small grid line wide so their width will vary depending on your grid size setting.

Examine the block in the camera view and zoom right inside so you can see it internally which is where it will be seen in game. Note the texture aligns nicely because we stuck to a big grid size. The stone is appropriate for all four walls (which is why I textured the whole block in one go rather than one surface at a time) but now we need different textures for floor and ceiling...

Selecting and Texturing Individual Surfaces

You cannot select a surface in the grid view so move inside the room in the camera view.

To texture the floor...

  • Press Esc to make sure everything is DEselected
  • Point at the floor and use SHIFT+Click the left mouse button. Repeat a few times and you will see it selects/DEselects the surface. Keep it selected.
  • Select the Media Browser again (on the tabbed panel)
  • In the darkmod section select say stone/cobblestones or maybe you would like some wood/boards/worn_01 ? You choose but something like carpet might need special alignment so stick with stones or boards maybe for now? Remember - RIGHT click the texture name and select 'Apply to Selection'
  • Alternatively you can click on several possibles then select them with one LMB in the Texture Browser on the other tab. In the Texture Browser you can enlarge the textures if preferred to see them better.
  • Esc to DEselect so you can see it better in camera view.

To texture the ceiling...

  • Press Esc to make sure everything is DEselected
  • Point at the ceiling and use SHIFT+Click the left mouse button again to select its surface.
  • Select the Media Browser again (on the tabbed panel)
  • In the darkmod section select say plaster/plaster01 and apply it.

If you change your mind about the walls you can change them to something else...

  • Press Esc to make sure everything is DEselected
  • Point at one wall and use SHIFT+Click the left mouse button again to select its surface.
  • Point at another wall use SHIFT+Click the left mouse button again so now both surfaces are selected
  • 'Accidentally' select the ceiling. No problem. Just use SHIFT+Click the left mouse button on it again to DEselect it but the walls are still selected. In this way you can select which surfaces you want to select.
  • Select the Media Browser again and just apply another type of stone, perhaps brick, to the walls if you want or just leave it as it is.

Now press CTRL+S to resave the mission or use the File menu. Get into the habit of doing this often unless you have autosave set. Now and again you can also save with a new name so you can go back to an earlier one if you totally mess up. Note: There is also a backup file made automatically by DR.

Adding the Player's Start Point

One more thing is essential to play this in Dark Mod and that is the Player's starting position.

  • Press Esc to DEselect everything.
  • In the TOP grid view, point the mouse in the middle of the room and RMB to get a pop up menu. This menu is important so glance at some of the other items on it while you're here. 'Entities' are special function items and the player start is amongst them but there is a shortcut on the menu so instead...
  • Select "Create Player Start here" on the menu. This will create the playerstart entity (red box) and put it where you clicked. Drag the entity around to the point where you want the player to start.
  • You should see an arrow on the red box indicating the way the player will face at the start. If you cannot see the arrow then menu View > Show > Show Angles will reveal it. You can rotate the player by selecting Rotate tool (DRrotate.jpg, R) and dragging with the mouse.
  • Use CTRL+Tab to switch to the side view (YZ) and use LMB to drag the inside of the player start box so its base is on the floor of the room (you can also use Translate tool, DRtranslate.jpg, W). Make sure you do not go below or the floor or the player might be stuck with his feet in concrete! Tip: In Thief games it was common to start just dropping over a wall with this player start a few feet above the ground. You might note that entities do not directly resize like brushes so LMB dragging on the outside of the box does nothing (unless you have selected the Translate tool).
  • RMB in the grid view again and you will see there is now a Move player start here option so you can quickly move its position while testing different areas of your mission. But always remember to check both the side and top view when moving things around, to make sure the vertical position is also valid. (Also note that Move player start here does not select the player start - you will need to select it if you need to adjust its position by dragging.)
  • With the player start still selected you can select the Entity Inspector (on the panel, or N to hide/show it) and see the properties of your first entity.

The game could now be played but it will be totally dark so we need to create at least one light.....

Creating a Light

  • Press Esc to DEselect everything.
  • In the TOP grid view, point the mouse in the middle of the room and RMB to get the pop up menu.
  • Select "Create Light" on the menu.
  • A large red box appears with diagonals representing the light's centre and its rough 'radius'. The default light is more like six pyramids pointing out to their peaks in the centre of each side of the box. This gives a rough impression of a sphere of light and helps performance.
  • CTRL+TAB to get a side view and LMB drag right in the centre of the light to move it up/down to centre it in the room if it is not already. Just dragging inside the radius box won't move it - you have to point at the centre.

Resizing a Light

Resizing a light is awkward because dragging any side moves the centre (this might be changed in a later Dark Radiant.) Two ways of dealing with this. Just roughly drag it about and keep moving the light back to where you want it. But if you have very precisely positioned a light then you don't want to have to keep doing that so this is what I do...

  • Select the Entity Inspector on the panel
  • You should see it has a light radius property with three values for XYZ for the three dimensions. They are north and south for Y, east and west for X, and up and down for Z. (those are the compass directions in game by the way.)
  • Click on the light radius property to highlight it.
  • Note that its values appear in a choice of inputs at the bottom - You can type new values in a line with a space in between then click the check(tick) button or enter them as separate values or even use the little scrolly buttons at the side and then click the Apply button.
  • The room interior is 192 x 256 x 128 (in XYZ order) so give the light radius the values 200 260 133 so it protrudes outside the walls (we're setting radius - so the light diameter will be twice that size). We may well change this again later if we want the light to spill out through a doorway or something.
  • You can now toggle light rendering in the preview using F3 (or an icon in the preview toolbar) to see how the light affects the walls.

The light radius is not just a cut-off point. It can be regarded as a 'fade to zero point'. What this means is that the light is at maximum brightness at its centre and fades to zero at the limit of the radius. So in a big open area, if you extend the radius you will 'stretch the brightness' further. Imagine the scale from max to min compacted in a small radius or expanded in a large one. More on this later when we place wall torches.

Changing a Light's Brightness

The light may be a little bright. To change it...

  • Press L (or View menu)* to call up the Light Inspector
  • Click on the white rectangle button just below where it says 'Colour'
  • The brightness value is called 'Lum:' (luminosity) and should default to 100. Reduce it to 90, by overtyping it or using the slider to the far right. It might not matter. I'm just showing you where the control is for now.
  • Fool around with the colours if you want - there are extensive features I won't cover here.

Hey! We should have your first working mission! Do a CTRL+S to save it and then follow the next sections in Dark Mod itself not in Dark Radiant.....

Sound

There is no need to do anything special about hearing sounds such as footsteps, collision sounds, etc. at this stage as it will work automatically. Adding custom sounds will be dealt with later.

Pathfinding

Pathfinding data to tell the AI characters where they can move is created by dmap by default when compiling in the next section...

Dmap: Compiling the Mission

Your mission file cannot be played itself; it is simply the directions to create a game file. To do this...

  • Start up The Dark Mod.
  • If you selected the "project method" of organization, in the Mission List, you should see yours by the title you gave in darkmod.txt. Select that as you would any other mission, but don't start it.
  • In any event, from any Dark Mod menu, go to the console. By default, the console is CTRL+ALT+~ (US Keyboards) or CTRL+ALT+' (UK Keyboards). This key is the top left below Esc and to the left of "1" on all keyboards I believe. But most people set up a shortcut to just use the ~ (` in UK) on its own so:
For single key click to get the console:
In your desktop shortcut to TheDarkMod.exe add this argument to its properties (right click shortcut): +set com_allowConsole 1 so the target line would be something like:

C:\Darkmod\TheDarkMod.exe +set com_allowConsole 1

(plus any other arguments you might want)
  • In the console type:
dmap tut<Enter>
  • Except if you used the "non-project method" of organization and also made a subfolder in <darkmod>/maps/ called mytuts, then instead type:
dmap mytuts/tut<Enter>
  • Wait while dmap compiles the mission. This should only be a few seconds with this tiny mission but will be much longer for big missions.
  • If you get a 'leaked' error or some other serious red warning then recheck your work; look for gaps in the wall or a wrong texture like nodraw or have you got an entity outside in the void? See HERE for more about fixing leaks but at this stage of this tutorial it might be easier just to redo. What I have laboured over is basically make a block, texture it, hollow it, stick in a player start and a light. As you get more proficient you can do it in less than a minute.
  • Assuming there were no dmap red "ERROR"s then you are now able to play the mission, freshly dmapped.
  • If you used the "process method" of organization, you can either
    • "Start Game" from the main menu
    • from the console, type
map tut<Enter> 
  • If you used the "non-process method" of organization, from the console, type:
map tut<Enter> (or if appropriate, map mytuts/tut<Enter>)
Tip: Press the up arrow key toggles back through the history of what you have typed before so your dmap should re-appear. Just press the Home key and delete the 'd'.
  • An alternative to the 'dmap' command is to use 'testmap', which does both dmap and map. But (says Fidcal) I prefer to see dmap's results.
  • You should now be able to walk around in the room. If you have a player shadow set then you might notice that walking through that light looks odd so keep that in mind for light placement. But most lights you will place close to a visible source like a gaslight or wall torch.


That's the first part done!

"Teach Yourself Dark Mod In One Day!" by Fidcal

Page 1 | Page 2 | Page 3 | Page 4 | Page 5 | Page 6 | Index