muchimi / JoystickGremlinEx

Modified version of Joystick Gremlin to add features I wanted to have but were difficult to do as just a plugin, plus I wanted to run this as 64 bit and on a more current version of Python/QT.
GNU General Public License v3.0
37 stars 6 forks source link

JG 13.40.16ex (m3) - Error by clicking RESPONSE CURVE or RESPONSE CURVE EX action results in an Uncaugth Exception #156

Closed SyFiD closed 1 month ago

SyFiD commented 1 month ago

Hello, I have problems with Joystick Gremlin from time to time, but this one drives me to despair and I hope you can find a solution.

1) I get the following error messages when I press the ADD button in the RESPONSE CURVE or RESPONSE CURVE EX action.

Screenshot 01 Screenshot 02

2) After I have clicked away the same error message several times, the RESPONSE CURVE appears.

Screenshot 04

3) However, as soon as I want to edit the curve by clicking in the curve, I get the same error message. Which I then have to click away 4 times before it disappears.

Screenshot 05 (4x)

4) I get a similar error message when I try to insert the old RESPONSE CURVE function.

Screenshot 06

Thank you for this great tool! I use it often for various sims, and also StarCitizen. Thanks in advance for your support.

system.log

muchimi commented 1 month ago

Thanks for reporting. Please see if this resolves it: https://github.com/muchimi/JoystickGremlinEx/releases/download/13.40.16ex_m/joystick_gremlin_13_40_16_m4.zip

SyFiD commented 1 month ago

Thank you for the speedy processing of the error. Unfortunately, a new error appears when I try to add RESPONSE CURVE EX. Several of these errors appear. Either Joystick Gremlin then freezes or the message repeats so often that I have to close it in the TaskManager.

system.log Screenshot 07

muchimi commented 1 month ago

Whoops. I am in the process of troubleshooting the root cause. It doesn't like the initialization process (the recursive error is a separate issue that's new because of the "fix"). more soon (tm).

SyFiD commented 1 month ago

No problem, don't stress! I don't really need this function at the moment. I just want to support you in correcting the errors.

muchimi commented 1 month ago

I was not able to duplicate the error through testing on my systems however I have hardened the code and ensured default values are present on initialization rather than expecting a curve to be there. Could be a timing issue. If this doesn't resolve the issue, we'll take another look. https://github.com/muchimi/JoystickGremlinEx/releases/download/13.40.16ex_m/joystick_gremlin_13_40_16_m6.zip

SyFiD commented 1 month ago

This has already worked well. I can now edit the curves. Now I can also insert intermediate points again. However, I now have the problem that the curve always has X-1 and Y0 as default values and not X-1 and Y-1 as usual. The Y value can only be changed by manual input, but only to the values -1, 0 or +1. Unfortunately, intermediate values are possible. Also, if I then set the Y value to -1 and then press INVERT, it is executed but the X value is reset to 0.

Screenshot 08

I also noticed that if I click on one of the presets above (Brezier 1-4), JG simply freezes without any error message.

SyFiD commented 1 month ago

And finally, a strange reaction. As soon as I click on one of the black arrows to select the first or last point of the curve, the Y value is also set to 0. The curve is then smoothed.

Screenshot 10

Screenshot 09

muchimi commented 1 month ago

I hopefully squashed this in m7. Here's a video showing the behavior in m7.

https://github.com/user-attachments/assets/ac3f7f84-f55a-4682-a93a-37858457b552

SyFiD commented 1 month ago

Thank you very much! Now it works!

SyFiD commented 1 month ago

Now I have discovered another error. When I press the CENTER button, I get this error message.

grafik

SyFiD commented 1 month ago

It seems that the END buttons have no effect for me. It does not change the curve behavior. Not even when I use the sliders.

grafik

I now get this error message when activating and deactivating the profile. Here when activating:

grafik

Here when deactivating:

grafik

muchimi commented 1 month ago

It seems that the END buttons have no effect for me. It does not change the curve behavior. Not even when I use the sliders.

grafik

Deadzone will only change the response when the input is in the range. The buttons are changing the sliders at the bottom and the deadline values. Deadzones will not change the curve visually, but will cause the input to be ignored while the input is in that range.

muchimi commented 1 month ago

I now get this error message when activating and deactivating the profile. Here when activating:

grafik

Here when deactivating:

grafik

Resolved in 16m8

SyFiD commented 1 month ago

Now I have discovered another error. When I press the CENTER button, I get this error message.

grafik

The center buttons still generate the 'Uncaught exception' error message. But the other errors have now been corrected. Thanks!

muchimi commented 1 month ago

Hi - sorry - I'm unable to pull up your screenshots. I am not having issues with the center buttons so perhaps a quick video may help?

SyFiD commented 1 month ago

Hi, Strangely enough, I had already sent a video yesterday, but somehow all my posts on Github just disappeared. So here is the video of the error message again.

https://github.com/user-attachments/assets/8596d9ca-9308-418f-b631-055cd41cab57

muchimi commented 1 month ago

See if m10 works better for you.

https://github.com/muchimi/JoystickGremlinEx/releases/download/13.40.16ex_m/joystick_gremlin_13_40_16_m10.zip

SyFiD commented 1 month ago

Thanks! It works now.