Fragtality / PilotsDeck

Directly control the FlightSim from your StreamDeck!
Other
98 stars 6 forks source link

X-Plane 11 crashes after a while #18

Closed Flightport closed 1 year ago

Flightport commented 1 year ago

Hello Fragtality, as mentioned in my first post, I have problems with crashes of StreamDeck. I use X-Plane 11.55 and it works fine for a while. Defined some Buttons and Displays for the Toliss A321/A319 and they normally work fine. Toliss_Pilotsdeck

Don´t know, what causes this error. The last commands I added were Pitch Trim Down and Up. PilotsDeck20230108.log Have you got an idea whats going wrong or what I did wrong? Joerg

Fragtality commented 1 year ago

I ask again: you are aware that there is a premade Profile for the ToLiss? Even when you want to structure your own Profile completely differently, you still can copy & paste some Actions from it. Could save you some time maybe 😉

Please attach the Profile, so that I can test if it is related to the Profile / the Action Settings. (StreamDeck UI -> Manage Profiles -> Right-Click on Profile -> Export)

Which Version are you using? 0.7.6? 0.7.7? ("latest" on the Mainpage, not yet under Releases)

Flightport commented 1 year ago

I ask again: you are aware that there is a premade Profile for the ToLiss? Even when you want to structure your own Profile completely differently, you still can copy & paste some Actions from it. Could save you some time maybe 😉

To be honest, no I did not yet check that, but I will do. Started without knowing, that there is a Toliss Profile allready. I will do that, to be sure you mean this profile? https://forums.x-plane.org/index.php?/files/file/83196-pilots-deck-another-streamdeck-plugin/ https://github.com/Fragtality/PilotsDeck/tree/master/Integrations/ToLiSS%20A321%20(XP)

Please attach the Profile, so that I can test if it is related to the Profile / the Action Settings. (StreamDeck UI -> Manage Profiles -> Right-Click on Profile -> Export)

I am in the office right now, but will do today evening, you are too fast for me 😉

Which Version are you using? 0.7.6? 0.7.7? ("latest" on the Mainpage, not yet under Releases)

I think 0.7.6 but will check that in the evening too to be sure.

Fragtality commented 1 year ago

To be honest, no I did not yet check that, but I will do. Started without knowing, that there is a Toliss Profile allready. I will do that, to be sure you mean this profile? https://forums.x-plane.org/index.php?/files/file/83196-pilots-deck-another-streamdeck-plugin/ https://github.com/Fragtality/PilotsDeck/tree/master/Integrations/ToLiSS%20A321%20(XP)

The later. Also available on x-plane.to . The Package on x-plane.org is "just" the Plugin.

I think 0.7.6 but will check that in the evening too to be sure.

Check the manifest.json in the Plugin-Directory - just search "Version". If it is 0.7.6, you can try the 0.7.7 Version, the Sim & Connection Handling was rewritten: https://github.com/Fragtality/PilotsDeck/raw/master/PilotsDeck-latest.zip But you need the .NET 7 Runtimes installed for that: https://dotnet.microsoft.com/en-us/download/dotnet/7.0 But please still attach that Profile.

Flightport commented 1 year ago

The later. Also available on x-plane.to . The Package on x-plane.org is "just" the Plugin.

Thanks, I downloaded and tested your configuration. After I installed the Profile and activated the 2 LUA-Scripts (I also deactivated my LUA-scripts to avoid conflicts), it works perfect. I guess my problem was, that I didn´t modify the manifest file. Now it seems to be stable.

I think 0.7.6 but will check that in the evening too to be sure. Check the manifest.json in the Plugin-Directory - just search "Version". If it is 0.7.6, you can try the 0.7.7 Version, the Sim & Connection Handling was rewritten: https://github.com/Fragtality/PilotsDeck/raw/master/PilotsDeck-latest.zip But you need the .NET 7 Runtimes installed for that: https://dotnet.microsoft.com/en-us/download/dotnet/7.0 But please still attach that Profile.

I already use 0.7.7 and also installed .NET 7.0

Now I tried my script again and get no crashes anymore. Only when I open a button for a new config and do not change the copy Action Type from MACRO to XPCMD or XPDRef StreamDeck sometimes hangs. But I can avoid that by changing the value fast enough. Find attached my config already displayed in the picture above. I would like to combine your excellent Toliss config with my script but that does not seem to be so easy. The reason is the large number of Datarefs and Commands I already defined in my LUA-scripts. I need them for the Airmanager panels for Overhead, EICAM, Radio and Transponder. But for the moment it is fine to have a stable configuration To be honest, the modification of the manifest file confused me a lot, but that is a Streamdeck-API limitation when I understand you correct.

So I will continue with my configuration and will check what I can adopt from your example.

Thanks so far, hope the config stays stable now. Joerg

Toliss A3xx.zip

Fragtality commented 1 year ago

I guess my problem was, that I didn´t modify the manifest file.

The only Time when a User should fiddle with that is for the Profile Switching with own Profiles. Besides that, Users should not touch that File (there is no Need or good Reason).

Only when I open a button for a new config and do not change the copy Action Type from MACRO to XPCMD or XPDRef StreamDeck sometimes hangs. But I can avoid that by changing the value fast enough.

I can't follow you - especially "do not change the copy Action Type from MACRO ..." ?!? What is a copy Action Type? Why would you need to do it fast enough? Unconfigured Buttons can sit there for Ages without harming anything (you can even push them) and you can change the Action Type anytime (after the Dropdown was populated).

I would like to combine your excellent Toliss config with my script but that does not seem to be so easy. The reason is the large number of Datarefs and Commands I already defined in my LUA-scripts. I need them for the Airmanager panels for Overhead, EICAM, Radio and Transponder.

Hmm well, given the Fact you've created your Lua-Scripts already, that should not be a Challenge? You can use the Actions from my Profile and customize them for your custom Datarefs and Commands. I did not want to stop you from building your own Profile/Integration. I just wanted to give a hint, that there is already a Profile which can be used as Example, Inspiration or direct use :wink:

To be honest, the modification of the manifest file confused me a lot, but that is a Streamdeck-API limitation when I understand you correct.

What exactly confused you there, what could I improve on the Readme? Yes, it is a Limitation by the StreamDeck Software: Plugins are only allowed to switch to Profiles which the Plugin includes (that's why they have to be added to the manifest). But: It makes no Sense for your Setup. Profile-Switching for XP11 is not supported. It hasn't got the DataRef for that.

Fragtality commented 1 year ago

I'll close this Issue at the end of the Day, when no further Feedback is received. Only open Issues when you have Time to answer them.

Flightport commented 1 year ago

Thank you for your response and engagement. Sorry, that I cannot answer things so fast. I have a fulltime job and this is only my hobby. So I need much more time to invest before I can answer. Will be more carful in the future, sorry for that. Please close all items.

Fragtality commented 1 year ago

I too have a fulltime Job and this is just a Hobby (or specifically a private project which consumes Time I could spend with my Hobby) . . .

So is it now still Crashing or not? If yes, please provide a Log from when it happened.

Flightport commented 1 year ago

Thanks so much for your time. I will spend more time when I have the chance and let you know. Please close the issue in the meantime, I can open it up again, if I have a crash report with log-file etc.