| 1 |
The data directory contains two important sets of files. Both are |
| 2 |
required for scenarios and are assigned matching numbers. |
| 3 |
The first set of files are the ship files. These tell us what ships |
| 4 |
will be involved in a mission. |
| 5 |
|
| 6 |
The format for the ships files goes like this: |
| 7 |
|
| 8 |
Type Class Friend Speed Depth Heading Latitude Longitude Sonar Mood |
| 9 |
|
| 10 |
Type determines submarine (0) or ship (1) or helicopter (5). |
| 11 |
Class must match to a class from the "ships" directory. |
| 12 |
Friend tells us which side the ship is on. Zero is a FOE, 1 is a Friend, |
| 13 |
2 is unknown and 3 is neutral. |
| 14 |
Speed is in knots, heading in degrees, depth is in feet. |
| 15 |
Possible moods are Convoy (maintain formation), Attack (hunt for enemies) |
| 16 |
and Passive (try to stay out of the way). |
| 17 |
|
| 18 |
The follwing example shows us two ships. The first is a friendly submarine |
| 19 |
traveling at 5 knots at 47 feet, due east. The second entry is a surface |
| 20 |
ship (merchant class) traveling at 15 knotes south-west. |
| 21 |
|
| 22 |
0 1 1 5 47 90 150000 150000 75.0 1 |
| 23 |
1 4 3 15 0 230 140000 170000 115.0 1 Passive |
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
The other kind of file is the mission file. This will assign required |
| 28 |
tasks to ships. The mission file must assign missions to ships in the |
| 29 |
same order the ships file lists them. |
| 30 |
|
| 31 |
The format for the file is as follows: |
| 32 |
|
| 33 |
Action Timer |
| 34 |
|
| 35 |
Action can be any one of the following: |
| 36 |
None - do not assign any special significance to this ship |
| 37 |
Sink - to complete the mission, this ship must be sunk |
| 38 |
Alive - To complete this mission this ship must remain alive |
| 39 |
Find - We must find and track this target to beat the mission. |
| 40 |
|
| 41 |
The optional Timer variable only applies to ships marked with "Alive". |
| 42 |
This tells us how long, in seconds, the ship must survive for the mission |
| 43 |
to be a success. |
| 44 |
|
| 45 |
For example, we can create a mission file to go with |
| 46 |
the above ships file which looks like this: |
| 47 |
|
| 48 |
None |
| 49 |
Find |
| 50 |
|
| 51 |
|