Custom Mission Definitions
Posted: Tue Jan 04, 2005 3:55 am
What I have copied and pasted below is from the MissionsFormat.pdf file showing the template, or in other words - the individual data fields with names that should indicate what they mean for each line...
The problem I am having is that there are too many data-fields that do not offer enough description / definiton / and/or potential values that are legal. I did notice the enumeration chart posted by another player, where it lists the various ports, and various ship types etc.. but we need more of this type info.
I think we need a complete description of each field, and where possible, we also need a list of potential values, or a range of values to give us a better idea of the uses or limitations of each field within reason.. some fields seem to be optional but were not really pointed out..
While I am reading through the sample and tutorial, I have seen some instances where the discussion seems to be lacking in detail.. so I am going to highlight the first few categories that I would like some more detail on.. anyone who wishes to post here might copy some of the lines they have a question on also.. highlight them if needed. In time we have an important series of posts with answers that could help immensely.
My FIRST group of questions will be in my next post to set an example of how highlighting the line in question should help others to reference the proper paragraphs while reading the answer that someone will hopefully provide.
M - Mission Header
M Mission Header Line
Mission_ID integer
Mission_Name string
Points integer
Time_Of_Day military format: 0600
Weather Conditions integer
Faction1_Homeport integer
Faction2_Homeport integer
Faction3_Homeport integer
MessageCount integer
UseMessageTimer boolean (only applies to faction 0, Mtype of 0)
TimerInterval integer (seconds)
Longitude string (LONGITUDE.HOURS.MINUTES)
Lattitude string (LATTITUDE.HOURS.MINUTES)
MM - Mission Message
MM Mission Message Line
FactionID integer
MessageType integer
Plain Text string (line feed is end of message).
T - Task Group (1 or more ships combined for timelining).
T.TaskGroup_ID integer
T.Task_Group_Description string
T.Friend_Or_Foe boolean(0:1), 0 = friendly
T.Faction integer index of Faction
T.MessageCount integer
T.ShipCount integer
T.DestinationType integer index of DestinationType
T.DestinationData variant: DT.0 =TaskGroupID, DT.1=Heading.distance
TM - Task Group Message
Message Faction ID integer
Message Type ID integer
Message string
TS - Task Group Member (ship). Has to be at least 1 ship
TS.EnigmaVehicle integer index of VehicleType
TS.EnigmaBoat/Plane_Type integer index of BoatType or PlaneType
TS.VehicleClass integer index of VehicleClass
TS.Variant integer index of shipVariant
TS.AmmoLoad dot delimited integers index of AmmoType
TS.Health integer - as percentage
TS.Speed integer - as percentage
TS.Fuel integer - as percentage
TS.Altitude integer - as percentage sea level to ceiling
TS.Depth integer - depth in meters
TS.Battery integer - as percentage
TS.AirQuality integer - as percentage
O - Objective Group
O.ObjectiveID integer
O.ObjectiveDescription string
O.Orders integer index of Orders
O.MessageCount integer
O.ObjectiveMemberCount integer
O.ObjectiveActionCount integer
O.ObjectiveBonus integer 0 to 99999
OA - Objective Actions - Variant record targeting TaskGroup or Objective
OA.ObjectiveActionType integer index of ObjectiveActionType
0: OA.TargetGroup integer - target TaskGroup ID
OA.FriendOrFoe integer index of FriendOrFoe
OA.Ammo dot delimited integers index of AmmoType
OA.Health integer - as percentage
OA.Fuel integer - as percentage
OA.Battery integer - as percentage
OA.Air integer - as percentage
1: OA.TargetObjective integer - target Objective
OA.NewOrders integer index of Orders
OA.Timer integer - time in seconds
OA.TaskGroup integer target TaskGroupID (if Self sets waypoint to go to).
OA.HeadingRange dot delimited integers of heading and range; 180.2000
OM - Objective Group Message - need a set of types ( 0,1,2,3 ) for each obj member when orders=8
Message Faction ID integer
Message Type ID integer
Message string(255)
OS - Objective Group Member (Task Group)
OS.TargetGroup integer - Tactical Group ID #
OS.Timelimit integer - Objective duration in seconds
OS.RatioTarget integer - index into ObjectiveRatioTarget
OS.Ratio integer - percentage of objective for objective ratio target
must be accomplished/remain for success.
IF RATIO TARGET is 2 (coordinates) then Ratio is
HEADING.DISTANCE
OS.SpecialShip integer - (0= no, 1=yes) turns ship YELLOW.
V - Victory Conditions
V.MessageCount integer
V.ObjectiveCount integer - How many Objectives for victory
VM - Victory Messages (at least the #2 - defeat and #3 - victory for the status screen)
Message Faction ID integer
Message Type ID integer
Message string
VS - Victory Group Member ( Objective Group )
VS.OBjectiveID integer - ObjectiveGroup ID #
VS.CompletionPct integer - as percentage required for victory (unused)
L - Lineup (Timeline of scenario by Task Group)
L.LineupItemCount integer
LS - Lineup Item (Task Group - in order - Player must be first)
LS.TacticalGroupID integer - TacticalGroup ID #
LS.RangeTarget integer - TacticalGroupID #
LS.RangeType integer - index of RangeType
LS.ETA integer - seconds till arrival at RangetTarget(Type)
LS.IncomingDirection Char[3] - Nautical Direction (N,S,E,W, NW?).
Specifying a 3 digit direction reduces range
of direction from ? to 1/8 (NNW- N to NW)
LS.Heading integer - in decrees 0 ? 359
D - Mission Description
This is at the very end of the mission record, each line begins with a ?D?
The problem I am having is that there are too many data-fields that do not offer enough description / definiton / and/or potential values that are legal. I did notice the enumeration chart posted by another player, where it lists the various ports, and various ship types etc.. but we need more of this type info.
I think we need a complete description of each field, and where possible, we also need a list of potential values, or a range of values to give us a better idea of the uses or limitations of each field within reason.. some fields seem to be optional but were not really pointed out..
While I am reading through the sample and tutorial, I have seen some instances where the discussion seems to be lacking in detail.. so I am going to highlight the first few categories that I would like some more detail on.. anyone who wishes to post here might copy some of the lines they have a question on also.. highlight them if needed. In time we have an important series of posts with answers that could help immensely.
My FIRST group of questions will be in my next post to set an example of how highlighting the line in question should help others to reference the proper paragraphs while reading the answer that someone will hopefully provide.
M - Mission Header
M Mission Header Line
Mission_ID integer
Mission_Name string
Points integer
Time_Of_Day military format: 0600
Weather Conditions integer
Faction1_Homeport integer
Faction2_Homeport integer
Faction3_Homeport integer
MessageCount integer
UseMessageTimer boolean (only applies to faction 0, Mtype of 0)
TimerInterval integer (seconds)
Longitude string (LONGITUDE.HOURS.MINUTES)
Lattitude string (LATTITUDE.HOURS.MINUTES)
MM - Mission Message
MM Mission Message Line
FactionID integer
MessageType integer
Plain Text string (line feed is end of message).
T - Task Group (1 or more ships combined for timelining).
T.TaskGroup_ID integer
T.Task_Group_Description string
T.Friend_Or_Foe boolean(0:1), 0 = friendly
T.Faction integer index of Faction
T.MessageCount integer
T.ShipCount integer
T.DestinationType integer index of DestinationType
T.DestinationData variant: DT.0 =TaskGroupID, DT.1=Heading.distance
TM - Task Group Message
Message Faction ID integer
Message Type ID integer
Message string
TS - Task Group Member (ship). Has to be at least 1 ship
TS.EnigmaVehicle integer index of VehicleType
TS.EnigmaBoat/Plane_Type integer index of BoatType or PlaneType
TS.VehicleClass integer index of VehicleClass
TS.Variant integer index of shipVariant
TS.AmmoLoad dot delimited integers index of AmmoType
TS.Health integer - as percentage
TS.Speed integer - as percentage
TS.Fuel integer - as percentage
TS.Altitude integer - as percentage sea level to ceiling
TS.Depth integer - depth in meters
TS.Battery integer - as percentage
TS.AirQuality integer - as percentage
O - Objective Group
O.ObjectiveID integer
O.ObjectiveDescription string
O.Orders integer index of Orders
O.MessageCount integer
O.ObjectiveMemberCount integer
O.ObjectiveActionCount integer
O.ObjectiveBonus integer 0 to 99999
OA - Objective Actions - Variant record targeting TaskGroup or Objective
OA.ObjectiveActionType integer index of ObjectiveActionType
0: OA.TargetGroup integer - target TaskGroup ID
OA.FriendOrFoe integer index of FriendOrFoe
OA.Ammo dot delimited integers index of AmmoType
OA.Health integer - as percentage
OA.Fuel integer - as percentage
OA.Battery integer - as percentage
OA.Air integer - as percentage
1: OA.TargetObjective integer - target Objective
OA.NewOrders integer index of Orders
OA.Timer integer - time in seconds
OA.TaskGroup integer target TaskGroupID (if Self sets waypoint to go to).
OA.HeadingRange dot delimited integers of heading and range; 180.2000
OM - Objective Group Message - need a set of types ( 0,1,2,3 ) for each obj member when orders=8
Message Faction ID integer
Message Type ID integer
Message string(255)
OS - Objective Group Member (Task Group)
OS.TargetGroup integer - Tactical Group ID #
OS.Timelimit integer - Objective duration in seconds
OS.RatioTarget integer - index into ObjectiveRatioTarget
OS.Ratio integer - percentage of objective for objective ratio target
must be accomplished/remain for success.
IF RATIO TARGET is 2 (coordinates) then Ratio is
HEADING.DISTANCE
OS.SpecialShip integer - (0= no, 1=yes) turns ship YELLOW.
V - Victory Conditions
V.MessageCount integer
V.ObjectiveCount integer - How many Objectives for victory
VM - Victory Messages (at least the #2 - defeat and #3 - victory for the status screen)
Message Faction ID integer
Message Type ID integer
Message string
VS - Victory Group Member ( Objective Group )
VS.OBjectiveID integer - ObjectiveGroup ID #
VS.CompletionPct integer - as percentage required for victory (unused)
L - Lineup (Timeline of scenario by Task Group)
L.LineupItemCount integer
LS - Lineup Item (Task Group - in order - Player must be first)
LS.TacticalGroupID integer - TacticalGroup ID #
LS.RangeTarget integer - TacticalGroupID #
LS.RangeType integer - index of RangeType
LS.ETA integer - seconds till arrival at RangetTarget(Type)
LS.IncomingDirection Char[3] - Nautical Direction (N,S,E,W, NW?).
Specifying a 3 digit direction reduces range
of direction from ? to 1/8 (NNW- N to NW)
LS.Heading integer - in decrees 0 ? 359
D - Mission Description
This is at the very end of the mission record, each line begins with a ?D?



