Flight file (MSFS): Difference between revisions

From FSDeveloper Wiki
Jump to navigationJump to search
mNo edit summary
m (Replaced Applicable-FSVersion for MSFS with MSFS2020, added MSFS2024)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:


{{Infobox-Applicable-FSVersion
{{Infobox-Applicable-FSVersion
| MSFS = true
| MSFS2024 = unknown
| MSFS2020 = true
| FSXI = false
| FSXI = false
| P3D5 = false
| P3D5 = false
Line 22: Line 23:
}}
}}


The documentation here is pretty complete: [https://docs.flightsimulator.com/html/index.htm#t=Content_Configuration%2FFlights_And_Missions%2FFlight_Definitions.htm Documentation]
Your flight file (.FLT) determines the state of the aircraft (location, switches), world (weather, time, assistance), ui (panels), and the sim in general (speed, traffic, multiplayer) at spawn.  
 
Your flight file (.FLT) determines the state of the aircraft (location, switches), world (weather, time, assistance), ui (panels), and the sim in general (speed, traffic, multiplayer) at spawn. It also determines the mission category and the briefing screen:
 
[[File:MSFS flight file briefing example.png|480px]]
 
Loading screen:
 
[[File:MSFS_flight_file_loading_example.png|480px]]
 
And startup info:


It also determines the mission category and the briefing screen, loading screen, and startup info.


[[File:MSFS flight file briefing example.png|400px]]
[[File:MSFS_flight_file_loading_example.png|400px]]


== Creating your flight file ==
== Creating your flight file ==
Line 49: Line 43:
  Add description/location (e.g. 'LIRN, Italy' or TT:Telluride.Description)
  Add description/location (e.g. 'LIRN, Italy' or TT:Telluride.Description)
  Change MissionType to the category you want your flight to be in (e.g., BushTrip, LandingChallenge, Story Mission, or anything else)
  Change MissionType to the category you want your flight to be in (e.g., BushTrip, LandingChallenge, Story Mission, or anything else)
  Delete: MissionLocation, OriginalFlight, FlightType, StartingCameraCategory
  Set StartingCameraCategory. Can be "Cockpit", "Aircraft", "Scenery", "Custom", "FixedOnPlane", "Airport", or "AirportTraffic".
   
   
  [ResourcePath] and [ObjectFile]
 
  [ResourcePath] and [ObjectFile]:
  Change to the name you use for the .xml
  Change to the name you use for the .xml


  Delete [FreeFlight]
  Delete [Assistance], [Atc_Menu], and [FreeFlight]


  If you use custom weather:
  If you use custom weather:
Line 63: Line 58:
   WeatherCanBeLive
   WeatherCanBeLive


  Set:
  To remove multiplayer, ai planes, and airport traffic, set:
  [TrafficOptions]
  [TrafficOptions]
  AllowAbientVehicleTraffic=FALSE
  AllowAbientVehicleTraffic=FALSE
 
  Add:
  And add:
  [Multiplayer]
  [Multiplayer]
  Status=0
  Status=0
Line 74: Line 69:
  Status=0
  Status=0


To force a assistance preset, add:
  [Assistance]
  [Assistance]
  Preset=ASSISTANCE_PRESET_TRUE_TO_LIFE
  Preset=ASSISTANCE_PRESET_TRUE_TO_LIFE
 
NOTE: You can use '''ChangeAssistanceItemAction''' to change specific assistance items.
Fix flightplan in [ATC_Aircraft.0], [ATC_ActiveFlightPlan.0], and [GPS_Engine] as shown [https://docs.flightsimulator.com/html/index.htm#t=Content_Configuration%2FFlights_And_Missions%2FFlight_Definitions.htm&rhsearch=timedscnt&rhhlterm=timedscnt in the documentation].


  For [GPS_Engine]
  For [GPS_Engine]
  Change: Filename= to the name of the .PLN file.
  Change: Filename= to the name of the .PLN file.
NOTE: You can use '''ChangeAssistanceItemAction''' to change specific assistance items.


=== Briefing, and loading screen ===
=== Briefing, and loading screen ===
Line 100: Line 93:


==== Pictures ====
==== Pictures ====
You will have to add pictures for the mission thumbnail, and the loading, briefing, and ending screens. The names for the loading an briefing pictures are defined in the [[Flight_file_(MSFS)#Creating_your_flight_file|.FLT file]]. The thumbnail will need to be named: <code>Activity_Widget.jpg</code> and the endscreen picture will need to be named: <code>rewardscreen.jpg</code>.
You will have to add pictures for the mission thumbnail, and the loading, briefing, and ending screens.  
* The names for the loading an briefing pictures are defined in the briefing and loading sections of the .FLT file.  
* The thumbnail will always need to be named: <code>Activity_Widget.jpg</code>.
* The endscreen picture will always need to be named: <code>rewardscreen.jpg</code>.  
 
== Further Reading ==
The documentation for the .FLT file is pretty complete: [https://docs.flightsimulator.com/html/index.htm#t=Content_Configuration%2FFlights_And_Missions%2FFlight_Definitions.htm Documentation]


{{Template:Navbox-Mission-Creation-MSFS}}
{{Template:Navbox-Mission-Creation-MSFS}}

Latest revision as of 12:49, 25 May 2024


Your flight file (.FLT) determines the state of the aircraft (location, switches), world (weather, time, assistance), ui (panels), and the sim in general (speed, traffic, multiplayer) at spawn.

It also determines the mission category and the briefing screen, loading screen, and startup info.

Creating your flight file

  • To create your flight file, you start with loading your flightplan or the starting location in the world map.
  • Choose a plane, livery, etc. Choose a time and weather.
  • Then start your flight.
  • Move your plane to the position you want and change it to the configuration you want (switches etc.). If you want to spawn in the air you should stabilize the planes pitch and altitude so the plane is stable after spawn. You should use trim and throttle or autopilot for this. Keep in mind that changing the weather may change the conditions, so configure the weather first.
  • If you have the correct configuration, save the flight file with Escape>Save flight>save .FLT.
  • You now need to configure the .FLT:

Changes to make in the .FLT file.

[Main]
Add title (e.g. Airline emergency)
Add description/location (e.g. 'LIRN, Italy' or TT:Telluride.Description)
Change MissionType to the category you want your flight to be in (e.g., BushTrip, LandingChallenge, Story Mission, or anything else)
Set StartingCameraCategory. Can be "Cockpit", "Aircraft", "Scenery", "Custom", "FixedOnPlane", "Airport", or "AirportTraffic".

[ResourcePath] and [ObjectFile]:
Change to the name you use for the .xml
Delete [Assistance], [Atc_Menu], and [FreeFlight]
If you use custom weather:
 Set UseWeatherFile=True
 And delete
  UseLiveWeather
  WeatherPresetFile
  WeatherCanBeLive
To remove multiplayer, ai planes, and airport traffic, set:
[TrafficOptions]
AllowAbientVehicleTraffic=FALSE

And add:
[Multiplayer]
Status=0

[Airtraffic]
Status=0
To force a assistance preset, add:
[Assistance]
Preset=ASSISTANCE_PRESET_TRUE_TO_LIFE

NOTE: You can use ChangeAssistanceItemAction to change specific assistance items.

For [GPS_Engine]
Change: Filename= to the name of the .PLN file.

Briefing, and loading screen

In the .FLT file you can add these lines:

[Briefing]
BriefingText=TT:MISSIONNAME.BRIEFING
BriefingImage0=./images/MissionName_Briefing.png

[Loading]
ImageName0=./images/MissionName_Loading0.png
Tips0=TT:LOADING.TIPS.MISSIONNAME_000
Tips1=TT:LOADING.TIPS.MISSIONNAME_001
Tips2=TT:LOADING.TIPS.MISSIONNAME_002

For the TT: explanation, see: Localisation (MSFS)

Pictures

You will have to add pictures for the mission thumbnail, and the loading, briefing, and ending screens.

  • The names for the loading an briefing pictures are defined in the briefing and loading sections of the .FLT file.
  • The thumbnail will always need to be named: Activity_Widget.jpg.
  • The endscreen picture will always need to be named: rewardscreen.jpg.

Further Reading

The documentation for the .FLT file is pretty complete: Documentation

Pages relevant to mission creation for MSFS.

Mission structure

Flightplan
Weather definitions
Flight file
Mission script
Triggers
AirportLandingTrigger & AreaLandingTrigger · CounterTrigger · PropertyTrigger · ProximityTrigger · TimerTrigger
Actions
ObjectActivationAction · DialogAction · AdjustPayloadAction · ChangeAssistanceItemAction · FadeToColorAction · RandomAction · RequestTeleportAction · CountAction · ResetTimerAction · TimerAdjustAction · GoalResolutionAction & SubGoalResolutionAction · GrantRewardAction · PointOfInterestActivationAction · ActivateWaypointsAction · AITakeControlsAction · SendMessageToAIAction
Mission objects
Mission definition · Goal · LivingWorldExclusion · Camera
Calculator
Flow states
Events
Areas
Rectangle Area · Cylinder Area · Polygon Area · Corridor Area · InGameMarker
Library objects
Sim objects
RTC

Mission tools

MSFS Script Editor · BushTripInjector · BushMissionGen · MSFSLocalizer · SPB2XML · Little Navmap

Other

Example mission files
Porting FSX Missions to MSFS
Localisation
Click the links to access the topic pages (Default - Opens in same window).