Linux Support (Beta)

Ask here if you experience technical problems with X4: Foundations.

Moderator: Moderators for English X Forum

gei3r
Posts: 4
Joined: Sun, 27. Jan 13, 19:57
x4

Re: Linux Support (Beta)

Post by gei3r » Thu, 23. Sep 21, 18:25

Kurzer Test mit 4.10 beide Addons von GOG, frisch installiert.

Die Linux Version erstellt fehlerhafte Speicherstände. Es wird z.B. in der Vorschau des zu ladenden Spielstands keine Spielzeit angezeigt. Ich denke es wird auch keine Position des Spielers gespeichert?
Nach laden des Spielstands spawnt das Spielerraumschiff direkt in oder neben einer Station? Man glitscht irgendwie in die ausgewählte Waffe, beim wechseln der Waffe springt die Ansicht mit.
Steht man vom Pilotensitz in der Außenperspektive auf, sieht man den Kopf der Spielfigur aus dem Raumschiff gucken.

Spielstände von der Windows Version funktionieren unter Linux ohne Probleme.
Spielstände die unter Linux erstellt wurden aber nicht in der Windows Version.

Hab keine Log und keine Screenshots, können bei Bedarf nachgereicht werden.

Dann warten wir mal auf einen Patch ;)

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

Re: Linux Support (Beta)

Post by CBJ » Fri, 24. Sep 21, 11:34

It sounds like you have a corrupt or modified installation. None of those things are normal for Linux players, and an un-corrupted Linux version does not have any differences that could cause any of the effects you are seeing.

meaning11
Posts: 8
Joined: Mon, 3. Oct 05, 14:05
x4

Re: Linux Support (Beta)

Post by meaning11 » Fri, 24. Sep 21, 12:03

Version 4.10, GOG, Linux, Vanilla

Auch bei mir laden die Savegames nicht, die Spielzeit wird mit 0d00h00m angezeigt.
Die xml.gz Dateien können einwandfrei entpackt werden. Dort sieht man, dass bei zahlreichen Angaben der (internationale) Punkt durch das (deutschsprachige) Komma ersetzt wurde, also bei

v4.00: time="198354.677"
v4.10: time="198354,677"

Wenn man es beim Spielereintrag manuell zurück ändert und die Datei wieder gzip'ed, wird im Auswahlmenu für die Savegames auch wieder eine Zeit angezeigt. Es handelt sich aber um einige zehntausend Einträge von Zeiten und Koordinaten, so dass manuelle Korrekturen hier nicht weiterbringen.

Alm888
Posts: 487
Joined: Sat, 14. Sep 19, 19:38
x4

Re: Linux Support (Beta)

Post by Alm888 » Fri, 24. Sep 21, 17:23

Hello!
I also confirm what Reinis posted. GOG Linux version is a disaster.
I've made a footage video to show how things look.
Also, here is a savefile to analyze.
I can not provide a logfile because the "-logfile" command line key is broken on Linux.

P.S. Version 4.00HF3 works totally fine on the same HW/SW configuration.

meaning11
Posts: 8
Joined: Mon, 3. Oct 05, 14:05
x4

Re: Linux Support (Beta)

Post by meaning11 » Sat, 25. Sep 21, 11:44

Though my problem started with the german installation of GOG 4.10,
it can be 100% reproduced with the international installation by starting a new game.

The first file saved by 4.10 is altered in the way I described above:
xml v4.00: time="198354.677"
xml v4.10: time="198354,677"

Savegames from 4.00 can be imported without problems, as they always use dots in the xml, but the first time they get saved by 4.10, they (we) are screwed.
Guessing I would say it can be related to environment variables like LC_ALL or LANG, which the code or a lib it is linking to is "respecting" in the wrong way.
Please fix

Spieler195583
Posts: 14
Joined: Sun, 16. Aug 09, 19:37
x4

Re: Linux Support (Beta)

Post by Spieler195583 » Sat, 25. Sep 21, 14:22

