Unable to post multiple `K:` events in one go

Hi!

I have a custom built home cockpit panel that I’ve been using successfully with MSFS 2020 and the FlyByWire A320N using MobiFlight to interface with the sim. After upgrading to MSFS 2024, I noticed that I am unable to post multiple K: events to the sim in response to a single button push. For example, I have a single “Fuel Pumps” button in my panel that is supposed to toggle all six fuel pumps on the A320N. The MobiFlight preset code to do this looks something like this:

2 (>K:FUELSYSTEM_PUMP_TOGGLE)
3 (>K:FUELSYSTEM_PUMP_TOGGLE)
4 (>K:FUELSYSTEM_PUMP_TOGGLE)
5 (>K:FUELSYSTEM_PUMP_TOGGLE)
6 (>K:FUELSYSTEM_PUMP_TOGGLE)
7 (>K:FUELSYSTEM_PUMP_TOGGLE)

This works great in 2020, but in 2024 it does nothing at all. However, it works if I try posting just a single event, like so:

2 (>K:FUELSYSTEM_PUMP_TOGGLE)

This correctly toggles one fuel pump. Unfortunately, I have only one button on my panel so I need the ability to post multiple events.

This seems to be a regression from 2020 to 2024. Please let me know if there is any additional information I can provide to help resolve this. Thanks!

1 Like

Does mobiflight allow you to insert a pause between the K events? Might be worth a try.

Thanks for the tip. In fact, that was my first thought as well but it doesn’t look like MobiFlight has any built-in concept of pauses.

This isn’t limited to K events unfortunately; it also happens when triggering B events via RPN.

There’s a hacky way to get a pause inserted in MobiFlight for two events and it does resolve the issue, but due to how hacky it is it’s only possible for two events, not more, and only on button inputs.

The exact same sequence of events in MSFS2020 does not have this issue so it does appear to be a something that broke in 2024.

We continue to get reports from users that this impacts them. Anyone from Asobo able to confirm this changed from 2020? Any possibility of fixing it?

Hello @SprungHawk28566

Are you able to replicate this issue outside the context of MobiFlight?

For example, adding this component to the Da62 SDK sample does work as expected and every pump are toggled every second.

<Include ModelBehaviorFile="ASOBO\\Generic\\Updates.xml" />
<Component ID="TEST">
	<UseTemplate Name="ASOBO_GT_Update">
		<UPDATE_CODE>
			1 (&gt;K:FUELSYSTEM_PUMP_TOGGLE)
			2 (&gt;K:FUELSYSTEM_PUMP_TOGGLE)
			3 (&gt;K:FUELSYSTEM_PUMP_TOGGLE)
			4 (&gt;K:FUELSYSTEM_PUMP_TOGGLE)
			5 (&gt;K:FUELSYSTEM_PUMP_TOGGLE)
			6 (&gt;K:FUELSYSTEM_PUMP_TOGGLE)
		</UPDATE_CODE>
	</UseTemplate>
</Component>

Regards,
Sylvain

The issue occurs when passing the RPN in via an execute_calculator_code() call.

This issue is not specific to MobiFlight. It reproduces when using other external apps that use execute_calculator_code(), for example with WASimCommander.

It’s also not specific to the FBW A320N or K events. Attempting to set the interior cabin light brightness in a C172 using the following code doesn’t work:

100 (>B:LIGHTING_CABIN_1_SET)
100 (>B:LIGHTING_CABIN_2_SET)

The above code causes both knobs to animate, but only one of the two lights turns on. If the two cabin light Bvars are sent separately with some delay between them they work fine.

1 Like

C’mon…

Having

@ 2.0001 / 16383 - -16383 max 16383 min (>K:ELEVATOR_SET)
and
@ 2.0001 / 16383 - -16383 max 16383 min (>K:AILERON_SET)

Assigned to a simple joystick for instance in Mobiflight, FSUIPC or whatever uses the (I suppose) Simconnect API, doesn’t work in MSFS 2024.

So you could say… No Prob. Just assign it within the Sim.
OK…
Done so… Then undocked a window from Sim (no matter whether the VFR Map, or a glass cockpit panel or whatever) and hovering the mouse over it… ALL in sim assigned controls are disabled.

So If you’re undocking any MSFS2024 windows there’s no way of getting reliable working controls into MSFS 2024…

So for home cockpit users, it’s simply NOT flyable with the combination of these bugs. It also prevents us from finding any hacky workarounds for the year old Bug that was taken over from 2020 to 2024 now.

See https://youtu.be/yYIENBBVJPo for an example.

I’d love to see people vote on the other bug as well… Thanks!

Btw. seems to be the same issue as Multiple Key-events in one calculator code - only last is triggered - Aircraft & Systems - Microsoft Flight Simulator Forums. Sry. wasn’t aware that this has already been reported. Probably they can be merged.

Any chance of this being addressed in SU3?

Hello everyone,

Apologies for the delay, the issue has now been identified & fixed - the fix should be available in SU3 1.5.4.0 (not in the next 1.5.3.0).

Best regards,

Eric / Asobo

2 Likes

Thanks Eric! That’s fantastic news.

Really great news!
Thanks for your support Eric! :heart_hands::folded_hands:

Latest release notes indicate this is resolved. Am trying to download the beta now to confirm. Woo!

1 Like