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

Issue with XJoyMap initializing #5

Open
willwinborne opened this issue Oct 27, 2021 · 4 comments
Open

Issue with XJoyMap initializing #5

willwinborne opened this issue Oct 27, 2021 · 4 comments

Comments

@willwinborne
Copy link

willwinborne commented Oct 27, 2021

Weird issue: when starting X-Plane, none of my xJoymap controls work. As soon as I open the python control panel and reload the scripts, it works totally fine. I have attached my xJoymap.ini as a .txt file, maybe that is the issue?

xjoymap.txt

@joanpc
Copy link
Owner

joanpc commented Oct 27, 2021 via email

@willwinborne
Copy link
Author

willwinborne commented Oct 27, 2021

Hi Will, Some custom plugin or plane datarefs take a little to register to the sim if xjoymaps loads before they register they won't work until you restart-them. I have to add some kind of delay before the first load. You can try to put the config on the plane folder; it may work that way. Cheers. Joan.

Hi Joan, thanks so much for your fast reply.

This is with the popular ToLiss A321. Which has many many plugins and datarefs, which would explain the issue. Unfortunately I did try the .xjm file in the aircraft’s folder, it didn’t seem to change anything for me. Although, I did not delete the original .ini in plugins when testing this, do I need to?

If you are able to add a setting with a small load delay, please do let me know and I will test it out. Obviously this isn’t a huge deal. I will look into adding it myself, but I have already looked through your code a bit and it is way over my head! Maybe adding the delay on the Xpluginenable method? I am not sure. If you can tell me where that delay might sit in the code, I will be happy to add it.

Either way, thanks for this amazing plugin, it is really important for me to have a good experience with X-Plane.

Regards,
Will

@joanpc
Copy link
Owner

joanpc commented Oct 27, 2021 via email

@willwinborne
Copy link
Author

If you add a simple delay it will freeze the sim during the delay. You'll have to register a new flight loop to run with some delay. I've implemented-it years ago but I lost the code, I don't have much time lately, sorry. Joan.

Thanks for your replies, no worries. I will just workaround the problem by reloading the scripts each flight. Thanks again for your work on this plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants