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
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: 30349
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.

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

Post by 3wize » Thu, 31. Aug 17, 00:23

Alan Phipps wrote: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 ?
I have not checked if the files was there.
On the help online I read Steam installer should have recognised the installation files already present on the hd, skipping the download. But anyway Steam downloaded the whole game again.

Junaru
Posts: 3
Joined: Tue, 21. Nov 17, 17:26

Post by Junaru » Tue, 21. Nov 17, 17:58

As others have noted the controller suport is probably broken in current steam release. Im experiencing the same issues with XBOX360 wireless controller: the controller is detected and works in X3AP_config launcher but not in game. All settings default (Reset to XBOX controller). Fresh install, no mods.
The provided sugestion to check permissions on event devices does not help:

Code: Select all

 $ ls -lL /dev/input/by-id/
total 0
crw-rw----  1 root input 13, 64 Nov 21 17:47 usb-05ac_0256-event-kbd
crw-rw----  1 root input 13, 65 Nov 21 17:47 usb-05ac_0256-if01-event-mouse
crw-rw----  1 root input 13, 32 Nov 21 17:47 usb-05ac_0256-if01-mouse
crw-rw----  1 root input 13, 68 Nov 21 17:47 usb-1bcf_USB_Optical_Mouse-event-mouse
crw-rw----  1 root input 13, 33 Nov 21 17:47 usb-1bcf_USB_Optical_Mouse-mouse
crw-rw----  1 root input 13, 67 Nov 21 17:47 usb-DATACOMP_SteelS쀁Љ̒DATA-event-if01
crw-rw----  1 root input 13, 66 Nov 21 17:47 usb-DATACOMP_SteelS쀁Љ̒DATA-event-kbd
crw-rw----+ 1 root input 13, 71 Nov 21 18:34 usb-©Microsoft_Xbox_360_Wireless_Receiver_for_Windows_E0A377C0-event-joystick
crw-rw-r--+ 1 root input 13,  0 Nov 21 18:34 usb-©Microsoft_Xbox_360_Wireless_Receiver_for_Windows_E0A377C0-joystick

$ ls -la /dev/input/by-id/
total 0
drwxr-xr-x 2 root root 220 Nov 21 18:34 .
drwxr-xr-x 4 root root 480 Nov 21 18:34 ..
lrwxrwxrwx 1 root root   9 Nov 21 17:47 usb-05ac_0256-event-kbd -> ../event0
lrwxrwxrwx 1 root root   9 Nov 21 17:47 usb-05ac_0256-if01-event-mouse -> ../event1
lrwxrwxrwx 1 root root   9 Nov 21 17:47 usb-05ac_0256-if01-mouse -> ../mouse0
lrwxrwxrwx 1 root root   9 Nov 21 17:47 usb-1bcf_USB_Optical_Mouse-event-mouse -> ../event4
lrwxrwxrwx 1 root root   9 Nov 21 17:47 usb-1bcf_USB_Optical_Mouse-mouse -> ../mouse1
lrwxrwxrwx 1 root root   9 Nov 21 17:47 usb-DATACOMP_SteelS쀁̄Љ̒DATA-event-if01 -> ../event3
lrwxrwxrwx 1 root root   9 Nov 21 17:47 usb-DATACOMP_SteelS쀁̄Љ̒DATA-event-kbd -> ../event2
lrwxrwxrwx 1 root root   9 Nov 21 18:34 usb-©Microsoft_Xbox_360_Wireless_Receiver_for_Windows_E0A377C0-event-joystick -> ../event7
lrwxrwxrwx 1 root root   6 Nov 21 18:34 usb-©Microsoft_Xbox_360_Wireless_Receiver_for_Windows_E0A377C0-joystick -> ../js0

$ groups
wheel input users
The button/axis mappings look bound in the ingame controller meniu.
Tested in both Xorg and Wayland sessions under Archlinux. The controller works fine in other games (XCOM2).

