Skip to content

MSFS2020 SimConnect

Koseng edited this page Oct 6, 2023 · 4 revisions

Behavior during startup

After beginning the startup of the simulator, no SimConnect connection is possible. At some point A in the loading sequence, the SimConnect endpoint becomes available for clients. But at first all messages sent by an external process or a WASM standalone module are queued for a certain period (e.g 10 to 20 seconds). No messages are being processed, including SimConnect_Open. That delay ensures that components and modules can finish initialization before general SimConnect processing starts. At some later point B in time the processing starts. At first the already queued messages are processed. During that processing also SimConnect_Open is processed and the clients receive their SimConnect_OnRecvOpen callbacks.

Sequence:

  • 0: Startup of simulator begins
  • Load packages, parse Material.xml
  • A: Simconnect endpoint becomes available (but incoming messages are saved and queued)
  • Initialize WASM modules and simulator components
  • B: Simconnect message processing starts (and SimConnect_OnRecvOpen callbacks are sent)
  • Read libraries, load gltf files and behavior XML
  • Startup complete

References:

Installation

User Interface

Examples and tutorials

MSFS2020

X-Plane

Workshops

Community Boards & Devices

Additional Information

Firmware

Clone this wiki locally