X³: TC and AP - Linux support thread

Ask here if you experience technical problems with X³: Terran Conflict, X³: Albion Prelude or X³: Farnham's Legacy.

Moderators: timon37, Moderators for English X Forum

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

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: 485
Joined: Fri, 14. Dec 12, 11:02
x4

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
x3tc

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: 485
Joined: Fri, 14. Dec 12, 11:02
x4

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
x3tc

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
x3tc

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
x3tc

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
x3tc

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

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

edmondo
Posts: 14
Joined: Wed, 6. Nov 02, 20:31
x4

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
x3tc

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: 38
Joined: Fri, 4. Nov 05, 01:47
x3ap

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
xr

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

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

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

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: 49
Joined: Sat, 18. Aug 12, 13:06
x4

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: 49
Joined: Sat, 18. Aug 12, 13:06
x4

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?

rmazurek
Posts: 87
Joined: Tue, 13. Aug 13, 04:04
x3tc

Post by rmazurek » Sun, 30. Jul 17, 03:07

I have identical issue with my Saitek x52 (regular, not pro).

Game setup recognize it but it is not working in the game.
It worked several updates ago.
timon37 wrote: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
It does not help.

Tembo123
Posts: 1
Joined: Thu, 3. Aug 17, 04:07

Post by Tembo123 » Thu, 3. Aug 17, 04:17

Regarding Avaricia's issue on page 42:

I fixed this by downloading the current zlib source code (1.2.11) from their website and making a slight edit to it. It was very easy.

Just extract whatever archive you download from the zlib site (.zip, .tar.gz, w/e) somewhere, then open up the main header file (zlib.h) in whatever your preferred text editor is. Then change the version number to 1.2.9 (from 1.2.11); it will be easy to locate, near the top and in a #define. Then just (in a terminal in the directory) run ./configure followed by make. Locate the new zlib you've compiled (libz.so.1.2.9), copy it into your X3 libs and rename it to libz.so.1 and you should be good to go.

Sorry if I was too detailed, but I wanted to make sure you knew exactly what I did :)

Edit: Oh, I see there were other solutions posted already. Well, no harm in listing another. I'm new to this old-school forum interface.

lumbrius
Posts: 47
Joined: Sun, 3. Apr 11, 00:36
xr

Post by lumbrius » Tue, 8. Aug 17, 21:50

Solved zlib issue by downloading 1.2.9 version from https://zlib.net/fossils/, compiling it and placing into game lib folder

User avatar
3wize
Posts: 7
Joined: Sat, 22. Jul 17, 14:31
x4

[Linux] X3AP - Steam update removed the installation

Post by 3wize » Wed, 30. Aug 17, 07:21

Yesterday Steam updated and after the update I found no games installed. Now I have to download 7.3 GB again???

This Steam thing look like junkware, any way to run the game alone ON Linux?

Thanks :)

Alan Phipps
Moderator (English)
Moderator (English)
Posts: 30368
Joined: Fri, 16. Apr 04, 19:21
x4

Post by Alan Phipps » Wed, 30. Aug 17, 19:49

Do you just mean that you can't find them listed in your Steam Library, or that all the game file folders are physically missing from Drive:\Steam\steamapps\common ?
A dog has a master; a cat has domestic staff.

Post Reply

Return to “X³: Terran Conflict / Albion Prelude / Farnham's Legacy - Technical Support”