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!


question

Mr_LiamT avatar image
Mr_LiamT asked Mr_LiamT commented

[CTD] in script editor

There are a few bugs that cause a CTD when using the script editor:

1. There is a bug in the script editor that causes a CTD when you add or edit text in 'ImagePath'. This happens on the 'MissionBushTrip' object and the 'Objective' child object, but not on the 'Leg' child object.

        <SimMission.MissionBushTrip InstanceId="{2D7A7CCA-E584-4A2F-8F63-F702707E127E}">
			<ImagePath>Causes crash</ImagePath>
            <Objectives>
                <Objective>
					<ImagePath>Causes crash</ImagePath>
                </Objective>
            </Objectives>
            <Legs>
                <Leg>
					<ImagePath>Doesn't cause a crash</ImagePath>
                </Leg>
            </Legs>
        </SimMission.MissionBushTrip>

Happens 100% of the time

Steps to reproduce:
Create mission project, open script editor, add MissionBushTrip node, try to type in the 'ImagePath' box, it will crash. This crash also happens when you try to edit this text, after you added it manually in the .xml file.

FS version: 1.23.12.0


2. Adding certain nodes causes a CTD. Nodes that have this problem:
Camera, RequestTeleportAction, GateRacePoint, PylonRacePoint, and Flock.

Happens 100% of the time

Steps to reproduce:
Create mission project, open script editor, add any of the mentioned nodes


3. Random crashes. Sometimes it crashes before adding a new node or when deleting a node.

bugctd
10 |10000

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

Boris_ avatar image
Boris_ answered Mr_LiamT commented

Hello @Mr_LiamT ,

We have investigated but unfortunately the script editor should not be used at the moment. We plan to remove it temporarily from dev mode as it is not usable in its current state.


Regards,
Boris

1 comment
10 |10000

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

Hi Boris,

I think it would be best to keep the script editor accessible, since it is still really useful to have a visual overview of the mission script. Editing the .xml file directly is much more convoluted. Right now I use the script editor for most of the process, and when I come across a limitation or ctd, I manually edit that part of the .xml and carry on in the script editor.

2022-03-11-1.pngThe script editor makes creating and editing complex missions much easier, even if it isn't fully functional and bug-free.


PS: I also found some other limitations of the script editor that I will post on devsupport. You can use that for when the team has time to improve the script editor.

0 Likes 0 ·
2022-03-11-1.png (235.5 KiB)
Boris_ avatar image
Boris_ answered

Hello @Mr_LiamT ,

Thank you for this very well written report and for your Dump files,

We are investigating this issue


Regards,

Boris

10 |10000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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