X³: TC and AP - Linux support thread

Ask here if you experience technical problems with X³: Terran Conflict or X³: Albion Prelude.

Moderators: timon37, Moderators for English X Forum

Post Reply
adrianx
Posts: 106
Joined: Sun, 24. Apr 11, 18:45

Post by adrianx » Mon, 8. May 17, 09:49

timon37 wrote:The input issue will be fixed in the next build, though I don't know when it'll be out.
Um, keyboard or joystick or both ? At any rate, thanks; I can muddle through the keyboard problem and am probably going to buy a Steam controller at some point (would have already but they're not sold in Norway) so will try playing with that instead of joystick and especially for X-Rebirth.

timon37
EGOSOFT
EGOSOFT
Posts: 335
Joined: Fri, 14. Dec 12, 12:02

Post by timon37 » Mon, 8. May 17, 10:16

adrianx wrote:
timon37 wrote:The input issue will be fixed in the next build, though I don't know when it'll be out.
Um, keyboard or joystick or both ? At any rate, thanks; I can muddle through the keyboard problem and am probably going to buy a Steam controller at some point (would have already but they're not sold in Norway) so will try playing with that instead of joystick and especially for X-Rebirth.
Keyboard issue almost for sure (unless the sdl-events behave inconsistently between systems).
I fixed one joystick issue, but I'm getting the impression that there's a different one, which I couldn't reproduce, so your issue probably won't be fixed:(

adrianx
Posts: 106
Joined: Sun, 24. Apr 11, 18:45

Post by adrianx » Mon, 8. May 17, 11:03

timon37 wrote:
Keyboard issue almost for sure (unless the sdl-events behave inconsistently between systems).
I fixed one joystick issue, but I'm getting the impression that there's a different one, which I couldn't reproduce, so your issue probably won't be fixed:(
Thanks for still supporting the older Xs' - have Rebirth in my library but thought I'd wait until its patched and modded to hell and back before playing ;-) (especially so I don't have to "play" the mini-game warp-tunnel).

timon37
EGOSOFT
EGOSOFT
Posts: 335
Joined: Fri, 14. Dec 12, 12:02

Post by timon37 » Fri, 12. May 17, 17:00

Hi,
The most recent fixes are out in public beta (switching instructions https://forum.egosoft.com/viewtopic.php?t=392992) so anyone who's not afraid can test them;)

I also have something I'd like those with joystick issues to try.
Open a console and do (note it's lower case L and not upper case i):
ls -lL /dev/input/by-id/
You'll get something like this:
total 0
crw-r----- 1 root root 13, 67 May 12 09:14 usb-046a_0023-event-if01
crw-r----- 1 root root 13, 66 May 12 09:14 usb-046a_0023-event-kbd
crw-r----- 1 root root 13, 68 May 12 09:14 usb-Microsoft_Comfort_Mouse_6000-event-mouse
crw-r----- 1 root root 13, 32 May 12 09:14 usb-Microsoft_Comfort_Mouse_6000-mouse
crw-r----- 1 root root 13, 81 May 12 16:53 usb-©Microsoft_Corporation_Controller_0957272-event-joystick
crw-r--r-- 1 root root 13, 2 May 12 16:53 usb-©Microsoft_Corporation_Controller_0957272-joystick
You'll likely see your joystick twice, once with -event-joystick and another just -joystick.
In the example the event-joystick one doesn't have read permissions for anyone other than root. Then the simple (albeit annoying) workaround is to just do:
sudo chmod o+r /dev/input/by-id/usb-©Microsoft_Corporation_Controller_0957272-event-joystick

adrianx
Posts: 106
Joined: Sun, 24. Apr 11, 18:45

Post by adrianx » Fri, 12. May 17, 19:23

timon37 wrote:Hi,
I also have something I'd like those with joystick issues to try.

Code: Select all

adrian@mort:~$ ls -lL /dev/input/by-id/
total 0
crw-rw----  1 root input   13, 67 May 12 16:12 usb-Clearly_Superior_Technologies._CST_Laser_Trackball-event-mouse
crw-rw----  1 root input   13, 32 May 12 16:12 usb-Clearly_Superior_Technologies._CST_Laser_Trackball-mouse
crw-rw----+ 1 root plugdev 13, 81 May 12 18:15 usb-Saitek_Saitek_X52_Pro_Flight_Control_System-event-joystick
crw-rw----+ 1 root plugdev 13,  0 May 12 18:15 usb-Saitek_Saitek_X52_Pro_Flight_Control_System-joystick
adrian@mort:~$ id
uid=1000(adrian) gid=1000(adrian) groups=1000(adrian),4(adm),24(cdrom),27(sudo),29(audio),30(dip),44(video),46(plugdev),108(lpadmin),124(sambashare),125(vboxusers),128(libvirtd)
adrian@mort:~$ sudo chmod o+r /dev/input/by-id/usb-Saitek_Saitek_X52_Pro_Flight_Control_System-*
[sudo] password for adrian: 
adrian@mort:~$ ls -lL /dev/input/by-id/
total 0
crw-rw----  1 root input   13, 67 May 12 16:12 usb-Clearly_Superior_Technologies._CST_Laser_Trackball-event-mouse
crw-rw----  1 root input   13, 32 May 12 16:12 usb-Clearly_Superior_Technologies._CST_Laser_Trackball-mouse
crw-rw-r--+ 1 root plugdev 13, 81 May 12 18:15 usb-Saitek_Saitek_X52_Pro_Flight_Control_System-event-joystick
crw-rw-r--+ 1 root plugdev 13,  0 May 12 18:15 usb-Saitek_Saitek_X52_Pro_Flight_Control_System-joystick
adrian@mort:~$ getfacl /dev/input/by-id/usb-Saitek_Saitek_X52_Pro_Flight_Control_System-*
getfacl: Removing leading '/' from absolute path names
# file: dev/input/by-id/usb-Saitek_Saitek_X52_Pro_Flight_Control_System-event-joystick
# owner: root
# group: plugdev
user::rw-
user:adrian:rw-
group::rw-
mask::rw-
other::r--

# file: dev/input/by-id/usb-Saitek_Saitek_X52_Pro_Flight_Control_System-joystick
# owner: root
# group: plugdev
user::rw-
user:adrian:rw-
group::rw-
mask::rw-
other::r--
I'm going to update my LU game with the beta and will let you know of any problems.
Thanks.

adrianx
Posts: 106
Joined: Sun, 24. Apr 11, 18:45

Post by adrianx » Fri, 12. May 17, 19:48

I should just add that the joystick is shown in the config program but doesn't seem to give any input in the game (tried throttle, joystick, various buttons).

adrianx
Posts: 106
Joined: Sun, 24. Apr 11, 18:45

Post by adrianx » Sat, 13. May 17, 13:58

Was there a new release today - I noticed Steam downloading an (seemingly large) update to X3AP just now and was curious why given I only installed it yesterday ?

adrianx
Posts: 106
Joined: Sun, 24. Apr 11, 18:45

Post by adrianx » Sat, 13. May 17, 14:47

Keyboard input problem is fixed with the beta update yesterday, thanks.

edmondo
Posts: 6
Joined: Wed, 6. Nov 02, 21:31

Post by edmondo » Mon, 15. May 17, 21:44

timon37 wrote:@Avaricia

I'll bundle a few more libs for the next build, that'll hopefully solve the issue for you.
As a workaround you can try copying them from the steam-runtime to the "X3 Terran Conflict/lib" folder.
e.g. from ~/.steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu/libz.so.1
The mesa shader cache uses zlib to compress the cache and you need at least vesion 1.2.9.

The game comes with a lower version of the library:

Code: Select all

edmondo@balrog ~/.local/share/Steam/SteamApps/common/X3 Terran Conflict/lib $ strings libz.so.1 | grep ZLIB
ZLIB_1.2.0
ZLIB_1.2.0.2
ZLIB_1.2.0.8
ZLIB_1.2.2
ZLIB_1.2.2.3
ZLIB_1.2.2.4
ZLIB_1.2.3.3
ZLIB_1.2.3.4
To workaround the issue you can preload the system libz library, something like this:

Code: Select all

LD_PRELOAD=/usr/lib32/libz.so.1 %command%

rene77
Posts: 4
Joined: Thu, 6. Apr 17, 18:36

Post by rene77 » Mon, 22. May 17, 11:40

Trotz setzen der Zugriffsrechte ist mein Joystick Problem nicht behoben.

Code: Select all

crw-rw----+ 1 root input 13, 66 Mai 22 10:11 usb-Thrustmaster_T.16000M-event-joystick
crw-rw-r--+ 1 root input 13,  0 Mai 22 10:11 usb-Thrustmaster_T.16000M-joystick

Code: Select all

crw-rw-r--+ 1 root input 13, 66 Mai 22 10:11 usb-Thrustmaster_T.16000M-event-joystick
crw-rw-r--+ 1 root input 13,  0 Mai 22 10:11 usb-Thrustmaster_T.16000M-joystick

User avatar
Authorised
Posts: 36
Joined: Fri, 4. Nov 05, 02:47

Post by Authorised » Fri, 26. May 17, 20:12

If you rename the version of libz.so.1 in the ~/.local/share/Steam/SteamApps/common/X3 Terran Conflict/lib directory then it will use the system library and load just fine on Arch.
"It's too bad she won't live. But then again, who does?" - Gaff

Avaricia
Posts: 12
Joined: Sat, 27. Jun 15, 17:55

Post by Avaricia » Tue, 30. May 17, 21:46

Thanks guys I managed to make it launch on my Arch system.

asfethan
Posts: 4
Joined: Thu, 31. Jul 14, 17:56

Post by asfethan » Mon, 19. Jun 17, 22:35

edmondo wrote: To workaround the issue you can preload the system libz library, something like this:

Code: Select all

LD_PRELOAD=/usr/lib32/libz.so.1 %command%
This! I put that to "SET LAUNCH OPTIONS..." and config is working well again. Thanks man, I really appreciate your tip.

Rinne
Posts: 13
Joined: Sat, 18. Aug 12, 13:06

Post by Rinne » Sun, 25. Jun 17, 21:20

Hi,

really nice to see X3 is still actively maintained! :)

I've got the same problems as rene77.

My joystick is recognized and working by the configuration application but not in the game.

Code: Select all

localhost /home/rinne # ls -lL /dev/input/by-id/ 
insgesamt 0
crw-rw----+ 1 root input 13, 75 25. Jun 16:47 usb-046d_Driving_Force_GT-event-joystick
crw-rw----  1 root input 13, 80 25. Jun 16:47 usb-046d_G11_Keyboard-event-kbd
crw-rw----  1 root input 13, 77 25. Jun 18:47 usb-046d_Gaming_Keyboard-event-if01
crw-rw----  1 root input 13, 76 25. Jun 16:47 usb-046d_Gaming_Keyboard-event-kbd
crw-rw----  1 root input 13, 78 25. Jun 18:47 usb-HOLTEK_ROCCAT_Kave_Headset-event-if00
crw-rw----  1 root input 13, 79 25. Jun 16:47 usb-Logitech_USB_Gaming_Mouse-event-mouse
crw-rw----+ 1 root input 13, 81 25. Jun 18:43 usb-Thrustmaster_T.Flight_Stick_X-event-joystick
localhost /home/rinne # getfa
getfacl   getfattr  
localhost /home/rinne # getfacl /dev/input/by-id/usb-Thrustmaster_T.Flight_Stick_X-event-joystick 
getfacl: Removing leading '/' from absolute path names
# file: dev/input/by-id/usb-Thrustmaster_T.Flight_Stick_X-event-joystick
# owner: root
# group: input
user::rw-
user:rinne:rw-
group::rw-
mask::rw-
other::---

Rinne
Posts: 13
Joined: Sat, 18. Aug 12, 13:06

Post by Rinne » Sun, 16. Jul 17, 17:20

Did some more testing concerning the joystick issue.

I downloaded older versions of X3 Terran Conflict via the steam console.

Results:
Version: June 29, 2015
X3TC_config: Joystick works as expected
X3TC_main: Joystick works as expected

Version: April 19, 2017
X3TC_config: Joystick recognized but input doesn't work
X3TC_main: Joystick recognized but input doesn't work

Version: May 15, 2017
X3TC_config: Joystick works as expected
X3TC_main: Joystick recognized but input doesn't work

The AP beta acts the same as the May 15 build.


Is there maybe something missing from the game that was patched in the configuration utility?

Post Reply

Return to “X³: Terran Conflict / Albion Prelude - Technical Support”