🗨️Custom Dialog
To use dialog (with sounds or text to speech) you need to use a MSFS devmode project. This project will contain the sound files (if you have them) and some files generated by the missionhub.
Set up the Mission Package
Follow the instructions in Mission Package.
Define the dialog in the mission hub
Now, you can go into the Mission Hub Scenario Editor.
Just place the Custom Dialog objects as you would any other mission hub object. You can give each Custom Dialog object a:
Dialog Text (used for subtitles and text-to-speech)
Dialog Sound File (name of the sound file without extension).
Generate the dialog files
After you've placed your Custom Dialog objects, you need to generate the needed dialog files. Go to the advanced mission settings tab by selecting the Advanced tab on the top-left of the screen.
For Dialog Package Name, you need to fill in the package name of your devmode project.
Then, press the Generate Dialog Files button.
Paste the generated files in the devmode project
To find the generated dialog files, go to the location of the scenario files (see Sharing and Installing Missions).
From the SavedScenarioFiles folder, go one level up to its parent folder.
In the parent folder, open the CustomFiles folder.
You will find two files:
customDialog.xml (Msfs mission script file that contains the dialog logic)
customDialog.loc (Localization file that contains the subtitles and links to the sound files)
You need to paste them in these folders inside your devmode project:
customDialog.xml →
PackageSources/Dialog/customDialog.loc →
PackageSources/Localization/
Distribution
Make sure the package and mission folder names are changed from the example project. Otherwise it could lead to conflicting files with other missions.
You can distribute your dialog package by itself, but it would be more logical to distribute it as part of a Mission Package.
Last updated