Hard Light Productions Forums

General FreeSpace => FreeSpace & FreeSpace Open Support => Topic started by: Korwin on October 08, 2018, 05:41:10 pm

Title: Joystick stopped working when I switched to nightly FSO build
Post by: Korwin on October 08, 2018, 05:41:10 pm
My joystick stopped being detected in game after I used the nightly build. It worked yesterday. It works in windows, it works in retail FS2, It works in Diaspora. Switching back to the old build doesn't help. I'm using wxlauncher, and it's also detected there. Attaching the log.

[attachment stolen by Russian hackers]
Title: Re: Joystick stopped working when I switched to nightly FSO build
Post by: ngld on October 08, 2018, 06:19:51 pm
Code: [Select]
Initializing Joystick...
Printing joystick info:
  Joystick name: X52 Professional H.O.T.A.S.
  Joystick GUID: 03000000A30600006207000000000000
  Joystick ID: 0
  Joystick device ID: 0
  No joystick is being used.

FSO still detects the joystick but thinks it isn't selected.
My guess is that unpacking the new nightly replaced your SDL2 DLL with a newer version which uses different UUIDs. You'll have to copy that file (SDL2.dll) into wxLauncher's directory and then select your joystick in wxLauncher again to fix the problem.
Title: Re: Joystick stopped working when I switched to nightly FSO build
Post by: Korwin on October 08, 2018, 06:27:28 pm
Replacing that SDL2 dll causes wxlauncher to crash on start.
"The application was unable to start correctly (0xc000007b)"
Title: Re: Joystick stopped working when I switched to nightly FSO build
Post by: Trivial Psychic on October 08, 2018, 07:38:20 pm
Important note, if you are using the 64-bit FSO, you can't use the same 64-bit sdl2.dll from that pack for the wxlauncher.  You need to download the 32-bit FSO package as well, but you only need to extract the sdl2.dll file for the wxlauncher.  You don't need to extract the rest of the package too.
Title: Re: Joystick stopped working when I switched to nightly FSO build
Post by: Korwin on October 08, 2018, 08:02:07 pm
Yes, that was it, works fine now. Thanks!