MobiFlight-Connector icon indicating copy to clipboard operation
MobiFlight-Connector copied to clipboard

New MobiFlight variable not accessible in precondition tab

Open TheFog8 opened this issue 1 year ago • 3 comments

I'm trying to use a variable in a precondition in an output configuration. The variable is created from another output configuration. The new variable is missing in the dropdown list.

Steps to reproduce the behavior:

  1. Start creating a new Output configuration
  2. On tab "Sim Variable" select "FSUIPC Offset"
  3. Enter the observed offset
  4. On tab "Display" choose "Input Action" OnChange
  5. The Action Type is "MobiFlight - Variable"
  6. Type is Number and define a name
  7. Leave the configuration with OK
  8. In an other output configuration go to the Precondition tab
  9. Precontition type is "MobiFlight Variable"
  10. The new variable is now missing in the drop down box below

Expected behavior The variable should be available in the "Choose variable" dropdown box.

Actual behavior Only Input variables are shown.

I have helped me out by not using a variable but just the plain outputconfiguration and choosed "Config item" instead of a variable. I don't see a reason why output configs can be used but not the variables they are filling.

TheFog8 avatar Jan 16 '24 12:01 TheFog8

confirmed, i stumbled over this two days ago too. Thanks for reporting!

DocMoebiuz avatar Jan 16 '24 12:01 DocMoebiuz

Root cause: When looking up MF Variables we are not looking at the input actions in the Output configs. That's why they don't show in the list.

DocMoebiuz avatar Feb 28 '24 09:02 DocMoebiuz

Workaround for now: Create a dummy output config with the same MF variable name

DocMoebiuz avatar Mar 01 '24 13:03 DocMoebiuz