plane icon Welcome to Microsoft Flight Simulator’s SDK Q&A Platform!

You have questions regarding the SDK? DevMode Tools? SimConnect? You would like to submit an idea for future improvements, seek help or exchange knowledge? You’re in the right place.

Please take a moment to read the platform’s guidelines before you get started!


Mr_LiamT avatar image
Mr_LiamT suggested Mr_LiamT edited

Script editor improvements

The script editor is really nice for editing complex missions, but there are some missing features that slow down development. Sometimes you have to manually edit the .xml because something is not yet possible in the script editor. I hope this list of problems and suggestions might be helpful to get an idea of what has to be improved.

1. Add missing nodes

You can't add all nodes with the script editor, because not all objects are categorized. The can be added by simply fixing the categorization. Here is a suggestion for a new categorization that has all possible nodes:

Script editor categorization.txt

2. Add button to change order of ObjectReferences

The order ObjectReferences are listed in the .xml can be important, for example in an ActionQueue. Right now we can't change the order with the script editor. Please add a button to change the order, like this:

Suggestion for buttons to change the order of object references

3. Allow us to add multiple instances of a child object

Some objects can have multiple child objects, but for some objects you can only add one instance with the script editor. This happens at least in these objects:

  • TimedAction in TimelineAction
  • CalculatorAction in CalculatorActions in Calculator
  • parameters in CalculatorParameterList in Calculator
  • PlayListItem in PlayListAction
  • AltitudeSample in RaceAltitudeSamples in RaceCourse
  • RunwayFilter in AirportLandingTrigger
  • MenuItem in MenuPromptTrigger
  • ObjectNodeReference in ObjectNodes in NodeDistanceTrigger
  • CameraBehaviour in CameraBehaviours in RTCShot

They should behave like these objects, where you get a button to add more instances:

How the script editor should behave when adding child objects

4. Fix the naming of nodes in the overview window.

You can add a name for most nodes with the Id property, but not all nodes have this property. This means that some nodes can't be named, which can be confusing:

Not all objects get a name in the script editor

In the past, the Descr property was used for the name. Maybe you should go back to that system, or add the Id property to all nodes.

5. Remove useless FSX 'compatibility'.

Some things in the missions script were changed from FSX to MSFS, such as WorldPosition, Orientation, AltitudeIsAGL, and IsOnGround being grouped as a child object, AttachedWorldPosition. But the node still contains the old properties, which can be quite confusing. It also doesn't seem necessary for compatibility, because the old way doesn't work anymore. Please remove the old properties to make things clear.

Sometimes the WorldPosition property is used twice

This also goes for Condition, which was replaced by ReversePolishCondition.

The condition child still shows up, even though it has been replaced by ReversePolishCondition

6. Make formulas multi-line

In the Calculator object, the CalculatorFormula is only a single line, but for clarity of the code it can be useful to use multiple lines. In PropertyTrigger, the ReversePolishCondition actually uses multiple lines. Can you please add this to the CalculatorFormula and other fields for RPN code as well?

The CalculatorFormula should be multiline, like the ReversePolishCondition

7. Fix nodes readability

When editing my mission in the script editor, I find myself hardly using the visible data in the nodes. I usually just click on the node and use the inspector window. Maybe you can make the node easier to read by separating the data for the child object(s) from the data for the main object:

Data for child object(s) in the node should be visually separate from data for the main object

This way, the nodes are easier to read, more like the inspector view. The nodes also don't show all properties that the inspector view does. Maybe you can add all the properties to the node as well.

10 |10000

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

No Comments


Write a Comment

Up to 5 attachments (including images) can be used with a maximum of 4.8 MiB each and 23.8 MiB total.

Your Opinion Counts

Share your great idea, or help out by voting for other people's ideas.

Related Ideas