X³: TC and AP - Linux support thread
Moderators: timon37, Moderators for English X Forum
-
- EGOSOFT
- Posts: 486
- Joined: Fri, 14. Dec 12, 11:02
@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
@rene77
Thanks for more info
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
@rene77
Thanks for more info
-
- Posts: 12
- Joined: Sat, 27. Jun 15, 17:55
Thanks, copying libz.so.1 to the game directory didn't work so unless there is some symlink magic I can do with them I will wait for you to push the next update.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
@rene77
Thanks for more info
-
- Posts: 1
- Joined: Tue, 25. Apr 17, 16:33
-
- Posts: 67
- Joined: Sat, 19. Aug 06, 05:06
-
- EGOSOFT
- Posts: 486
- Joined: Fri, 14. Dec 12, 11:02
Just to clarify the "our" in your sentence includes me, I've been using gnu/linux as my main os since about 2003;)Akdor 1154 wrote:ZOMG! Upgrading to Ubuntu 17.04 seems to fix the HUD performance issue.
@Timon - thanks for the effort you are putting into supporting our platform.
Heh, I've just been trying to repro it first on 15.04 and now on 17.04 and couldn't...
On 15.04 both with mesa and fglrx:(
@andreihaiducul and anyone else with the "amd UI performance issue"
Can you give more details about your system? like:
distro (32 or 64bit):
gpu:
driver:
also save glewinfo and/or glxinfo to pastebin.com or other such.
-
- Posts: 62
- Joined: Wed, 10. Jul 13, 04:23
timon37 wrote:distro: Arch 64bitAkdor 1154 wrote: @andreihaiducul and anyone else with the "amd UI performance issue"
Can you give more details about your system? like:
distro (32 or 64bit):
gpu:
driver:
also save glewinfo and/or glxinfo to pastebin.com or other such.
gpu:driver: mesa 17.0.5 (always latest stable)Code: Select all
% lspci|grep VGA 03:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] R700 [Radeon HD 4870 X2]
glewinfo and glxinfo
This problem has been around for a long, long time and across platforms, but it just wasn't a serious one until X3AP because menus were much smaller - I want to say since X-tension but that might just be biased memory. It was certainly there in LGP's ports with older hardware and drivers (but still mesa/gallium and ATI). I don't get this issue on my laptop with intel hardware though (mesa driver non-gallium).
-
- Posts: 67
- Joined: Sat, 19. Aug 06, 05:06
I only noticed it on 16.04 and 16.10, can't really remember if I was playing regularly before then or not. I believe I was...timon37 wrote:
Heh, I've just been trying to repro it first on 15.04 and now on 17.04 and couldn't...
On 15.04 both with mesa and fglrx:(
I'm using a Radeon 7850, stock mesa only. Oibaf's updated drivers also showed this issue on the occasions I tested them.
Disregard this sentence.
-
- Posts: 106
- Joined: Sun, 24. Apr 11, 18:45
So, back playing X3 after an almost 3 year break but my X52Pro which worked then apart from the problem I posted about in 2014. Now I have the same issue as rene77 posted so something has changed in the last 3 years Could be my system though (Ubuntu 16.04 with mesa ppa). I have a fairly irritating issue with key presses in input fields not working well (have to hold key down for a second to register then get multiple copies) which I'll write more on later.rene77 wrote:Yes, the joystick ist still available and selected. If i change to NONE i have no bars at all.timon37 wrote:@rene77
Is the joystick available and selected in the top dropdown list in the input settings dialog box?
I'm seeing an issue where the joystick is selectable, but the bars don't move, however it later works in-game as expected (or rather unexpected?).
Clearly an issue but seems different from yours.
My joystick is selectable but the bars dont move. In game the axis and the buttons dont work.
Strange is that it happens since the crash to desktop.
Before i played 2 weeks without any problems with my joystick.
-
- EGOSOFT
- Posts: 486
- Joined: Fri, 14. Dec 12, 11:02
-
- Posts: 1
- Joined: Sat, 14. Mar 15, 18:52
FIX FOR Arch Linux libz / libpng issue AND corrupt savegame issue
This addresses issues raised above by Avaricia and Moderato_bei_X
I found a workaround for the issue noted (by Avaricia) with Arch Linux and the game failing to start (specifically, X3TC_config failing to start).
If Arch has lib32-libpng installed, the dynamic linking loads /usr/lib32/libpng.so (softlink to /usr/lib32/libpng16.so.16.29.0) and this in turn fails because the libz.so.1 that is packaged with the game was already loaded so the 1.2.11 version of libz against which Arch's (32-bit) libpng is compiled cannot be loaded. (At least, it appears this is the issue.)
The fix is to UNINSTALL lib32-libpng. This will require quite a few other multilib (32-bit) libraries and packages to be uninstalled as well, but when running
those other 32-bit packages requiring lib32-libpng will be removed as well. This will include lib32-gtk2, but the Steam version of X3TC_config will run without it. The GOG version will not. I can't resolve this situation with the GOG version at present.
The issue of games saved not loading (brought up by Moderato_bei_X) was also solved for me with this fix. Apparently, if one uses the LD_PRELOAD work-around OR puts a libz.so.1.2.9 in the lib subdirectory of the Steam X3TC (replacing the game-installed libz.so.1), then while the game will start, MOST games saved will not correctly load. Apparently there is significant difference between the libz packages. If you REMOVE the Arch package as described above, this issue gets fixed, too.
If you are experiencing similar troubles but running a distro that is not Arch, try removing 32-bit libpng if you can. You may have other packages requiring 32-bit libpng, and if so, you may have to decide between running those and running X3TC; that's up to you.
I found a workaround for the issue noted (by Avaricia) with Arch Linux and the game failing to start (specifically, X3TC_config failing to start).
Code: Select all
./X3TC_config: lib/libz.so.1: version 'ZLIB_1.2.9' not found (required by /usr/lib32/libpng16.so.16
The fix is to UNINSTALL lib32-libpng. This will require quite a few other multilib (32-bit) libraries and packages to be uninstalled as well, but when running
Code: Select all
pacman -Rc lib32-libpng
The issue of games saved not loading (brought up by Moderato_bei_X) was also solved for me with this fix. Apparently, if one uses the LD_PRELOAD work-around OR puts a libz.so.1.2.9 in the lib subdirectory of the Steam X3TC (replacing the game-installed libz.so.1), then while the game will start, MOST games saved will not correctly load. Apparently there is significant difference between the libz packages. If you REMOVE the Arch package as described above, this issue gets fixed, too.
If you are experiencing similar troubles but running a distro that is not Arch, try removing 32-bit libpng if you can. You may have other packages requiring 32-bit libpng, and if so, you may have to decide between running those and running X3TC; that's up to you.
-
- Posts: 106
- Joined: Sun, 24. Apr 11, 18:45
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 wrote:The input issue will be fixed in the next build, though I don't know when it'll be out.
-
- EGOSOFT
- Posts: 486
- Joined: Fri, 14. Dec 12, 11:02
Keyboard issue almost for sure (unless the sdl-events behave inconsistently between systems).adrianx wrote: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 wrote:The input issue will be fixed in the next build, though I don't know when it'll be out.
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:(
-
- Posts: 106
- Joined: Sun, 24. Apr 11, 18:45
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 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:(
-
- EGOSOFT
- Posts: 486
- Joined: Fri, 14. Dec 12, 11:02
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):
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:
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):
You'll get something like this:ls -lL /dev/input/by-id/
You'll likely see your joystick twice, once with -event-joystick and another just -joystick.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
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
-
- Posts: 106
- Joined: Sun, 24. Apr 11, 18:45
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--
Thanks.
-
- Posts: 106
- Joined: Sun, 24. Apr 11, 18:45
-
- Posts: 106
- Joined: Sun, 24. Apr 11, 18:45
-
- Posts: 106
- Joined: Sun, 24. Apr 11, 18:45
-
- Posts: 14
- Joined: Wed, 6. Nov 02, 20:31
The mesa shader cache uses zlib to compress the cache and you need at least vesion 1.2.9.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 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
Code: Select all
LD_PRELOAD=/usr/lib32/libz.so.1 %command%
-
- Posts: 4
- Joined: Thu, 6. Apr 17, 18:36
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