mpaperno / MSFSTouchPortalPlugin

A plugin which provides a two-way interface between Touch Portal clients and Flight Simulators which use SimConnect, such as MSFS 2020 and FS-X.
GNU General Public License v3.0
66 stars 4 forks source link

HubHop Data not updating properly #32

Closed mpaperno closed 2 years ago

mpaperno commented 2 years ago

Hi, I new to all this, looking in the "Trigger a Simulator Event from loaded HubHop data" I see that PMDG-DC-6 is supported but I don't see the PMDG 737. I know that there was/is a new SDK. Is this something that will be added or I not using it like it should?

Thanks

Originally posted by @magicnorm in https://github.com/mpaperno/MSFSTouchPortalPlugin/discussions/31#discussioncomment-3140012

mpaperno commented 2 years ago

Thanks for the report!

Turns out the database does update but the old version is still cached so no new data is showing up in the "Trigger from HubHop" action. And the original database is from before the PMDG 737 was added, so it doesn't show up at all (which turns out is good since it helped spot this bug :).

The workaround for now is to restart the plugin after updating the HubHop data.

Data updates are logged to the log file and show if an update was actually performed or not.

I will of course address this for the next version.

-Max

magicnorm commented 2 years ago

I did a stop and start of the Plugin in the Touch Portal Settings. I also have the automatic updates enable when the Plugin starts. But still can't see PMDG 737 in the "Trigger a Simulator Event from loaded HubHop data".

Any other ideas?

Screen Shot 07-13-22 at 03 49 PM

Screen Shot 07-13-22 at 03 49 PM 001

magicnorm commented 2 years ago

FYI, It worked using the the "MSFS - Plugin -> Connect & Update action", but does not with the "Enable automatic updates whenever the plugin starts".

mpaperno commented 2 years ago

FYI, It worked using the the "MSFS - Plugin -> Connect & Update action", but does not with the "Enable automatic updates whenever the plugin starts".

Cool, good to know. There might have been a timing conflict when it checks at startup vs. when the data is loaded into the HubHop Action selectors. Getting that all sorted now.

Thanks!

PS. ALT + PrtScr gets you just the active window screenshot ready to paste.

magicnorm commented 2 years ago

Max, It is not working for me, I tried with a few commands, but nothing. I don't know if it is possible for you to check if it works for you using the PMDG-B737-700?

mpaperno commented 2 years ago

It is not working for me, I tried with a few commands, but nothing. I don't know if it is possible for you to check if it works for you using the PMDG-B737-700?

Hmm well.. I don't have that aircraft but other generic events work for me... Which WASM module are you using?

magicnorm commented 2 years ago

I copied the wasimcommander-module in my community folder, so I suppose it is using it. I also know that PMDG have a new SDK since the last PMDG 737 update. Could HubHop data be outdated?

mpaperno commented 2 years ago

Did you restart the sim after installing the module? It should show up in your content manager and show as active, with logo and my name under it. (sorry if that's a dumb question, have to ask).

I also know that PMDG have a new SDK since the last PMDG 737 update. Could HubHop data be outdated?

That I know nothing about. I would verify that the Activate a Simulator Event From HubHop action works by trying something generic and obvious first, like _MS - Generic - Lights - LANDING_LIGHTSTOGGLE. If it works for that then the issue with any particular event/action is most likely due to the data (the calculator code), not the plugin.

magicnorm commented 2 years ago

I created a basic button but it is not working. Let me know if you see something strange? I also added the log file.

Screen Shot 07-13-22 at 07 23 PM

log.txt

mpaperno commented 2 years ago

Mmm, please start a new discussion, maybe in the Q&A section (it could help others down the line). Unfortunately I can't move your comment there (only start a new Issue). Or check out the msfs2020 room on TP Discord server if you're into that sorta thing.

Also the log is a good idea, though I'd be more interested in the plugin's log (README.md -> Troubleshooting). Though I doubt this has anything to do with the plugin itself (meaning I doubt there's anything of interest in the log).