Trine 2

Trine 2

View Stats:
Trine 2 > General Discussions > Topic Details
Kaki Apr 1, 2016 @ 9:29am
Left analog stick of Dualshock 3 working incorrectly on Debian GNU/Linux
Hey there!

After having Trine 1: EE working with the controller I tried to configure and play Trine 2. Configuration seems to just work, which is nice. However, when I move the left analog stick the character doesn't move. When I jiggle the stick a bit when holding it to the side I want to go the character moves a bit in that direction.

The gamepad works fine in jstest-gtk, Steam Big Picture and Trine 1: EE. Any Idea how to make the stick work correctly in Trine 2?

Thank you for your support.
Last edited by Kaki; Apr 1, 2016 @ 9:33am
< >
Showing 1-3 of 3 comments
MarjutFB  [developer] Apr 7, 2016 @ 3:48am 
Sorry for the delay, there has been a lot of posts to answer. Also unfortunately I don't have good news...

Unfortunately the game doesn't support PlayStation controllers, I don't know if something was changed to Trine Enchanted Edition, but the Linux version of Trine 2 only supports Xinput which makes other controllers hard or even impossible to config. Also we currently don't have plans to change this. You could try to change your controllers input with an emulator, but unfortunately I can't really help with this.

Sorry for the inconvenience, but hopefully you can still enjoy the game.

Last edited by MarjutFB; Apr 7, 2016 @ 3:48am
Kaki Apr 7, 2016 @ 4:13am 
Hello MarjutFB,

thanks for your honest answer.

I'd be lying if I said I'm not disappointed by your decision to not support common controllers even though you advertise your game as gamepad compatible. Nowhere did I read it's only compatible with speciific controllers. Furthermore, there are games out there which work with this controller, including Trine 1: EE. If you expect me, a random gamer, to fix this issue, then it must surely be solveable for you.

A common controller emulator called xboxdrv doesn't work with the Dualshock 3 over bluetooth[].

Could you please give at least some technical information on what is going wrong so I know where to tweak things?
Last edited by Kaki; Apr 7, 2016 @ 4:41am
Kaki Apr 17, 2016 @ 8:27pm 
I managed to make the game work with the gamepad by using xboxdrv to simulate an Xbox 360 controller. This a workaround. This should not be necessary! For a lot of people problems like these mean the game just doesn't work.

xboxdrv has a startup delay of around one minute when using it with the Dualshock 3 over bluetooth. This made finding a solution to this problem more stressful than what I'd hoped for.

So, I'll compile my solution here for others to use.

To pair the gamepad via bluetooth to the computer please follow this guide[].

Then, I use these udev rules

$ cat /etc/udev/rules.d/99-dualshock.rules KERNEL=="event*", SUBSYSTEM=="input", ATTRS{uniq}=="xx:xx:xx:xx:xx:xx", SYMLINK+="input/sixaxis_1" KERNEL=="js*", SUBSYSTEM=="input", ATTRS{uniq}=="xx:xx:xx:xx:xx:xx", SYMLINK+="input/sixaxis_1_js"

to give the controller deterministic names where the xx:xx:xx:xx:xx:xx is the bluetooth adress of the controller in lowercase letters.

This script

$ cat /opt/scripts/ #!/bin/bash nohup xboxdrv --evdev $1 -d -s --type xbox360 --mimic-xpad \ --evdev-absmap ABS_X=x1,ABS_Y=y1,ABS_Z=x2,ABS_RZ=y2,ABS_#48=lt,ABS_#49=rt \ --axismap -Y1=Y1,-Y2=Y2 \ --evdev-keymap BTN_TRIGGER_HAPPY1=guide,BTN_THUMB=tl,BTN_THUMB2=tr,BTN_BASE5=lb,BTN_BASE6=rb,KEY_#302=a,KEY_#301=b,BTN_DEAD=x,KEY_#300=y,BTN_TRIGGER=back,BTN_TOP=start,BTN_TOP2=du,BTN_PINKIE=dr,BTN_BASE=dd,BTN_BASE2=dl > /dev/null 2>&1 & setfacl -b $1 setfacl -b ${1}_js chmod 760 ${1}_js

is what I use to simulate the gamepad and also hide the grabbed original device from games.

I run it like this

/opt/scripts/ /dev/input/sixaxis_1

and wait for a minute for it to start. As far as I've read the delay is caused by some faulty USB initialization done by xboxdrv which needs to timeout.

Now games should be fooled into seeing not anymore the Dualshock 3 but a genuine Xbox 360 wired controller.
Last edited by Kaki; Apr 18, 2016 @ 5:34am
< >
Showing 1-3 of 3 comments
Per page: 15 30 50

Trine 2 > General Discussions > Topic Details