Hi,
I've got the problem that X4 doesn't launch any more :(

Output of Steam:
Spoiler
Show
ExecuteSteamURL: "steam://rungameid/392160"
Could not connect to X session manager: Authentication Rejected, reason : None of the authentication protocols specified are supported and h
Could not connect to X session manager: Authentication Rejected, reason : None of the authentication protocols specified are supported and h
Could not connect to X session manager: Authentication Rejected, reason : None of the authentication protocols specified are supported and h
Could not connect to X session manager: Authentication Rejected, reason : None of the authentication protocols specified are supported and h
Could not connect to X session manager: Authentication Rejected, reason : None of the authentication protocols specified are supported and h�U8�d����o�
Opted-in Controller Mask for AppId 392160: 0
GameAction [AppID 392160, ActionID 1] : LaunchApp changed task to ProcessingInstallScript with ""
GameAction [AppID 392160, ActionID 1] : LaunchApp changed task to SynchronizingCloud with ""
GameAction [AppID 392160, ActionID 1] : LaunchApp changed task to ProcessingShaderCache with ""
Fossilize INFO: Setting autogroup scheduling.
GameAction [AppID 392160, ActionID 1] : LaunchApp changed task to SiteLicenseSeatCheckout with ""
GameAction [AppID 392160, ActionID 1] : LaunchApp changed task to CreatingProcess with ""
GameAction [AppID 392160, ActionID 1] : LaunchApp waiting for user response to CreatingProcess ""
GameAction [AppID 392160, ActionID 1] : LaunchApp continues with user response "CreatingProcess"
/bin/sh\0-c\0/home/christian/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=392160 -- '/apps/app-1/steamlibrary/steamapps/common/X4 Foundations/testandlaunch'\0
Game update: AppID 392160 "", ProcID 12177, IP 0.0.0.0:0
ERROR: ld.so: object '/home/christian/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
Starting app 392160
Installing breakpad exception handler for appid(steam)/version(1631912732)
>>> Adding process 12177 for game ID 392160
GameAction [AppID 392160, ActionID 1] : LaunchApp changed task to WaitingGameWindow with ""
ERROR: ld.so: object '/home/christian/.local/share/Steam/ubuntu12_64/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS64): ignored.
GameAction [AppID 392160, ActionID 1] : LaunchApp changed task to Completed with ""
ERROR: ld.so: object '/home/christian/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
ERROR: ld.so: object '/home/christian/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 12179 for game ID 392160
ERROR: ld.so: object '/home/christian/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored.
>>> Adding process 12180 for game ID 392160
>>> Adding process 12181 for game ID 392160
>>> Adding process 12182 for game ID 392160
>>> Adding process 12183 for game ID 392160
Game update: AppID 392160 "", ProcID 12183, IP 0.0.0.0:0
RecordSteamInterfaceCreation (PID 12183): SteamUtils009 / Utils
RecordSteamInterfaceCreation (PID 12183): SteamUser020 / User
RecordSteamInterfaceCreation (PID 12183): STEAMAPPS_INTERFACE_VERSION008 /
RecordSteamInterfaceCreation (PID 12183): SteamUser020 /
RecordSteamInterfaceCreation (PID 12183): STEAMUSERSTATS_INTERFACE_VERSION011 /
RecordSteamInterfaceCreation (PID 12183): SteamUtils009 /
RecordSteamInterfaceCreation (PID 12183): SteamFriends017 /
RecordSteamInterfaceCreation (PID 12183): STEAMREMOTESTORAGE_INTERFACE_VERSION014 /
RecordSteamInterfaceCreation (PID 12183): STEAMUGC_INTERFACE_VERSION013 /
RecordSteamInterfaceCreation (PID 12183): SteamController007 /
RecordSteamInterfaceCreation (PID 12183): SteamUtils009 / Utils
RecordSteamInterfaceCreation (PID 12183): SteamController007 / Controller
RecordSteamInterfaceCreation (PID 12183): SteamInput001 / Controller
/apps/app-1/steamlibrary/steamapps/common/X4 Foundations/testandlaunch: line 14: 12183 Aborted (core dumped) ./X4 "$@" 2>&1
Game removed: AppID 392160 "", ProcID 12183
Game 392160 created interface STEAMAPPS_INTERFACE_VERSION008 /
Game 392160 created interface STEAMREMOTESTORAGE_INTERFACE_VERSION014 /
Game 392160 created interface STEAMUGC_INTERFACE_VERSION013 /
Game 392160 created interface STEAMUSERSTATS_INTERFACE_VERSION011 /
Game 392160 created interface SteamController007 /
Game 392160 created interface SteamController007 / Controller
Game 392160 created interface SteamFriends017 /
Game 392160 created interface SteamInput001 / Controller
Game 392160 created interface SteamUser020 /
Game 392160 created interface SteamUser020 / User
Game 392160 created interface SteamUtils009 /
Game 392160 created interface SteamUtils009 / Utils
Game 392160 method call count for IClientUGC::SetReturnLongDescription : 1
Game 392160 method call count for IClientUGC::ReleaseQueryUGCRequest : 1
Game 392160 method call count for IClientUGC::GetQueryUGCResult : 14
Game 392160 method call count for IClientUGC::SendQueryUGCRequest : 1
Game 392160 method call count for IClientUGC::CreateQueryUserUGCRequest : 1
Game 392160 method call count for IClientUserStats::RequestCurrentStats : 1
Game 392160 method call count for IClientAppManager::BIsDlcEnabled : 4
Game 392160 method call count for IClientUtils::RecordSteamInterfaceCreation : 13
Game 392160 method call count for IClientUtils::GetAPICallResult : 1
Game 392160 method call count for IClientUtils::GetAppID : 16
Game 392160 method call count for IClientUser::BIsSubscribedApp : 4
Game 392160 method call count for IClientUser::GetSteamID : 3
Game 392160 method call count for IClientUser::BLoggedOn : 1
Uploaded AppInterfaceStats to Steam
Exiting app 392160
Might be related to updating the gpu driver, I use a AMD RX 6800 XT. The game worked with the mesa variant in amdgpu-pro-20.45-1188099-ubuntu-20.04 but any later version prevents it from starting.

gei3r
Posts: 4
Joined: Sun, 27. Jan 13, 19:57
x4

Re: Linux Support (Beta)

Post by gei3r » Wed, 29. Sep 21, 19:28

Any news to the savegame bug with the gog version?

meaning11 found the issue, and Alm888's video show what happen when loading a corrupted savegame.

Roeleveld
Posts: 403
Joined: Tue, 17. Feb 04, 23:34
x4

Re: Linux Support (Beta)

Post by Roeleveld » Wed, 29. Sep 21, 21:25

The dot/comma issue can be caused by language/locale settings.
What are the outputs of "locale" for the people who are having this issue?

I always set my systems to "en_US.utf8"

Alm888
Posts: 487
Joined: Sat, 14. Sep 19, 19:38
x4

Re: Linux Support (Beta)

Post by Alm888 » Wed, 29. Sep 21, 21:44

Roeleveld wrote:
Wed, 29. Sep 21, 21:25
I always set my systems to "en_US.utf8"
It is "ru_RU.utf8" for me.
You are probably right in that

Code: Select all

export LANG=C
in a launch script may help. The problem is: this issue was not present in 4.0HF3 or any version prior (I've played all versions from the release, I mean for Linux, with 2.5).

Roeleveld
Posts: 403
Joined: Tue, 17. Feb 04, 23:34
x4

Re: Linux Support (Beta)

Post by Roeleveld » Thu, 30. Sep 21, 09:13

Alm888 wrote:
Wed, 29. Sep 21, 21:44
Roeleveld wrote:
Wed, 29. Sep 21, 21:25
I always set my systems to "en_US.utf8"
It is "ru_RU.utf8" for me.
You are probably right in that

Code: Select all

export LANG=C
in a launch script may help. The problem is: this issue was not present in 4.0HF3 or any version prior (I've played all versions from the release, I mean for Linux, with 2.5).
It's, apparently, also not present in the Steam version.
I only saw reports here mentioning the GoG version.

My guess is that GoG messed up Linux support again (Had issues with other games in the past that could easily be resolved) and probably forgot something there.

KlausM
EGOSOFT
EGOSOFT
Posts: 639
Joined: Wed, 6. Nov 02, 20:31
x4

Re: Linux Support (Beta)

Post by KlausM » Thu, 30. Sep 21, 12:56

There are updated X4 installers available for Linux on GOG. We hope that they resolve the issues. Please let us know if you still experience any problems.

gei3r
Posts: 4
Joined: Sun, 27. Jan 13, 19:57
x4

Re: Linux Support (Beta)

Post by gei3r » Thu, 30. Sep 21, 17:10

Fresh install with x4_foundations_4_10_efigs2_50342.sh and both addons from GOG = same error!

Thanks @ Alm888 "export LANG=C" fix the problem :)

Alm888
Posts: 487
Joined: Sat, 14. Sep 19, 19:38
x4

Re: Linux Support (Beta)

Post by Alm888 » Thu, 30. Sep 21, 20:01

KlausM wrote:
Thu, 30. Sep 21, 12:56
There are updated X4 installers available for Linux on GOG. We hope that they resolve the issues. Please let us know if you still experience any problems.
Reporting: the "efigs2" installer has not fixed the problem. Using a launch script like this:

Code: Select all

#!/bin/bash
export LANG=C
./X4 -skipintro 1>/dev/null 2>&1
circumvents the save/load and screwed interface problems (the interface problems were most likely induced by incorrectly assigned color/alpha values due to reading errors).

Something is seriously rotten in the "localization" routines of the 4.10 version (at least on GOG; maybe Steam silently assigns some environment variables as well, IDK).
gei3r wrote:
Thu, 30. Sep 21, 17:10
Thanks @ Alm888 "export LANG=C" fix the problem :)
You shall probably thank "meaning11" for that. (S)he was the one who found the problem is with comma/period mishap due to localization "crawling" into internal data structure algorithms. Fixing this with LANG variable is not a big deal (was battle-proven with "Kerbal Space Program"). But this not erases the issue; this only bypasses it.

KlausM
EGOSOFT
EGOSOFT
Posts: 639
Joined: Wed, 6. Nov 02, 20:31
x4

Re: Linux Support (Beta)

Post by KlausM » Fri, 1. Oct 21, 17:48

We have identified the problem and are preparing new Linux builds. The Linux version on Steam might be affected as well. We hope that we have an update available on Monday. Adjusting the launch script as suggested by Alm888 may help as a temporary workaround until then.

Note that you will not be able to use savegames that were saved with a broken 4.10 version on Linux. Even in the fixed version, those saves will remain broken after loading. Sorry for the inconvenience.

KlausM
EGOSOFT
EGOSOFT
Posts: 639
Joined: Wed, 6. Nov 02, 20:31
x4

Re: Linux Support (Beta)

Post by KlausM » Mon, 4. Oct 21, 11:45

The update has been released, new installers are available on GOG.

Rastuasi
Posts: 455
Joined: Mon, 1. Oct 18, 16:28
x4

Re: Linux Support (Beta)

Post by Rastuasi » Mon, 4. Oct 21, 17:55

KlausM wrote:
Fri, 1. Oct 21, 17:48
We have identified the problem and are preparing new Linux builds. The Linux version on Steam might be affected as well. We hope that we have an update available on Monday. Adjusting the launch script as suggested by Alm888 may help as a temporary workaround until then.

Note that you will not be able to use savegames that were saved with a broken 4.10 version on Linux. Even in the fixed version, those saves will remain broken after loading. Sorry for the inconvenience.
So I have the steam version and it did not seem to come across the issues mentioned earlier in the post. Already played on 4.10 well before and have been since, got the update and all is still green here.

Alm888
Posts: 487
Joined: Sat, 14. Sep 19, 19:38
x4

Re: Linux Support (Beta)

Post by Alm888 » Mon, 4. Oct 21, 20:40

KlausM wrote:
Mon, 4. Oct 21, 11:45
The update has been released, new installers are available on GOG.
I confirm, the updated version works.

gei3r
Posts: 4
Joined: Sun, 27. Jan 13, 19:57
x4

Re: Linux Support (Beta)

Post by gei3r » Wed, 6. Oct 21, 19:54

Alm888 wrote:
Mon, 4. Oct 21, 20:40
KlausM wrote:
Mon, 4. Oct 21, 11:45
The update has been released, new installers are available on GOG.
I confirm, the updated version works.
dito

freaky-m0
Posts: 13
Joined: Wed, 1. Apr 20, 21:00
x4

Re: Linux Support (Beta)

Post by freaky-m0 » Thu, 7. Oct 21, 13:50

Is there a reason why german installers for the DLCs still not exist on the GOG Linux version? Thanks in advance :)

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

Re: Linux Support (Beta)

Post by CBJ » Thu, 7. Oct 21, 13:59

The offline installers are handled entirely by GOG. If you have questions about them, it would be quicker for you to ask them directly than for us to ask them on your behalf and then pass the information on to you. We will, however, give them a poke to see what is going on here. :)

Post Reply

Return to “X4: Foundations - Technical Support”