SimpleMission (MSFS)

From FSDeveloper Wiki
Jump to navigationJump to search


This guide will go over the process of creating a mission with the SimpleMission sample project. See MSFS Mission Script for general information about creating a mission script.

Step 1: Download the SimpleMission project

Unpack the .zip. Rename the SimpleMission folder and main .xml to your mission name.

In PackageSources/Missions, rename the SimpleMission folder your mission name.

Step 2: Open the project in MSFS DevMode

Change company name and package name. Click Update package name.

Change Title and Creator.

Edit SimpleMission asset group:

  • Change name to your mission name.
  • Point AssetDir to the renamed folder: PackageSources/Missions/YourMissionName.
  • For the OutputDir, change YourName to your company name and SimpleMission to your mission name.

Save the project.

Step 3: Open the project folder

In PackageDefinitions delete the yourname-mission-simplemission folder and .xml file.

In PackageSources\Missions\YourMissionName:

  • Rename the files with SimpleMission in the name to your mission name (don't forget the images).
  • Delete the .PLN and .WPR files and replace them with the ones you created for your mission.
  • Edit the .FLT you created like this. You can use the old .FLT as a reference.
  • Edit the .loc with MSFSLocalizer. Change all the GUID's and editing data.
  • Edit the .xml in Notepad++:
    • Change the document id, Title, and Filename.
    • In SimMission.FlowStateAction, for TeleportActions, delete either RTC_Flying_Aircraft_Intro or RTC_Ground_Airport_Aircraft_Intro, depending on which one you will use.
    • You can change SimMission.MissionFreeFlight to a different mission type (for example change SimMission.MissionFreeFlight to SimMission.Tutorial):
Mission type Comment
MissionFreeFlight The mission type used for freeflight is the freest (e.g., allows increasing sim speed), but doesn't have a nice endscreen (just the logbook).
Tutorial This mission type has an endscreen to evaluate mission performance.
MissionBushTrip This mission type allows you to make a mission with multiple legs. If you use this mission type, the sim autosaves mission (currently a bit broken). This mission type also has flight legs and a variable that tracks if it was completed without assistance.
MissionLandingChallenge This mission type is used for landing challenges. It has an endscreen that displays the score. It also has a landingzone with a location, heading, width, and length.
MissionDiscovery This mission type is used for discovery flights.
Untested
MissionLowAltitude Has properties for a racecourse and racePoints. Maybe used for reno airraces?
MissionRaceRedBull
MissionRefueling
MissionSightingFlight

Step 4: Building the mission

Now you are ready to start building the missions in the script editor.

Step 5: Images

At some point, you want to take some beautiful screenshots of your mission for the widget thumbnail, briefing, loading, ending, and content manager thumbnail.


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).