Page 1 of 1

Joystick detected... but not really

PostPosted: 09 May 2012, 22:51
by laloi
Hy,

In Ubuntu 12.04, I can't use my xbox 360 paddle with STK.

_In STK 0.7.1, if the pad is plugged, the game reacts as if I pressed continually on the left arrow.

_In STK 0.7.3, the controller appears below the keyboard configuration but is written in red (why ?), and nothing is detected if I use it in menus, in game, or when I try to change the configuration.

This controller is configured with jstest-gtk, and works correctly with an other game (blobby-volley).

Can you say me what mean the red color in the configuration options, and how to use this joystick with STK, plz ?

PS: sorry if my english is bad, i'm french...

Re: Joystick detected... but not really

PostPosted: 10 May 2012, 00:43
by Auria
Hi,

the red color indicates that a button on the device is currently pressed
However you're supposed to be able to configure it. Can you run stk from terminal as

supertuxkart --gamepad-visualisation

And then press keys and see if they are detected correctly?

PS: Je parle français alors si c'est plus facile pour toi...

Re: Joystick detected... but not really

PostPosted: 10 May 2012, 07:18
by laloi
Hi, thank you for your answer.

When I use the command "supertuxkart --gamepad-visualisation", I see what is in the attached file, and the console say :

{l Code}: {l Select All Code}
Irrlicht Engine version 1.8.0-alpha
Linux 3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:22 UTC 2012 x86_64
Could not load sprite bank because the file does not exist: #DefaultFont
[FileManager] Data files will be fetched from: '/usr/share/games/supertuxkart/'
[FileManager] Addons files will be stored in '/home/laloi/.local/share/supertuxkart/addons'.
[translate] Env var LANGUAGE = 'fr_FR.UTF-8'
[translate] Env var LANGUAGE = 'fr_FR.UTF-8', which corresponds to 'French (France)'
Adding language fallback fr
[IrrDriver] Trying OpenGL rendering.
[IrrDriver Temp Logger] Level 3: Could not load sprite bank because the file does not exist: #DefaultFont


and there is no change if I try to use sticks and/or buttons

Re: Joystick detected... but not really

PostPosted: 10 May 2012, 07:30
by laloi
And with the command "supertuxkart --gamepad-debug", I have that :

{l Code}: {l Select All Code}
[FileManager] Data files will be fetched from: '/usr/share/games/supertuxkart/'
Irrlicht Engine version 1.8.0-alpha
Linux 3.2.0-24-generic #37-Ubuntu SMP Wed Apr 25 08:43:22 UTC 2012 x86_64
Could not load sprite bank because the file does not exist: #DefaultFont
[FileManager] Addons files will be stored in '/home/laloi/.local/share/supertuxkart/addons'.
[translate] Env var LANGUAGE = 'fr_FR.UTF-8'
[translate] Env var LANGUAGE = 'fr_FR.UTF-8', which corresponds to 'French (France)'
Adding language fallback fr
[IrrDriver] Trying OpenGL rendering.
[IrrDriver Temp Logger] Level 3: Could not load sprite bank because the file does not exist: #DefaultFont
startMusic : m_normal_filename=</usr/share/games/supertuxkart//data//music/MayDayMayhem.ogg>, gain=0.7
axis motion: gamepad_id=1 axis=0 value=-32767
axis motion: gamepad_id=1 axis=1 value=-32767
axis motion: gamepad_id=1 axis=2 value=-32767
axis motion: gamepad_id=1 axis=3 value=-32767
axis motion: gamepad_id=1 axis=4 value=-32767
axis motion: gamepad_id=1 axis=5 value=-32767
-------------------------------------
axis motion: gamepad_id=1 axis=0 value=-32767
axis motion: gamepad_id=1 axis=1 value=-32767
axis motion: gamepad_id=1 axis=2 value=-32767
axis motion: gamepad_id=1 axis=3 value=-32767
axis motion: gamepad_id=1 axis=4 value=-32767
axis motion: gamepad_id=1 axis=5 value=-32767
-------------------------------------


I cut the result, but the last 7 lines are repeated again and again...

Re: Joystick detected... but not really

PostPosted: 11 May 2012, 00:35
by Auria
Unfortunately, it looks like irrlicht does not detecty the gamepad. Irrlicht just gets the events from X, like I would expect most games do, so I'm afraid I don't know why other games detect it

Re: Joystick detected... but not really

PostPosted: 14 May 2012, 12:35
by laloi
I found what's the problem: the game does not support when there are multiple controllers (/dev/input/jsX). But my wireless keyboard / mouse is detected as a joystick.

_If my wireless keyboard / mouse is js0, and my joystick is js1, I'm in the situation described above (nothing happens when I press the buttons or axes).

_If my wireless keyboard / mouse is js1, and my joystick is js0, I can use my controller through the menus, but when I want to configure the keys, I don't have the time to put a button because STK immediately detects "Axe0-" every time.

_If my keyboard / wireless mouse is unplugged, and my joystick is js0, it works.

Re: Joystick detected... but not really

PostPosted: 14 May 2012, 16:10
by laloi
Is this a bug of the game? If so, can you tell me how to report to the developers, please?

Re: Joystick detected... but not really

PostPosted: 14 May 2012, 16:36
by Arthur
Auria is one of our two primary developers, so I think you already did. ;)

For the record, I am not the other one. hiker is.

Re: Joystick detected... but not really

PostPosted: 15 May 2012, 01:09
by Auria
That is surprising because it's supposed to work. Unfortunately this is mostly out of our control since we just rely on irrlicht for this. And furthermore, most linux users do not report this issue, so it would be difficult even for the irrlicht devs to troubleshoot this without having access to your computer :/ So if you are not a developer who can debug this yourself I'm afraid I'm not quite sure how to proceed, my gamepad works just fine on my ubuntu

Re: Joystick detected... but not really

PostPosted: 15 May 2012, 06:51
by laloi
Ok, thank you for answer