Skip to content

Customize QmdevSimConnect for Any aircraft

After installation of QmdevSimConnect, in your MSFS community folder, find the directory qmdev_sc, there are a few examples .lua files.

Hints: you can only add/modify .lua file, but not .sec  files

you can add/modify .lua for any aircraft you want.

it is always fun to learn something new, use this opportunity to learn Lua programming language

choose Lua scripts Editor

Lua scripts files are basically Pure Text Files you can edit it with any Text Editor.

Never use Microsoft Word to edit Lua scripts

you can use Windows built-in Notepad to edit the Lua script. But as an experienced programmer, I would recommend a few editor options:

https://zed.dev/download

https://github.com/cxasm/notepad–/releases

https://code.visualstudio.com/download

MSFS Simulation Variables

The key to access MSFS platform aircraft data is to find out MSFS SIMULATION VARIABLES.

Flight simulation community continues contributing to find out aircraft SIMULATION VARIABLES

https://hubhop.mobiflight.com

QmdevSimConnect API document

https://sourceforge.net/p/qmdevsimconnect/wiki/Lua%20API/

How to debug your customized lua scripts

CTRL+BREAK

you don’t have to restart QmdevSimConnect each time you add/modify lua scripts. but of course, if you want to do it this way, you can

We provide you with an easier way to reload your Lua scripts, by pressing CTRL+BREAK key on your keypad.

make sure QmdevSimConnect is the foreground task in front of your face, then press CTRL+BREAK key.

for example, my Logitech keypad does not have a dedicated CTRL+BREAK key, my alternative is to press CTRL+FN+B will trigger a CTRL+BREAK event. so for your keypad, you need Google to find out your keypad way to trigger CTRL+BREAK event

you will hear QmdevSimConnect “Beep” sound each time you do this, and “Reload Lua” can be seen from QmdevSimConnect Window

CTRL+C

Press CTRL+C will instantly enable QmdevSimConnect debug mode, more logs will show.

debug mode is off by default, so when you exit QmdevSimConnect, debug mode will be off again

debug mode is very useful when you want to monitor which key is triggering an event

Welcome to send it back

Once you have finished your own customized Lua scripts, you are welcome to send them back to us(email: cpuwolf@x-plane.vip) as you wish.

Then we will optimize it, and consider integrating it in our next release

Leave a Reply

Your email address will not be published. Required fields are marked *