Useonly TDF Information

Last updated: 09/16/98 21:50

Campaign missions are single-player missions that places you and a number of units in a preset scenario with a particular goal. These missions are typically restricted in the types of units that you can build (for example, in the first few TA ARM missions, you are unable to build an Aircraft Plant or any type of aircraft). This is done to introduce a little extra strategy and planning into the gameplay.

In a camps/useonly subdirectory within your UFO or HPI file, a file with a name of missionname.tdf is created, where missionname is the name of the mission. This mission name is the same name that is used in the Campaign TDF file to identify the OTA file that defines the map information for the particular mission. Having a matching file in the useonly subdirectory is not enough to restrict the units in the mission however. You must also specify the useonly parameter in the OTA file. Make sure that the parameter is set to the name of your useonly file, including the .tdf. For example "useonlyunits=biggie biggs.tdf;".

The useonly TDF file has a very simple layout as the following example illustrates:

[ARMACSUB]
    {
    }
[ARMASON]
    {
    }
[ARMASY]
    {
    }
[ARMATL]
    {
    }
[ARMBATS]
    {
    }
.....

Within this TDF file, each unit that is allowed in the mission is listed by its short name surrounded by square brackets, and is followed by opening and closing braces only. These units, and only these units, are allowed during the mission. Units not in this list will appear greyed out on the build menu during this mission.