B:Events (Input Events) can't be received on modular aircraft

Version: 1.1.9.0

Frequency: Consistently

Severity: Medium (I was able to use B:FUEL_PUMP_ON on the cabri so it must be related to my template)

Marketplace package name: N/A

Context: Modular aircraft

Similar MSFS 2020 issue: No

Bug description: B:Events are not received on modular aircraft, but work on MFS24 using the same MFS20 aircraft with a mega interior.xml.

Repro steps:

<Include ModelBehaviorFile="ASOBO\Inputs\Helpers.xml" />
  
<InputEvent ID="MODEL_BEHAVIOR">
  <Presets>
    <Extend Target="ASOBO_GIE">
      <Parameters Type="Default">
        <INPUT_EVENT_ID_SOURCE>DAVE</INPUT_EVENT_ID_SOURCE>
      </Parameters>
    </Extend>
  </Presets>
</InputEvent>

Then create an event DAVE_TEST which has B:DAVE_TEST_INC and B:DAVE_TEST_DEC events. INIT code sets L:DAVE_TEST=33 to prove the code is alive.

<UseInputEvent ID="MODEL_BEHAVIOR">
  <INPUT_EVENT_ID_SOURCE>DAVE</INPUT_EVENT_ID_SOURCE>
  <IE_NAME>TEST</IE_NAME>
  <INIT_CODE>33 (&gt;L:DAVE_TEST)</INIT_CODE>
  <INC_CODE>44 (&gt;L:DAVE_TEST)</INC_CODE>
  <DEC_CODE>55 (&gt;L:DAVE_TEST)</DEC_CODE>
  <SET_CODE>66 (&gt;L:DAVE_TEST)</SET_CODE>
  <SET_STATE_EXTERNAL>(L:DAVE_TEST, Bool) ! (&gt;L:DAVE_TEST)</SET_STATE_EXTERNAL>
  <GET_STATE_EXTERNAL>(L:DAVE_TEST, Bool)</GET_STATE_EXTERNAL>
  <INPUT_EVENT_TYPE>INTEGER</INPUT_EVENT_TYPE>

  <TT_ICON>PUSH</TT_ICON>
  <TT_INTERACTION>INCREASE+DECREASE</TT_INTERACTION>
  <TT_INTERACTION_LOCKABLE>LOCK</TT_INTERACTION_LOCKABLE>
  <TT_DESCRIPTION>@TT_Package.GT_STATE_NA</TT_DESCRIPTION>
  <TT_DESCRIPTION_IS_DYNAMIC>False</TT_DESCRIPTION_IS_DYNAMIC>
  <TT_VALUE>@TT_Package.GT_STATE_NA</TT_VALUE>
  <TT_VALUE_IS_DYNAMIC>False</TT_VALUE_IS_DYNAMIC>
  <VALUE_UNITS>Bool</VALUE_UNITS>
  <VALUE_CODE/>
</UseInputEvent>

Now open the Behaviors tool

  1. Check InputEvents has DAVE_TEST
  2. Check Variables L:DAVE_TEST=33
    These are always true so it is just checking the setup.

Now open the coherent debugger and send an event:

SimVar.SetSimVarValue("B:DAVE_TEST_INC","number",1);

If you have a monolith/MFS20 aircraft, the event works (L:DAVE_TEST will have changed to 44 or 55)
If you have a modular aircraft, the event isn’t received and nothing happens. You can manually execute the INC/DEC events from the Behaviors/InputEvents dialog, and those will mutate L:DAVE_TEST as expected. So it is working, but remote B:Events are somehow lost/disconnected it seems.

Attachments:
Private attachments:

1 Like