Tdm mapsequence.txt

From The DarkMod Wiki
Revision as of 07:52, 29 April 2011 by Greebo (talk | contribs) (New page: The tdm_mapsequence.txt file is used to define the order the missions should be played in. It is supported in TDM 1.06+. = Syntax = The general syntax is easy to understand, each mission ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The tdm_mapsequence.txt file is used to define the order the missions should be played in. It is supported in TDM 1.06+.

Syntax

The general syntax is easy to understand, each mission gets is own line like this:

Mission X: MAPNAME

the number X defines the mission, starting with the number 1. After the mandatory colon the name of one or more map files need to be listed without extensions.

Note: while the file format supports more than one mission to be defined in each mission line, this is not fully supported yet in TDM's game code.

Comments

The file format supports C++ style comments.

  • Line comments can be initiated with the double forward slash //
  • Block comments are initiated with /* and finalised with */.

Example File

This is a full working example file, defining a three-mission campaign consisting of the maps red.map, blue.map and green.map, in this order.

/**
 * This file defines the mission order for this campaign
 *
 * The syntax is:
 * Mission <N>: <mapname> [<mapname> ...]
 *
 * N is the mission number, with the first mission carrying the number 1.
 *
 * It's possible to define more than one map filename for a mission,
 * in case there are loading zones in it, but usually you won't need that.
 *
 * Line comments can be initiated with the double forward slash // 
 * Block comments (like this one) are possible too.
 */ 
Mission 1: red
Mission 2: blue
Mission 3: green