Is there any active public testing branch we can try? (the link with instructions in page #43 just redirects back to forum index)

EDIT1: the forum link for betas works now, probably didnt have access due to my account being very new.

steve_v
Posts: 157
Joined: Sun, 12. Jun 16, 08:39
x4

Post by steve_v » Thu, 23. Nov 17, 09:03

Wow, this is still being updated :D

I should probably shut up and be grateful, but I just installed the latest (3.3) update (GOG), and I note a couple of minor annoyances:
Mouse sensitivity seems lower than in 3.2, is there a way to adjust this?
The gameplay option "run game in background" appears no longer work - I set it to "no", alt-tab out or the game and it keeps running. If it's relevant, I'm running KDE/Plasma on Debian buster/testing.
Ed. Sometimes it works. ~30%. If I hit alt+tab real quick...

Aside, I'd like to test the latest betas - Is there any way to get these without installing satan... er, Steam and buying the game again?

CBJ
EGOSOFT
EGOSOFT
Posts: 51725
Joined: Tue, 29. Apr 03, 00:56
x4

Post by CBJ » Thu, 23. Nov 17, 12:02

Unfortunately it's simply not practical for us to go through the full process of preparing builds for multiple distribution platforms for beta versions as well as release ones.

Junaru
Posts: 3
Joined: Tue, 21. Nov 17, 17:26

Post by Junaru » Thu, 23. Nov 17, 16:58

I think i got the controller problem figured out.

The hint was provided by article at https://sites.google.com/site/sbobovyc/ ... on-prelude
It mentions the game is using SDL2 for gamepad support and i remembered seeing libSDL in the 'lib' folder inside the main game folder.

Removing "lib/libSDL2-2.0.so.0" from the game folder makes the game use the libSDL provided by your distribution and in my case made the XBOX360 controller work in both launcher and in game.

Hope this is helpful for anyone else with simmilar problem.

steve_v
Posts: 157
Joined: Sun, 12. Jun 16, 08:39
x4

Post by steve_v » Fri, 24. Nov 17, 12:19

Okay, so this is bloody annoying, and it seems it got lost behind the "no betas for non steam" boilerplate.

So I'll ask it again:
How do I change mouse sensitivity? It's far lower than my desktop, and far lower than makes any sense.

I've looked in the launcher options, the in-game options, and Config.yaml. This is a basic setting that every other game I own has. It must be in there somewhere, so where is it?

Did "Fixed various minor user interface issues" in the release notes actually mean "make the player lift the mouse to reach the other side of the screen"? The mind boggles.

Yggdrasill
Posts: 28
Joined: Sat, 15. Jun 13, 00:14
x3ap

Post by Yggdrasill » Sat, 25. Nov 17, 00:15

So I just upgraded to a Ryzen 7 1700X coming from a very old Phenom II 965 and the game now renders at around 65-85 FPS using an R9 380 graphics card. This is acceptable, but it really should be higher. I can confirm that the problem still exists as when you disable the game's HUD then the game runs at ~120 FPS in exactly the same scene.

timon37, if you want to reproduce the pretty bad performance some people have reported, try using a system with an older or slow CPU, as whatever keeps the game's performance down seems to be CPU bound.

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

Post by timon37 » Tue, 28. Nov 17, 12:16

@3wize

Once you downloaded the game through steam you should be able to just copy it anywhere and run it without steam.
However either your system has to have the required libraries, or you'll have to copy them from the steam-runtime.

You can see what's used by running "steam -console" from a terminal and changing the last line in the testandlaunch script to: ldd ./$cmd. Then it'll print the full paths of what's used in the terminal.

@steve_v

There's no in-game mouse sensitivity setting unfortunately.
From what I can see the issue is likely mouse acceleration. The base sensitivity itself seems to match but in fullscreen SDL2 seems to not do the standard acceleration math.
There's a few different settings/paths/layers for this (as usual:|).
What I can see locally is that e.g. using "xset m 10/1 10" I get very sharp acceleration on the desktop but not in-game, and the unaccelerated speed is identical. The typical default is "xset m 2/1 4" you can query current settings with "xset q", and it's probably adjusted on your system to be more extreme (via standard gnome/kde control panel)?
There's also a bunch of other settings that affect this and it depends on whether your mouse is used via an old driver, or evdev.
https://wiki.archlinux.org/index.php/Mouse_acceleration

I'm also thinking there might be some issue with either our libsdl2 or the steam-runtime which block/overrides the system settings somehow:/

Can you investigate this a bit further on your system and see if you come up with any conclusions, mainly about what is affected by xset m (and other settings) on your system (e.g. desktop, x3, other games, other 32bit games using sdl2 fullscreen).

A workaround is playing in windowed mode (borderless), with a good window manager you can easily position the game top-level, and effectively make it like fullscreen, with the added benefit of being able to use other programs on different screens easily.

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

Post by timon37 » Tue, 28. Nov 17, 15:19

Regarding the problem that a gamepad/joystick works in the input-config dialog, but doesn't in-game I'm finding that alt-tabbing out of the game and back into it fixes it for me.
Can anyone confirm/deny and/or elaborate on any input issues they're having?

@Junaru could you test that as well? In steam, if you right click on the game, properties, local files, "verify integrity of game files" it'll refetch libsdl2.

User avatar
bernoud
Posts: 260
Joined: Fri, 21. Aug 09, 21:34
x3tc

Post by bernoud » Thu, 7. Dec 17, 06:20

Have an issue with TC on linux Arch. Steam is working very well, and Divinity original sin enhanced edition and Stellaris Utopia too.

Code: Select all

[mnan@PC1]: ~>$ clear
[mnan@PC1]: ~>$ steam steam://rungameid/2820
/home/mnan/.local/share/Steam/steam.sh: ligne 154: VERSION_ID : variable sans liaison
/home/mnan/.local/share/Steam/steam.sh: ligne 154: VERSION_ID : variable sans liaison
Running Steam on arch  64-bit
/home/mnan/.local/share/Steam/steam.sh: ligne 154: VERSION_ID : variable sans liaison
STEAM_RUNTIME is enabled automatically
Pins up-to-date!
Installing breakpad exception handler for appid(steam)/version(1509425745)
Installing breakpad exception handler for appid(steam)/version(1509425745)
Installing breakpad exception handler for appid(steam)/version(1509425745)
Installing breakpad exception handler for appid(steam)/version(1509425745)
Installing breakpad exception handler for appid(steam)/version(1509425745)
Installing breakpad exception handler for appid(steam)/version(1509425745)
Installing breakpad exception handler for appid(steam)/version(1509425745)
Installing breakpad exception handler for appid(steam)/version(1509425745)
Installing breakpad exception handler for appid(steam)/version(1509425745)
Installing breakpad exception handler for appid(steam)/version(1509425745)
Installing breakpad exception handler for appid(steam)/version(1509425745)
Installing breakpad exception handler for appid(steam)/version(1509425745)
Installing breakpad exception handler for appid(steam)/version(1509425745)
Installing breakpad exception handler for appid(steam)/version(1509425745)
Installing breakpad exception handler for appid(steam)/version(1509425745)
Installing breakpad exception handler for appid(steam)/version(1509425745)

** (steam:4373): WARNING **: Unknown device type 14

** (steam:4373): WARNING **: Could not create object for /org/freedesktop/NetworkManager/Devices/1: unknown object type

** (steam:4373): WARNING **: Ignoring invalid property 'interface-name'

** (steam:4373): WARNING **: Unknown setting 'proxy'

** (steam:4373): WARNING **: Ignoring invalid property 'route-data'

** (steam:4373): WARNING **: Ignoring invalid property 'dns-priority'

** (steam:4373): WARNING **: Ignoring invalid property 'gateway'

** (steam:4373): WARNING **: Ignoring invalid property 'address-data'

** (steam:4373): WARNING **: Ignoring invalid property 'route-data'

** (steam:4373): WARNING **: Ignoring invalid property 'dns-priority'

** (steam:4373): WARNING **: Ignoring invalid property 'address-data'

** (steam:4373): WARNING **: Ignoring invalid property 'autoconnect-priority'

** (steam:4373): WARNING **: Unknown setting 'proxy'

** (steam:4373): WARNING **: Ignoring invalid property 'route-data'

** (steam:4373): WARNING **: Ignoring invalid property 'address-data'

** (steam:4373): WARNING **: Ignoring invalid property 'route-data'

** (steam:4373): WARNING **: Ignoring invalid property 'address-data'

** (steam:4373): WARNING **: Ignoring invalid property 'route-data'

** (steam:4373): WARNING **: Ignoring invalid property 'address-data'

** (steam:4373): WARNING **: Unknown setting 'proxy'

** (steam:4373): WARNING **: Ignoring invalid property 'route-data'

** (steam:4373): WARNING **: Ignoring invalid property 'address-data'

** (steam:4373): WARNING **: Unknown setting 'proxy'

** (steam:4373): WARNING **: Ignoring invalid property 'route-data'

** (steam:4373): WARNING **: Ignoring invalid property 'address-data'

** (steam:4373): WARNING **: Ignoring invalid property 'route-data'

** (steam:4373): WARNING **: Ignoring invalid property 'address-data'
[1207/061225.981975:ERROR:web_plugin_impl.cc(38)] Widevine registration is not supported after context initialization
[1207/061226.983026:ERROR:web_plugin_impl.cc(38)] Widevine registration is not supported after context initialization
[1207/061227.984008:ERROR:web_plugin_impl.cc(38)] Widevine registration is not supported after context initialization
[1207/061228.984735:ERROR:web_plugin_impl.cc(38)] Widevine registration is not supported after context initialization
Setting breakpad minidump AppID = 769
Steam_SetMinidumpSteamID:  Caching Steam ID:  76561197960265728 [API loaded no]
Installing breakpad exception handler for appid(steam)/version(1509425745)
[1207/061229.987345:ERROR:web_plugin_impl.cc(38)] Widevine registration is not supported after context initialization
Installing breakpad exception handler for appid(steam)/version(1509425745)
Generating new string page texture 2: 48x256, total string texture memory is 49,15 KB
Generating new string page texture 3: 256x256, total string texture memory is 311,30 KB
Installing breakpad exception handler for appid(steam)/version(1509425745)
roaming config store loaded successfully - 265 bytes.
migrating temporary roaming config store
Failed to init SteamVR because it isn't installed
ExecCommandLine: "'/home/mnan/.local/share/Steam/ubuntu12_32/steam' 'steam://rungameid/2820'"
ExecSteamURL: "steam://rungameid/2820"
System startup time: 13,40 seconds
process 4373: arguments to dbus_connection_ref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2656.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2794.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2794.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_ref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2656.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2794.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2794.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2794.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_ref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2656.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2794.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2794.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2794.
This is normally a bug in some application using the D-Bus library.
GameAction [AppID 2820, ActionID 1] : LaunchApp changed task to SynchronizingCloud with ""
Generating new string page texture 71: 384x256, total string texture memory is 704,51 KB
Generating new string page texture 72: 64x256, total string texture memory is 770,05 KB
GameAction [AppID 2820, ActionID 1] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 2820, ActionID 1] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 2820, ActionID 1] : LaunchApp waiting for user response to CreatingProcess ""
GameAction[AppID 2820, ActionID 1] : LaunchApp continues with user response "CreatingProcess"
Opted-in Controller Mask: 0
Game update: AppID 2820 "X3: Terran Conflict", ProcID 4436, IP 0.0.0.0:0
>>> Adding process 4436 for game ID 2820
GameAction [AppID 2820, ActionID 1] : LaunchApp changed task to WaitingGameWindow with ""
ERROR: ld.so: object '/home/mnan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
GameAction [AppID 2820, ActionID 1] : LaunchApp changed task to Completed with ""
ERROR: ld.so: object '/home/mnan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/mnan/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
pid 4442 != 4437, skipping destruction (fork without exec?)
>>> Adding process 4437 for game ID 2820
ERROR: ld.so: object '/home/mnan/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
>>> Adding process 4438 for game ID 2820
>>> Adding process 4439 for game ID 2820
ERROR: ld.so: object '/home/mnan/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
>>> Adding process 4440 for game ID 2820
>>> Adding process 4441 for game ID 2820
./X3TC_config: lib/libz.so.1: version `ZLIB_1.2.9' not found (required by /usr/lib32/libpng16.so.16)
>>> Adding process 4443 for game ID 2820
>>> Adding process 4444 for game ID 2820
>>> Adding process 4445 for game ID 2820
>>> Adding process 4446 for game ID 2820
Game removed: AppID 2820 "X3: Terran Conflict", ProcID 4436 
>>> Adding process 4447 for game ID 2820
>>> Adding process 4448 for game ID 2820
No cached sticky mapping in ActivateActionSet.>>> Adding process 4449 for game ID 2820
Installing breakpad exception handler for appid(steam)/version(1509425745)
Installing breakpad exception handler for appid(steam)/version(1509425745)
process 4373: arguments to dbus_connection_ref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2656.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2794.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2794.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_ref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2656.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2794.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2794.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2794.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_ref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2656.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2794.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2794.
This is normally a bug in some application using the D-Bus library.
process 4373: arguments to dbus_connection_unref() were incorrect, assertion "connection->generation == _dbus_current_generation" failed in file ../../dbus/dbus-connection.c line 2794.
This is normally a bug in some application using the D-Bus library.
Installing breakpad exception handler for appid(steam)/version(1509425745)
Installing breakpad exception handler for appid(steam)/version(1509425745)
Any suggestion ?
Some installed stuff :

Code: Select all

 |1.) core/dbus [INSTALLED: 1.12.2-1]
 |        Freedesktop.org message bus system
 |4.) extra/dbus-glib [INSTALLED: 0.108-1]
 |        GLib bindings for DBUS
 |9.) extra/kdbusaddons [INSTALLED: 5.40.0-1]
 |        Addons to QtDBus
 |11.) extra/libdbusmenu-qt4 [INSTALLED: 0.9.3+16.04.20160218-1]
 |        A library that provides a Qt4 implementation of the DBusMenu spec
 |12.) extra/libdbusmenu-qt5 [INSTALLED: 0.9.3+16.04.20160218-1]
 |        A library that provides a Qt implementation of the DBusMenu spec
 |13.) extra/modemmanager-qt [INSTALLED: 5.40.0-1]
 |        Qt wrapper for ModemManager DBus API
 |14.) extra/python-dbus [INSTALLED: 1.2.4-2]
 |        Python 3.6 bindings for DBUS
 |15.) extra/python-dbus-common [INSTALLED: 1.2.4-2]
 |        Common dbus-python files shared between python-dbus and python2-dbus
 |16.) extra/python2-dbus [INSTALLED: 1.2.4-2]
 |        Python 2.7 bindings for DBUS
 |17.) community/dbus-c++ [INSTALLED: 0.9.0-7]
 |        A C++ API for D-BUS
 |32.) multilib/lib32-dbus [INSTALLED: 1.12.2-1]
 |        Freedesktop.org message bus system (32-bit)
 |33.) multilib/lib32-dbus-glib [INSTALLED: 0.108-1]
 |        GLib bindings for DBUS
A l'abordage ! est le sujet réunissant tutoriaux et vidéos d'abordages de vaisseaux !
10 000 Lasers de réparation, X3TC vanilla exploit

User avatar
ezra-r
Posts: 3420
Joined: Fri, 14. Oct 05, 21:04
x4

Re: FIX FOR Arch Linux libz / libpng issue AND corrupt savegame issue

Post by ezra-r » Fri, 8. Dec 17, 14:57

fauxmight wrote: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).

Code: Select all

./X3TC_config: lib/libz.so.1: version 'ZLIB_1.2.9' not found (required by /usr/lib32/libpng16.so.16
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

Code: Select all

pacman -Rc lib32-libpng
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.
You are the man!!

rowdog
Posts: 1
Joined: Sun, 10. Dec 17, 09:14
x3tc

Post by rowdog » Thu, 14. Dec 17, 21:46

Authorised wrote: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.
I think this is the best fix and it has worked for nearly 1000 hours now. The problem with ripping out all the lib32 stuff is that you might want to use it for something else. e.g. playing some other game on wine.

reteo
Posts: 4
Joined: Wed, 15. Jun 16, 19:26
x4

Post by reteo » Mon, 18. Dec 17, 05:36

I had the same problem using a Gentoo system. Considering the system is designed to have libraries in both 32- and 64-bit formats, this confused me.

However, I found the solution to the ZLIB error message was rather simple. Delete all instances of libz.so.* from your game's "lib" and "game/lib" folders (the faulty library is in both). This forces the game to use the OS-installed ZLib instead, which will work correctly.

Granted, you'll have to repeat the steps when updating, but still, there you go.

Valkeru
Posts: 1
Joined: Fri, 5. Jan 18, 10:28

Post by Valkeru » Fri, 5. Jan 18, 10:33

Hello. I have some problems with launching:

Code: Select all

../X3/s_linux/init.cpp : S_GetCPUSpeed : 341 : dStub
../X3/s_linux/sdl2/sio.cpp : main : 1250 : dPStub: atexit (_quit);
../X3/s_linux/init.cpp : XMenuInit : 254 : dStub
../X3/s_linux/simd_float.cpp : lgp_get_cpu_flags : 12 : dStub
ERROR: CPUID is not supported, can't detect CPU features
Trying to continue anyway with minimal settings
Nothing happens after this messages. How it may be fixed?

Strace:

Code: Select all

access("/proc/cpuinfo", F_OK)           = 0
openat(AT_FDCWD, "/proc/cpuinfo", O_RDONLY) = 6
fstat64(6, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
read(6, "processor\t: 0\nvendor_id\t: Authen"..., 1024) = 1024
read(6, "nment\t: 64\naddress sizes\t: 48 bi"..., 1024) = 1024
read(6, "gs\t\t: fxsave_leak sysret_ss_attr"..., 1024) = 1024
read(6, " vmmcall arat npt lbrv svm_lock "..., 1024) = 1024
read(6, "misalignsse 3dnowprefetch osvw i"..., 1024) = 1024
read(6, "clmulqdq monitor ssse3 cx16 sse4"..., 1024) = 1024
read(6, "call nx mmxext fxsr_opt pdpe1gb "..., 1024) = 690
read(6, "", 1024)                       = 0
close(6)                                = 0
getpid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
gettid()                                = 16347
pipe([6, 7])                            = 0
gettid()                                = 16347
socket(AF_INET, SOCK_STREAM, IPPROTO_TCP) = 8
fcntl64(8, F_GETFD)                     = 0
fcntl64(8, F_SETFD, FD_CLOEXEC)         = 0
setsockopt(8, SOL_TCP, TCP_NODELAY, [1], 4) = 0
connect(8, {sa_family=AF_INET, sin_port=htons(57343), sin_addr=inet_addr("127.0.0.1")}, 16) = 0
getpid()                                = 16347
gettid()                                = 16347
send(8, "\r\0\0\0", 4, MSG_NOSIGNAL)    = 4
send(8, "\t\1\0\0\0\333?\0\0\333?\0\0", 13, MSG_NOSIGNAL) = 13
poll([{fd=8, events=POLLIN}], 1, 180000) = 1 ([{fd=8, revents=POLLIN}])
recv(8, "\f\0\0\0\7", 5, 0)             = 5
recv(8, "\25\0\0*\25\0\0\305\"\200\356", 11, 0) = 11
poll([{fd=8, events=POLLIN}], 1, 0)     = 0 (Timeout)
poll([{fd=8, events=POLLIN}], 1, 180000
UPD: Not actual, solved with reboot.

steve_v
Posts: 157
Joined: Sun, 12. Jun 16, 08:39
x4

Post by steve_v » Fri, 19. Jan 18, 12:12

timon37 wrote:Can you investigate this a bit further on your system and see if you come up with any conclusions, mainly about what is affected by xset m (and other settings) on your system (e.g. desktop, x3, other games, other 32bit games using sdl2 fullscreen)
My desktop (Plasma)/Xorg build uses libinput, and xset is therefore irrelevant. xset m affects nothing, X3 included.

Changing the mouse acceleration with xinput affects the desktop and everything else I have installed, except X3, which appears to have no mouse acceleration at all and ignores any xorg settings for such.
I do not have any other fullscreen 32bit SDL applications on hand, if you can suggest a test case I will try it.

Incidentally, I have just moved from Debian Stable to Artix (Arch) and see exactly the same problem, so I doubt system installed libraries are at fault here.
No difference observed when starting with / without the bundled libSDL loaded either.
timon37 wrote:A workaround is playing in windowed mode
This is ridiculous, kludgy window manager overrides are not the answer, please implement a mouse sensitivity setting like a sane developer.

You've been digging around in the input code anyway WRT controllers, why do we get input scaling there and not for mouse? Both input sources are via libsdl, no?

Post Reply

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