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

Diagonalization avatar image
Diagonalization asked Diagonalization commented

Should I use Wasm or JavaScript?

I am trying to build a new add-on that automates various flows on aircraft. Is there any guidance on whether I should use Wasm or JavaScript?

wasm
10 |10000

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

1 Answer

·
dga avatar image
dga answered Diagonalization commented

I would say, that it depends on if it should be tightly integrated with an aircraft (as a mod) or if it is a more general tool used over several aircrafts.

In the latter case I would probably suggest making a new toolbar panel in JS (see https://github.com/bymaximus/msfs2020-toolbar-window-template).

If you need more advanced SimConnect functionality, like masking events, you might opt for WASM.

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.

Diagonalization avatar image Diagonalization commented ·

From what I can tell, certain features of the sim, such as local variables, are not accessible from JavaScript.

0 Likes 0 ·

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.