Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic States list in Touch Portal page design does not show an LVAR #73

Open
Mushupm opened this issue Jan 22, 2025 · 3 comments
Open
Labels
bug Something isn't working

Comments

@Mushupm
Copy link

Mushupm commented Jan 22, 2025

Discussed in #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.

Capture d’écran 2025-01-22 223221WaSimUI

@mpaperno
Copy link
Owner

mpaperno commented Jan 22, 2025

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

MSFSTouchPortalPlugin-1.6.1.dll.zip

@mpaperno mpaperno added the bug Something isn't working label Jan 22, 2025
@Mushupm
Copy link
Author

Mushupm commented Jan 23, 2025

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

@Mushupm Mushupm closed this as completed Jan 23, 2025
@mpaperno
Copy link
Owner

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

@mpaperno mpaperno reopened this Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants