[X3R linux] Player ship spins on its own

Ask here if you experience technical problems with X³: Reunion, X²: The Threat, X-Tension or X-Beyond The Frontier

Moderators: timon37, Moderators for English X Forum

timon37
EGOSOFT
EGOSOFT
Posts: 508
Joined: Fri, 14. Dec 12, 11:02
x4

[X3R linux] Player ship spins on its own

Post by timon37 »

The current build has some input "debugging" code.

Run the game from the console, you will be getting a few kinds of messages, this would be preferable idle output (when you're not pressing anything).

Code: Select all

../X3/X3/s_linux/sio2.cpp : S_VbiIO2_Direct : 435 : sc          Arrows 0 0 0 0
../X3/X3/s_linux/sio2.cpp : S_VbiIO2_Direct : 595 : sc MDxy 0 0
../X3/X3/s_linux/sio2.cpp : S_VbiIO2_Direct : 435 : sc          Arrows 0 0 0 0
../X3/X3/s_linux/sio2.cpp : S_VbiIO2_Direct : 595 : sc MDxy 0 0
sc Arrows 1 0 0 0 would mean that the left arrow key is currently pressed.
sc MDxy -10 -10 would mean that the mouse has moved 10 pixels left and up.
You will also get this when you press a key:
../X3/X3/s_linux/sio2.cpp : S_VbiIO2_Direct : 361 : sc K Down 36
And when you release a key:
../X3/X3/s_linux/sio2.cpp : S_VbiIO2_Direct : 390 : sc K Up 36

There are also some for the joystick like JD1xy JD2xy these are like the mouse, and JDpov where -1 means centered.

So if you see that the arrows are constantly e.g. 1 0 1 0 when you're not pressing them then report that. Or if you see lot's of Down events that aren't from normal keypresses, or if any of the mouse joystick messages give a constant non zero reading (except pov which should report -1).
haitamsh wrote:after I first get control of the spaceship, it keeps spinning down+left as if the mouse is not calibrated, when I move the mouse it start "correcting" the movements and then go back to spinning down+left..

Edit: I tried this in both window mode and full screen mode, same issue

sysinfo:
Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz
asus sabertooth x79
Gigabyte GTX680 OC 2GB GDDR5 DX11 2xDVI HDMI DP PCI-E 1
Corsair 4x8GB Vengeance Quad Channel CL10-10-10-27
mouse: Logitech performance MX

kernel: 3.7.0-7
video driver: Nvidia 313.09
Distro: Ubuntu 12.10 - 64bit
haitamsh wrote:I tried two different keyboards same problem, but I have some extra information now:
1- if I start the game with the keyboard and mouse connected the spaceship will keep spinning, tried to disconnect both and reconnect - didn't help, kept spinning

2- if I try to start the game with only the mouse connected no keyboard it will work ok, then I reconnect the keyboard without any issues - fixes the problem.

I have no joysticks or second mouse/keyboard connected, and I am not using any mapping macros.
I also never encountered any input issues that indicates that a key is stuck in other games or daily use.
haitamsh wrote:windows are being opened when pressing r , . but it will not stop spinning. I don't have a numlock in my keyboard, as for capslock it didn't have any effect.

if you need my xinput and xkbcomp output as well:
xinput list output: http://pastebin.com/Ce18cnxR
xkbcomp output: http://pastebin.com/QhBbWAXi

let me know if there is anything else that I provide.
Thank you for your help and quick response.
Haitam
LaurensBER wrote: I can confirm this problem. Pressing the arrow keys doesn't help. I don't seem to have Scroll lock (Logitech Wave keyboard) but pressing numlock doesn't change anything.

Pressing F3 (target view?) and using the numlock keys stops the spinning but if I press F1 (my ship view) again it starts to spin again.

I don't get any scrolling in the windows in , . or r.

xinput list --long:
http://pastebin.com/KedcQqL3

xkbcomp :0 out:
http://pastebin.com/ZE7BQFmu
haitamsh
Posts: 6
Joined: Sat, 26. Jan 13, 11:32

Post by haitamsh »

I took a screenshot of the output:
https://docs.google.com/file/d/0B-Igy0d ... lwbTQ/edit

looks like it is detecting a joystick JD1xy and JD2xy (I only have the keyboard and the mouse connected)... the mouse and the keyboard looks to be working ok based on the output (they were changing when moving/pressing).

one more observation, if I disconnect the keyboard before I launch the game from ubuntu, then connect it right after it starts (when I am at main menu), press new game... I will have no issues in that scenario.
[/img]
LaurensBER
Posts: 4
Joined: Sat, 26. Jan 13, 20:06

Post by LaurensBER »

And here is mine (well, only the stuff I copied from the terminal):

http://pastebin.com/KC6hhMCn

Seems to be the same issue if I read the logs correctly.
timon37
EGOSOFT
EGOSOFT
Posts: 508
Joined: Fri, 14. Dec 12, 11:02
x4

Post by timon37 »

Great:) Might be an sdl/x11 bug or I screwed up, expect a fix or a workaround tomorrow. If it'll be a workaround I'll probably also bother you to do some more testing;p
haitamsh
Posts: 6
Joined: Sat, 26. Jan 13, 11:32

Post by haitamsh »

Great! thank you. I'll be keeping an eye out for it tomorrow :)
timon37
EGOSOFT
EGOSOFT
Posts: 508
Joined: Fri, 14. Dec 12, 11:02
x4

Post by timon37 »

Ok changed a few things, now you should see the available joysticks in the input config dialog. Tell me if there's anything other than NONE, and test what happens with each of them. NONE should result in the joystick not being used and so it should stop the spinning.
haitamsh
Posts: 6
Joined: Sat, 26. Jan 13, 11:32

Post by haitamsh »

Thank you. now I have "Microsoft Microsoft nano transceiver 2.0", the spinning stopped after I set it to "NONE" so the fix worked for me.
Thanks

Return to “X³: Reunion, X²: The Threat, X-T and X-BTF - Technical Support”