SimpleMission (MSFS): Difference between revisions
(Updated section on RTC's) |
|||
| Line 51: | Line 51: | ||
* Edit the <code>.xml</code> in Notepad++: | * Edit the <code>.xml</code> in Notepad++: | ||
** Change the document id, Title, and Filename. | ** Change the document id, Title, and Filename. | ||
** In <code>SimMission.FlowStateAction</code>, for <code>TeleportActions</code>, | ** In <code>SimMission.FlowStateAction</code>, for <code>TeleportActions</code>, you can choose an intro cinematic: | ||
***<code>id="RTC_Flying_Airport_Aircraft_Intro" InstanceId="{55ACAAD8-951B-4821-8D70-4CFC800D1AFD}"</code> | |||
***<code>id="RTC_Ground_Airport_Aircraft_Intro" InstanceId="{306B2AE4-06BA-48C3-93A0-BD5569E6EF5B}"</code> | |||
***<code>id="RTC_Ground_Airport_Aircraft_Intro_GATE" InstanceId="{EE18C69D-5C95-4C75-8194-425360D6798E}"</code> | |||
** You can change <code>SimMission.MissionFreeFlight</code> to a different [[MSFS_Mission_Script_-_Mission_objects#Defining_the_mission_type|mission type]] (for example change <code>SimMission.MissionFreeFlight</code> to <code>SimMission.Tutorial</code>): | ** You can change <code>SimMission.MissionFreeFlight</code> to a different [[MSFS_Mission_Script_-_Mission_objects#Defining_the_mission_type|mission type]] (for example change <code>SimMission.MissionFreeFlight</code> to <code>SimMission.Tutorial</code>): | ||
{|class="wikitable" | {|class="wikitable" | ||
Revision as of 18:28, 8 January 2022
| This page is a work-in-progress. Generic message - Please note some detail may possibly be missing or incorrect. |
| Applicable |
|---|
| MSFS |
| MS Flight |
| LM P3D5 |
| LM P3D4 |
| LM P3D3 |
| LM P3D2 |
| LM P3D |
| FS World |
| FSXSE |
| FSXA |
| FSX |
| FS2004 |
| FS2002 |
| XP11 |
| XP10 |
| XP9 |
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
YourNameto your company name andSimpleMissionto 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
.PLNand.WPRfiles and replace them with the ones you created for your mission. - Edit the
.FLTyou created like this. You can use the SimpleMission .FLT as a reference. - Edit the
.locwith MSFSLocalizer. Change all the GUID's and editing data. - Edit the
.xmlin Notepad++:- Change the document id, Title, and Filename.
- In
SimMission.FlowStateAction, forTeleportActions, you can choose an intro cinematic:id="RTC_Flying_Airport_Aircraft_Intro" InstanceId="{55ACAAD8-951B-4821-8D70-4CFC800D1AFD}"id="RTC_Ground_Airport_Aircraft_Intro" InstanceId="{306B2AE4-06BA-48C3-93A0-BD5569E6EF5B}"id="RTC_Ground_Airport_Aircraft_Intro_GATE" InstanceId="{EE18C69D-5C95-4C75-8194-425360D6798E}"
- You can change
SimMission.MissionFreeFlightto a different mission type (for example changeSimMission.MissionFreeFlighttoSimMission.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.
- Flightplan
- Weather definitions
- Flight file
- Mission script
- Triggers
- Actions
- ObjectActivationAction · DialogAction · AdjustPayloadAction · ChangeAssistanceItemAction · FadeToColorAction · RandomAction · RequestTeleportAction · CountAction · ResetTimerAction · TimerAdjustAction · GoalResolutionAction & SubGoalResolutionAction · GrantRewardAction · PointOfInterestActivationAction · ActivateWaypointsAction · AITakeControlsAction · SendMessageToAIAction
- Mission objects
- Calculator
- Flow states
- Events
- Areas
- Library objects
- Sim objects
- RTC