Difference between revisions of "FreeSpace 2 Mission File Format"

From FreeSpace Wiki
Jump to: navigation, search
m
($Formula:)
Line 46: Line 46:
 
+Repeat Count: 1
 
+Repeat Count: 1
 
+Interval: 1
 
+Interval: 1
+Chained: 30 ;! Optional indicates that SEXP is chained to previous
+
+Chained: 30 ;! Indicates that Event is chained to the previous Event and the chain time in seconds.
 
+Team: 0
 
+Team: 0
 
</pre>
 
</pre>
 
----
 
----
 +
 
===#Goals===
 
===#Goals===
 
*The mission directives
 
*The mission directives

Revision as of 19:51, 24 September 2009

FS2 files are simple text files defining how FS2 will 'execute' a given mission. It refers to external files for the actual assets used in the mission, including Model files and Tables.

General Format

File section headers start with the "#" character. Each file section should be separated by a blank line.

Statements start with either the "$" or "+" characters, and may last for multiple lines. Comments are indicated by ";!", and continue to the end of the line.

Data finishes at "#End"

Sections

#Mission Info

  • Defines that the file is a Mission file.

#Command Briefing

  • Defines the Command Briefing section of the briefing. If no command briefing is required, leave this blank.

#Briefing

  • Defines the Mission Briefing. Leaving this blank will cause 'no briefing' to be shown instead of a mission briefing.

#Players

  • Defines the players for the mission. At least one player must be defined.

#Objects

  • Defines all the objects in the mission and their initial state.
  • This includes all ships (including the player ships), installations and other objects.
  • Does not include asteroid (debris) fields.

#Wings

  • Defines all wings in the mission, friendly and hostile

#Events

  • The SEXPs that make up the Events List.

$Formula:

$Formula: ( SEXP_TEXT 
   FIRST_OPERAND
   SECOND_OPERAND
)
+Name: Event name
+Repeat Count: 1
+Interval: 1
+Chained: 30 ;! Indicates that Event is chained to the previous Event and the chain time in seconds.
+Team: 0

#Goals

  • The mission directives

#Waypoints


#Messages


#Reinforcements


#Background bitmaps


#Asteroid Fields


#Music


#End

  • The end of the file.