Missions (Scenarios) for P3D

Introduction | Why | Missions | Tutorial | FIP

Introduction | FlightCreate | MissionCreate | MissionExpand | MissionComplete ||||| MissionExpand 1 | 2 | 3 | 4 | 5 | 6
Complete the mission:

To complete the mission, there are still a few things missing:
- More text when the oil leak occurs.
- Scenario Goal
- Mission picture and briefing

Let's start with the text:

Fortunately, this is quickly created because we already have a good template.

In the visualization window, draw a frame around the 4 objects "StartText on", "20sStartText off", "StartText off" and "StartText".

Click with the right mouse button and select "Duplicate (4)". Make sure that there is a "4" in brackets behind "Duplicate" to make sure that really 4 objects are duplicated.

Now you have 4 new objects, which all have the addition "- Copy 1" in their names.
Select the 4 new objects one after the other and rename them according to the following pattern:
Delete "- Copy 1" and replace "StartText" with "LeakText".
If you did everything right, it looks like this:

This leak text should be displayed after the oil leak occurs, but not immediately, but with a 10 second delay. For this we need another "DelayAction".

Search in the visualization window for the DelayAction" with the name "20sLeakText off" and click on it. Now click with the right mouse button and select "Duplicete (1)".

Rename the new action from "20sLeakText off - Copy 1" to "10sLeakText on".

For DelaySeconds you enter "10".

Next you search for the action "LeakText on" under "OnCompleteAction" and put it into the field "Referenced".

This looks like this in the visualization:

Now click on the LeakText, because the text in it has to be changed.
Delete the text
"Starte, steige auf 8000 Fuss und folge dem Tal.
Launch, climb to 8000 feet and follow the valley."
and write instead:
"Der Motor verliert Öl, drehe um und lande auf dem Flughafen Sion.
Engine leaks oil, turn around and land at Sion Airport."
(Be sure to put a carriage return after the German text. Otherwise the text would not be displayed completely on small screens).

Remark:
If you don't want to create the mission in 2 languages, use only the text in your language.
In this case you can reduce the off time of the text to 10 seconds.
The same applies to the StartText.
In german it would look like this:

Next, you need to link the text to the oil leak so that it fades in at the appropriate moment.

So, in the visualization window, find the "FailureAction" (name oil leak) and click on it. In the right window, under "OnCompleteAction", find the action named "10sLeakText on" and put it in the "Referenced" field.

Now we take care of the Scenario Goal:
The Goal is displayed in the "Kneeboard" under "Scenario" during the flight.

Search in the Catalog under Category for "Goals" and drag "Goal" from the window below into the visualization window.

Name the goal "LandSafe". In the Text field write:
"Land safely at Sion airfield. / Lande sicher auf dem Flugplatz Sion."

In order for the Goal to be switched as fulfilled on successful landing, you need a "GoalResolutionAction", which can be found in the Catalog under Actions. Drag this into the visualization window and name the action "LandSafeOK".

GoalResolution" must be set to "completed".

Under the heading "Goals" drag the Goal named "Land Safe" into the field "Referenced".

For the evaluation of the Goal we need an "AreaLandingTrigger", which can be found in the Catalog under "Triggers".
After you have dragged the trigger into the visualization window, you name it "LandingZone".
At "Activated" you change it to "NO", the trigger gets a red dot.
(The trigger must not be activated, because at the beginning of the mission you are already standing on the runway, the trigger would fire immediately and switch the mission to fulfilled).

Under "Actions" find the action named "LandSafeOK" and move it into the "Referenced" field.
The trigger is now linked to the "GoalResolutionAction".

At "LandigType" (at the bottom) you set "FullStop".

If you save the mission now, you will see that there is an error listed in the "Validation Output": "No area definitions referenced therfore landing anywhere counts as a landing."

In other words, the "AreaLandingTrigger" needs an Area, which defines that the landing has taken place on the airfield.

Therefore we need another Area. Switch the main window to "Prepar3D" and get a "RectangleArea" from the Catalog under Areas into the main window.

Name the area "LandingZone" and set "Length", "Width" and "Height" to the correct values, so that the area has exactly the size of the runway (100/2000/50 should fit).

Use "Rotate" and "Move" to align the area to the runway.

Make sure that "Pitch" and "Bank" are both set to 0, otherwise the area will hang crooked in the air.

At "DrawStyle" switch to "None" to make the area invisible.

