deathkiller / jazz2

🎮 · Jazz² Resurrection: Open-source reimplementation of Jazz Jackrabbit 2
https://deat.tk/jazz2/
GNU General Public License v3.0
492 stars 18 forks source link

Joypad stopped working after update to 2.7.0 #141

Closed Zombie-Ryushu closed 2 months ago

Zombie-Ryushu commented 3 months ago

On OpenSuse Linux, upon upgrading to 2.7.0, joypad support suddenly stopped working. nCine::SdlInputManager::SdlInputManager() #> Joystick 0 "Mad Catz,Inc. PS3 RF pad" - 1 hats, 4 axes, 13 buttons, 0 balls

deathkiller commented 3 months ago

I need more info, ideally full log to see if some gamepad mapping is assigned or not. And also you can check Input Diagnostics in Options if the joypad is detected.

Zombie-Ryushu commented 3 months ago

How would you like me to do that? Is there a Command line parameter for verbose output?

Zombie-Ryushu commented 3 months ago

jazz2-debug.txt Here is a startup log.

deathkiller commented 3 months ago

It looks like there is no mapping for your gamepad. I don't know why it worked before though. Can you try to download the latest experimental build (from GitHub Actions)? I fixed similar issue a few days ago. Alternatively, you can provide gamecontrollerdb.txt file with your gamepad mapping and save it to the game config directory. Or you can try GLFW version, might work better for you.

Zombie-Ryushu commented 3 months ago

03000000380700002888000001010000,Mad Catz, Inc. PS3 RF pad,platform:Linux,a:b2,b:b7,x:b1,y:b3,back:b8,guide:b12,start:b9,leftstick:-a1,rightstick:+a3,leftshoulder:b4,rightshoulder:b6,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,leftx:a0,+lefty:+a1,rightx:a2,-righty:-a3,lefttrigger:b0,righttrigger:b5,

deathkiller commented 3 months ago

The GUID doesn't match what the game expects ("0300be0d380700002888000001010000" vs "03000000380700002888000001010000"), but it should also try to match it by name. So save it into ~/.config/Jazz² Resurrection/gamecontrollerdb.txt (or the config path used by your binary, I don't remember where it's saved on OpenSuse) and try it again.

Zombie-Ryushu commented 3 months ago

Did so, no impact. No gamepads detected. Nothing changed.

deathkiller commented 3 months ago

Is there any message in the log that the mapping was assigned to joypad? It should be there. Can you send a new log, please?

Zombie-Ryushu commented 3 months ago

It may have ignored the file. jazz-debug.txt

deathkiller commented 3 months ago

Can you send here also the gamecontrollerdb.txt file?

Zombie-Ryushu commented 3 months ago

gamecontrollerdb.txt

deathkiller commented 3 months ago

The GUID was wrong (didn't match), try this one: gamecontrollerdb.txt

Zombie-Ryushu commented 3 months ago

It still failed. I still get no response from my gamepad. [gamecontrollerdb.txt](https://github.com/user-attachments/files/15774666/gamecontrollerdb.txt)

deathkiller commented 3 months ago

Can you send me a new log again?

Zombie-Ryushu commented 3 months ago

jazz-debug.txt Here.

deathkiller commented 3 months ago

This line is missing in the new log, and was in the previous log:

Joystick mapping file "/home/masterz/.config/Jazz² Resurrection/gamecontrollerdb.txt" parsed: 1 mappings in 1 lines

I don't understand why. Can you check the file is still there with the correct mapping GUID I sent you a little while ago?

Zombie-Ryushu commented 3 months ago

ls -l "/home/masterz/.config/Jazz² Resurrection/gamecontrollerdb.txt" -rw-r--r-- 1 masterz Domain Users 304 Jun 10 10:14 /home/masterz/.config/Jazz² Resurrection/gamecontrollerdb.txt gamecontrollerdb.txt

deathkiller commented 3 months ago

It should work then, I've run out of ideas. Best would be to download the latest experimental build from GitHub Actions and try that one.

deathkiller commented 2 months ago

Closing due to inactivity. Feel free to reopen if needed.