Most of the information here is for Warzone 3.1 and above.
Defining a Campaign
- Aubergine
File Format
The standard .ini file format is used.
The name of the file can be anything you want, so long as it's unique and ends in .ini. When the list of campaigns is displayed, Warzone searches the campaigns folder for .ini files, treating each .ini file as a separate campaign.
An example is shown below:
[campaign] name = "Alpha Campaign" level = "CAM_1A" [intro] video = "cam1/c001.ogg" captions = "cam1/c001.txa"
There are two sections in the file...
[campaign] section
This section must always be included.
Property name | Data type | Required | Description | Game Version |
---|---|---|---|---|
name | String | The name of the campaign as a quoted string. This will be displayed in the menu system when users choose which campaign to play. | 3.2 | |
level | String | The first level in the campaign as a quoted string. When a player starts a new campaign, this is the first mission they will play. This links to a file defining the level, its format may change in future so I'm waiting to learn more before providing additional details. | 3.2 |
[intro] section
This section is optional, and can be used to play an intro video when the player starts the campaign.
Property name | Data type | Required | Description | Game Version |
---|---|---|---|---|
video | String | The path and filename of the video to play. The path is relative to the data/base/ folder. You can find a list of existing videos in the Video Directory. | 3.2 | |
captions | String | The path and filename of the captions file associated with the video. The path is relative to the data/base/ folder. Note, there can be two captions files associated with a video so it's likely this property will change prior to release. | 3.2 |
Availability 3.2+
Requires:
- Warzone 3.2+