Dynamic States list in Touch Portal page design does not show an LVAR
Discussed in https://github.com/mpaperno/MSFSTouchPortalPlugin/discussions/72
Originally posted by Mushupm January 22, 2025 I downloaded all the MSFS TouchPortal plugin goodies by January 19, 2025.
I wonder to convert an existing MSFS Touch Portal page for FBW A320 to Inibuild A320 V2. I am starting by CSTR button which has a green LED when on.
I found two L variables has shown in the attached screenshot coming from WASimUI . I have been putting these two L variables in Customstates.ini file. INI_EFIS_CPT_CSTR_BUTTON appears in dynamic states list. __ND_SEL_CSTR_CPTIsPressed does not appear in dynamic states list Both L variables are working well with WASimUI.
Do you know why this is happening and how to solve it?
For the event tab in touch portal, I would like to use __ND_SEL_CSTR_CPTIsPressed to change button icon in Touch Portal in order to simulate green light when CSTR is on. I was wondering to use directly a Custom variable without selecting it in a list but I did not find such possibility.
Hi, thank you for the report.
This is likely a bug/issue with the plugin code because it tries to validate variable names before adding them to the request queue. And __ND_SEL_CSTR_CPTIsPressed starts with an underscore, which it doesn't expect nor deem valid. There should be a line in the plugin's log file indicating that validation failed for that variable name.
I've built a new version, with a fix, but it will take a bit of time to release it. In the meantime, the attached MSFSTouchPortalPlugin.dll file can be used to replace the current one.
MSFSTouchPortalPlugin.dll is located in the plugin's install folder, inside the dist sub-directory. For example:
C:\Users\<User_Name>\AppData\Roaming\TouchPortal\plugins\MSFS-TouchPortal-Plugin\dist
Unzip the one in the attached archive and replace the current version (perhaps rename the current DLL as a backup, just in case).
And please let me know if that fixes the issue.
Thanks, -Max
Hi Max, Many thanks for your help. I could not expect a correction in less than one day. You did it. Your correction is working. I can now see the L variable in the list. I am now able to progress on my project.
Best regards.
Philippe
Hi Philippe,
"We" aim to please :) Glad that fixed it!
I'll keep the issue open for now until I release a fixed version, so I can point others here if needed.
Thank you for testing and confirming the fix, and again for reporting this in the first place.
Cheers! -Max