Enhanced API to access all aircraft state and trigger all cockpit functions

oh wow - indeed, that looks interesting!

I thought that would help make your day !!!

Both Readable & Writable :+1:

As someone with quite a bit of flight sim hardware, it has proven impossible to keymap many virtual cockpit switch functions without the available variables. I do very much hope there’s a solution to these issues in the near future, as I know I’m not alone in this matter!

3 Likes

Really hope this is addressed. Spending hundreds of dollars on hardware only to find out that some aircraft used b-vars for certain actions is killing me. I want to be completely mouseless due to wrist pain.

I’m tired of manually setting the the panel and cabin lighting on the Cessna Longitude.

I haven’t dug into the controls for the Longitude but if they are like the other aircraft I have set up lighting controls for you should be able to already set something up using an external program like Air Manager, SPAD.next, Mobiflight etc

I dug into the CJ4 panel and cabin lights but that was with the Working Title mod. I’ll take a look at the Longitude tomorrow to see what’s available.

1 Like

Hi Rob,

If you find a solution, please do let me know.

I use SPAD.next and was trying to figure this out for hours (on the Longitude). Here’s what I found.

Panel knob:

  • Events
    – MSFS:PANEL_LIGHTS_POWER_SETTING_SET (parameter 1)
  • Variables
    – MSFS: LIGHT PANEL POWER SETTING (percentage, read-only)
    – LVAR: LIGHTING_PANEL_1 (decimal, writeable)

Flood knob:

  • Events
    – MSFS:PANEL_LIGHTS_POWER_SETTING_SET (parameter 3)
  • Variables
    – MSFS:LIGHT CABIN POWER SETTINGS:3 (whole number)
    – MSFS: LIGHT POTENTIOMETER:32 (Whole number, same value of LIGHT CABIN POWER SETTINGS:3 + 1)

Modifying the LVAR for the panel knob doesn’t do anything. Both variables for the flood knob are read-only. Both knobs fire the same event, just with different parameters.

I was thinking about trying Axis and Ohs because they have an experimental bVar mapping. In their documentation they state that premium’s aircraft bVars are inaccessible because they’re encrypted.

I wouldn’t mind if MSFS’s keybindings worked with both of the lightings, but they don’t so that is very disappointing lol.

Those lighting events need 2 parameters to work correctly. The channel id and the brightness from 0 to 100. I don’t use SPAD, so not sure how that’s done in that app.

I was able to get Panel Knob and Flood Lights Working, Sling is correct in mentioning that you need 2 parameters to set the events. I use Air Manager and they have a WASM module but that shouldn’t matter too much. I’m no expert, but here is how I got it working.

Panel Knob Dimmer
Event: K:PANEL_LIGHTS_POWER_SETTING_SET, 1, (dimmer value 0-100)
Subscribe: L:LIGHTING_PANEL_1 (which has ‘number’ output)

Flood Knob Dimmer
Event: K:CABIN_LIGHTS_POWER_SETTING_SET", 3, (dimmer value 0-100)
Subscribe: LIGHTING_CABIN_3

Air Manager Example for value of 0: fs2020_event("K:PANEL_LIGHTS_POWER_SETTING_SET", 1,0)

You can also use MobFlight and use the MSFS2020 presets or assign Custom Events and then look up the events on https://hubhop.mobiflight.com

hubhop can sometimes be useful but it has lots of controls missing especially the tricky ones. If it was more complete it would be a very good resource.

The Mobiflight Hubhop database is powered by the Community of Mobiflight Users who “manually find” the more or less hidden functions without any input from the creators of FS2020.

In the Mobiflight Community there are users with more or less experience in understanding the code.

To date, almost 6000 functions have been found and shared.
For some functions it is simply not yet possible to read and write access.
For some of these, workarounds have been developed which run the risk of being canceled in the event of an update.

Surely the Mobiflight Community will warmly thank anyone who contributes to this huge volunteer work.

P.S. in the meantime the Mobiflight Managers have moved to get full access to our simulator from MS - Asobo.
Everyone can help bring this request to the fore.

Ciao

3 Likes

This isn’t just about Mobiflight. Many of the functions listed and not listed on hubhop have non Mobiflight solutions using other software and methods. These other solutions also have their own communities. I voted to make access better for everyone using whatever solution they prefer most,

3 Likes

I agree, when I submitted this request I didn’t have only MobiFlight in mind. I am strongly convinced that this is a fundamental feature that would allow the community to better work with and for the MSFS platform.

In regard to your point about HubHop not being complete: of course not! But we have a common place to collect and share. If you can contribute with additional presets, please do so!

2 Likes

Not a Mobiflight user. Prefer not to have to use RPN.

This is not about just Mobiflight or any other specific add-on.

This is important for all add-ons, hardware or software, that can benefit from a more open but defined way to access the simulated aircraft and systems.

3 Likes

Do we have any kind of a response from either MS or Asobo on this?

unfortunately not… :cry:

1 Like

Not seeing any response from MS or Asobo on much these days.

In fact, both have gone very quiet in the past few weeks.

789 Votes to date – Enhanced API to access all aircraft state and trigger all cockpit functions

Very disappointing that this is not a topic of communication.

Thank you @MobiFlight for all you are doing to help make this happen :+1:

3 Likes

Position #16 and still TBD, though under investigation
https://msfs-cdn.azureedge.net/wp-content/uploads/2022/01/Slide1.jpg