Click on "EDIT" for "AttachedWorldPosition", "YES" for AltitudeAGL and "0" for Altitude, so that the area is perfectly level with the ground.

The final result looks like this:

Switch to Visualization and click on the "AreaLandingTrigger". Select the "LandingZone" under Areas and move it into the field "Referenced".

Now the "AreaLandingTrigger" must be activated at a suitable moment. To do this, search for the action named "LeakText on" in the visualization window and click on it.
Search for the trigger "LandingZone" under "ObjectReferenceList" and move it into the field "Referenced".

Slowly the whole thing becomes confusing, a good time to group the components.
Draw a frame around all elements below "10s LeckText ein".

If this doesn't work, because other objects (1) are in the selection area (dashed), you can use the double arrows in the upper right corner (2), to rearrange the view.
If that doesn't help, hold down the "Ctrl" key and click on the 8 elements you need.

Click with the right mouse button and select "Group (8)" and in the appearing menu next to it "NewGroup".
Make sure that there is an "8" in brackets behind "Group", with any other number you have selected too many, or too few objects.

Name the group "Leak" (in the right pane Object Properties).

If you have clicked on another object within the group, you cannot rename the group currently. You have to leave the group and select the group there to rename it, more about that below.

What has changed now?
- You are within this group and therefore only see the 8 elements that you have grouped together.
- If you click on an object and want to connect to another element in the right window, you can use the "Filter by Group" item (red frame) to switch so that only the elements within the group are displayed, or all elements. This makes it much easier to find a certain element, if it is in the same group.
- With a right click on an element, you can move it to another group, or with "Ungroup" from the group to the overview (orange frame).
- On the top left you can click on "Grouped Graph" to move the element from the group (leak) to the overview (green frame).
- At the bottom left you can switch the group visualization on and off with "YES" and "NO" at "Grouped Visualization" (light blue frame).

Now leave this group by clicking on "Grouped Graph".
Outside this group it looks much clearer now. You see a new element (green), this is the group you just created.

Click on this element and you can change the name at Object Properties on the right, give the group a different color and under GroupedObjects you can add or remove elements to the group.

By clicking on the symbol at the bottom left of the group, you enter this group (red frame).

The only thing missing now is the mission picture and briefing.
You have to create these outside of SimDirector with suitable programs.


MissionImage:

As mission image I simply used a screenshot of the plane on the runway, cropped it appropriately in an image editor and set an image size of 380x232 pixels. I named the image "MissionImage.jpg".

In the loading screen this image is displayed.

Briefing:

I wrote the briefing in World and saved it as a web page named "ExampleFlight.htm".
The briefing is displayed when loading the mission, also in the kneeboard.


Incorporate mission picture and briefing:

In the P3d storage directory (by default "C:\Users\USERNAME\Documents\Prepar3D v6 Files") create a new folder named "ExampleFlight".
Now move the mission image and briefing into this folder.

Now you have to link the two files to the mission.
Search for the object "ScenarioMetadata" under "Visualization" in SimDirector and click on it.
- At "UncompletImage" you click on the folder icon and look for the "MissionImage.jpg".
- You can leave "CompletedImage" empty, because it will never be displayed. This is probably a leftover from FSX, where the "UncompletImage" in the loading window was replaced by the "CompletedImage" once the mission was successfully completed.
- At "MissionBrief" look for the "ExampleFlight.htm" via the folder icon. This file will be displayed when you load the mission in P3d.
- At "AbbreviatedMissionBrief" you also select the file "ExampleFlight.htm". This file will be displayed in the "Kneeboard" under "Briefing" during the flight. Of course you can also display a completely different file here.

That was all. Save the mission, quit SimDirector, start Prepar3D and enjoy the flight.

With a little experience, you can click this little mission together in well under an hour.


If you have read this tutorial but don't want to rebuild it and still want to see the result, you can download this zip and copy the files it contains (3 files 1 folder) into your save directory.

ExampleFlight2.zip


I hope this tutorial was understandable.

Now have fun creating your own missions.

Continue to build the mission: Example Expand Flight (Part1)
I hope you enjoy these flights, if so, please give feedback to p3d@andi20.ch.
Also send error messages (spelling mistakes, wrong information, etc.) to me, I appreciate any feedback.
Introduction | FlightCreate | MissionCreate | MissionExpand | MissionComplete ||||| MissionExpand 1 | 2 | 3 | 4 | 5 | 6

Introduction | Why | Missions | Tutorial | FIP