Linux Support (Beta)

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

Moderator: Moderators for English X Forum

AndyCampbell
Posts: 4
Joined: Tue, 17. Sep 19, 01:41
x4

Re: Linux Support (Beta)

Post by AndyCampbell » Thu, 3. Sep 20, 23:24

Hi Guys, I just want to add to the previous comments - I am super happy with X4 running on Linux!

I am running on Fedora + Steam + Nvidia proprietary drivers and everything works out of the box. Performance is good and the graphics look great. The only issue I have had was with logging into my egosoft account from inside the game to enable Ventures. The solution with the ssl certificate path in an earlier post on this thread (thanks andrewpc) fixed that for me.

Thanks Panos for the optimisation tips!

Thanks Egosoft for supporting the Linux platform! :D

User avatar
sgtnasty
Posts: 13
Joined: Mon, 4. May 20, 01:43
x4

Re: Linux Support (Beta)

Post by sgtnasty » Fri, 4. Sep 20, 00:20

Well, it works on my main PC using Arch and KDE, but my ThinkPad laptop (also Arch KDE) it does not launch.

EDIT: Correction

X4 now works on both my PC and my ThinkPad X1 extreme (both running Arch and KDE).

Thanks for working hard on this. I am now able to play while on all my devices.

wasted90
Posts: 244
Joined: Fri, 2. Nov 18, 03:29
x4

Re: Linux Support (Beta)

Post by wasted90 » Thu, 10. Sep 20, 01:51

Hello, after a longer break (some months) i wanted to start playing again, but i have the issue that i can't log into my egosoft account in game. I remember it worked fine before.

i get following errors in the games logfile:

Code: Select all

Logfile started, time Thu Sep 10 01:21:12 2020
[General] 0.00 'GeForce GTX 1050 Ti' NVIDIA-driver v450.66.0 (Vulkan 1.2.133) check=1
[General] 0.00 Starting new game using gamestart 'startmenu' in 3.30
[General] 232.94 ======================================
[=ERROR=] 232.94 curl_easy_perform() failed: Couldn't resolve host name
[General] 232.94 ======================================
[General] 232.94 ======================================
[=ERROR=] 232.94 VentureTracker::OnError(): function 'login' returned 'ERR_CONNECT_FAILED'
[General] 232.94 ======================================
i've read the post from andrewpc about the issue he had and that the problem was the new path from the certificates on opensuse.
i'm on arch and my certs are still in /etc/ssl/certs/ so i assume that this is not the same issue, or am i confusing something?
thanks

================
SOLUTION UPDATE:
i had forced the use of the 'steam linux runtime' (mostly to avoid compatibility issues), but the sandboxing/chroot or whatever that comes with it messed up curl and lead to my issue.
disabling steam 'linux runtime' will fix it. (right-click x4 in steam library -> properties -> disable 'force the use of a specific steam play compatibilty tool')

dtpsprt
Posts: 2800
Joined: Wed, 6. Nov 02, 20:31
x4

Re: Linux Support (Beta)

Post by dtpsprt » Mon, 21. Sep 20, 10:52

I just reinstalled a partition of Linux (Ubuntu 20.04 LTS, GTX 1660Ti, NVIDIA 440 proprietary driver) and, of course installed X4. In Win10 I had a lot of customized logos in my logos folder. When I transferred them in Linux only the logos with an extension .gz were viewable, while all the others (mostly .tga) did not appear.

Anybody else encountered such a problem?

Panos
Posts: 848
Joined: Sat, 25. Oct 08, 00:48
x4

Re: Linux Support (Beta)

Post by Panos » Mon, 28. Sep 20, 01:01

dtpsprt wrote:
Mon, 21. Sep 20, 10:52
I just reinstalled a partition of Linux (Ubuntu 20.04 LTS, GTX 1660Ti, NVIDIA 440 proprietary driver) and, of course installed X4. In Win10 I had a lot of customized logos in my logos folder. When I transferred them in Linux only the logos with an extension .gz were viewable, while all the others (mostly .tga) did not appear.

Anybody else encountered such a problem?
Did you copied them over from the windows folders also?

dtpsprt
Posts: 2800
Joined: Wed, 6. Nov 02, 20:31
x4

Re: Linux Support (Beta)

Post by dtpsprt » Mon, 28. Sep 20, 01:39

Panos wrote:
Mon, 28. Sep 20, 01:01

Did you copied them over from the windows folders also?
Yes.... .png and (mostly) .tga files. I can see them, edit them with Gimp but they remain empty squares for X4. The only ones that work are some .tga.gz (!!!) comprressed tga's that, if I decompress become blank squares too

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

Re: Linux Support (Beta)

Post by CBJ » Mon, 28. Sep 20, 09:08

With the case-sensitivity in filenames under Linux, it's possible that the Linux version is fussier about filenames for the logos as well (and yes, there may be differences in behaviour between zipped and unzipped files). Try making your TGA filenames all-lowercase if they're not already.

dtpsprt
Posts: 2800
Joined: Wed, 6. Nov 02, 20:31
x4

Re: Linux Support (Beta)

Post by dtpsprt » Mon, 28. Sep 20, 10:47

CBJ wrote:
Mon, 28. Sep 20, 09:08
With the case-sensitivity in filenames under Linux, it's possible that the Linux version is fussier about filenames for the logos as well (and yes, there may be differences in behaviour between zipped and unzipped files). Try making your TGA filenames all-lowercase if they're not already.
It worked!!! Thanks a lot

Panos
Posts: 848
Joined: Sat, 25. Oct 08, 00:48
x4

Re: Linux Support (Beta)

Post by Panos » Fri, 2. Oct 20, 12:22

CBJ wrote:
Mon, 25. Feb 19, 18:00
Currently we only support SteamOS and Ubuntu 18.04.
At the moment only the proprietary driver from nvidia and the open-source mesa/radv amd drivers are supported.

Known issues and missing features:
[*]Graphical glitches on lockboxes and jumpgates on radv

a) Manjaro on all it's versions (XFCE, Gnome, KDE) support X4 without issue for months now, make sure use latest version ofc.
Just install Steam form the package manager, login and install game.

Use distro package manager to install gamemode, no need to build from git.

Add the following to the game launch options to resolve alt tab etc even on full screen mode.
(right click the game -> Properties -> General Tab -> Set launch options).

Code: Select all

SDL_VIDEO_MINIMIZE_ON_FOCUS_LOSS=0 gamemoderun %command%
Click the Play button from Steam.

b) On graphical glitches with RADV.

Using the package managers of your distro (or not).
[*] Remove AMDGPU and AMDGPUPRO drivers (not installed by default on Manjaro). If they are existing in system, reboot after removal. (make sure the file in XORG Conf for AMD drivers is removed)
[*] Use MESA 20.2 or latest mesa-git (20.3dev as I write this) as it supports ACO by default from version 20.2. So no need to change environmental variables.
[*] 20.3 Fixes a lot of frame jumping etc.

The "Graphical glitches on lockboxes and jumpgates on radv" is been resolved.

Chocrates
Posts: 8
Joined: Sat, 17. Oct 20, 23:19

Re: Linux Support (Beta)

Post by Chocrates » Sat, 17. Oct 20, 23:24

Hey All,

New issue with X4. It was working flawlessly earlier this week and inexplicably it stopped.

Running Ubuntu 20.04. AMD Drivers. When I start the game, the game window opens but remains black. I have left it for over an hour with no changes.
I have tried reinstalling Ubuntu (I was long overdue for this), updating the open source Radeon drivers to the newest with a PPA, reinstalling X4, wiping out the config.xml, replacing config.xml with the "safe" one. (It was for x3 I think but it reset the it to a small windowed screen).

In between it working and it stopping, I made no changes to my configuration. I don't know if there was an X4 update since then that could have caused it.
None of the above made a difference.
Any idea on how I can debug this?

Edit: It looks like a hotfix dropped on Wednesday, that probably coincides with the issues.

Panos
Posts: 848
Joined: Sat, 25. Oct 08, 00:48
x4

Re: Linux Support (Beta)

Post by Panos » Sun, 18. Oct 20, 00:26

Chocrates wrote:
Sat, 17. Oct 20, 23:24
Hey All,

New issue with X4. It was working flawlessly earlier this week and inexplicably it stopped.

Running Ubuntu 20.04. AMD Drivers. When I start the game, the game window opens but remains black. I have left it for over an hour with no changes.
I have tried reinstalling Ubuntu (I was long overdue for this), updating the open source Radeon drivers to the newest with a PPA, reinstalling X4, wiping out the config.xml, replacing config.xml with the "safe" one. (It was for x3 I think but it reset the it to a small windowed screen).

In between it working and it stopping, I made no changes to my configuration. I don't know if there was an X4 update since then that could have caused it.
None of the above made a difference.
Any idea on how I can debug this?

Edit: It looks like a hotfix dropped on Wednesday, that probably coincides with the issues.
What you mean you used the X3 config?

Chocrates
Posts: 8
Joined: Sat, 17. Oct 20, 23:19

Re: Linux Support (Beta)

Post by Chocrates » Sun, 18. Oct 20, 01:32

Panos wrote:
Sun, 18. Oct 20, 00:26
Chocrates wrote:
Sat, 17. Oct 20, 23:24
Hey All,

New issue with X4. It was working flawlessly earlier this week and inexplicably it stopped.

Running Ubuntu 20.04. AMD Drivers. When I start the game, the game window opens but remains black. I have left it for over an hour with no changes.
I have tried reinstalling Ubuntu (I was long overdue for this), updating the open source Radeon drivers to the newest with a PPA, reinstalling X4, wiping out the config.xml, replacing config.xml with the "safe" one. (It was for x3 I think but it reset the it to a small windowed screen).

In between it working and it stopping, I made no changes to my configuration. I don't know if there was an X4 update since then that could have caused it.
None of the above made a difference.
Any idea on how I can debug this?

Edit: It looks like a hotfix dropped on Wednesday, that probably coincides with the issues.
What you mean you used the X3 config?
The Safe config from here https://www.egosoft.com/support/faq/faq ... version=10
Not sure if there is an equivalent for X4

Panos
Posts: 848
Joined: Sat, 25. Oct 08, 00:48
x4

Re: Linux Support (Beta)

Post by Panos » Sun, 18. Oct 20, 02:22

Chocrates wrote:
Sun, 18. Oct 20, 01:32
Panos wrote:
Sun, 18. Oct 20, 00:26
Chocrates wrote:
Sat, 17. Oct 20, 23:24
Hey All,

New issue with X4. It was working flawlessly earlier this week and inexplicably it stopped.

Running Ubuntu 20.04. AMD Drivers. When I start the game, the game window opens but remains black. I have left it for over an hour with no changes.
I have tried reinstalling Ubuntu (I was long overdue for this), updating the open source Radeon drivers to the newest with a PPA, reinstalling X4, wiping out the config.xml, replacing config.xml with the "safe" one. (It was for x3 I think but it reset the it to a small windowed screen).

In between it working and it stopping, I made no changes to my configuration. I don't know if there was an X4 update since then that could have caused it.
None of the above made a difference.
Any idea on how I can debug this?

Edit: It looks like a hotfix dropped on Wednesday, that probably coincides with the issues.
What you mean you used the X3 config?
The Safe config from here https://www.egosoft.com/support/faq/faq ... version=10
Not sure if there is an equivalent for X4
You shouldn't do such changes. These are settings from X Rebirth, ofc you will have issues if you do such things.

If you have it on steam wrote above what you have to do. Just install the game, make sure latest MESA (20.2 or better, I advice 20.3dev) and at least Kernel 5.8 are installed and use full screen mode. No file changes or anything else needed.

Chocrates
Posts: 8
Joined: Sat, 17. Oct 20, 23:19

Re: Linux Support (Beta)

Post by Chocrates » Sun, 18. Oct 20, 03:06

Ah good point, the game won't even load enough to make video setting changes.

Edit: It is definitely the hotfix. Under Beta's I can rollback to 3.30 and it works just fine.

My glxinfo

Code: Select all

chris@fluffie:~$ glxinfo | grep "Mesa"
client glx vendor string: Mesa Project and SGI
OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.3.0-devel (git-57d3178 2020-10-17 focal-oibaf-ppa)
OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.3.0-devel (git-57d3178 2020-10-17 focal-oibaf-ppa)
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.3.0-devel (git-57d3178 2020-10-17 focal-oibaf-ppa)

Panos
Posts: 848
Joined: Sat, 25. Oct 08, 00:48
x4

Re: Linux Support (Beta)

Post by Panos » Sun, 18. Oct 20, 22:54

Chocrates wrote:
Sun, 18. Oct 20, 03:06
Ah good point, the game won't even load enough to make video setting changes.

Edit: It is definitely the hotfix. Under Beta's I can rollback to 3.30 and it works just fine.

My glxinfo

Code: Select all

chris@fluffie:~$ glxinfo | grep "Mesa"
client glx vendor string: Mesa Project and SGI
OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.3.0-devel (git-57d3178 2020-10-17 focal-oibaf-ppa)
OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.3.0-devel (git-57d3178 2020-10-17 focal-oibaf-ppa)
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.3.0-devel (git-57d3178 2020-10-17 focal-oibaf-ppa)
Don't use Beta then. However on Manjaro had no issue with the Beta versions :)

Chocrates
Posts: 8
Joined: Sat, 17. Oct 20, 23:19

Re: Linux Support (Beta)

Post by Chocrates » Sun, 18. Oct 20, 22:56

Panos wrote:
Sun, 18. Oct 20, 22:54
Chocrates wrote:
Sun, 18. Oct 20, 03:06
Ah good point, the game won't even load enough to make video setting changes.

Edit: It is definitely the hotfix. Under Beta's I can rollback to 3.30 and it works just fine.

My glxinfo

Code: Select all

chris@fluffie:~$ glxinfo | grep "Mesa"
client glx vendor string: Mesa Project and SGI
OpenGL core profile version string: 4.6 (Core Profile) Mesa 20.3.0-devel (git-57d3178 2020-10-17 focal-oibaf-ppa)
OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.3.0-devel (git-57d3178 2020-10-17 focal-oibaf-ppa)
OpenGL ES profile version string: OpenGL ES 3.2 Mesa 20.3.0-devel (git-57d3178 2020-10-17 focal-oibaf-ppa)
Don't use Beta then. However on Manjaro had no issue with the Beta versions :)
Haha I am saying that vanilla DOESN"T work, but Beta -> 3.30 (presumably the old version before Wednesdays hotfix) DOES work

KMcr
Posts: 35
Joined: Sun, 17. Jun 12, 15:04
x4

Re: Linux Support (Beta)

Post by KMcr » Mon, 19. Oct 20, 09:42

Another big thank you to Egosoft for making a penguin port of this fantastic game. It means I can finally get rid of Windows entirely (only had it to play X4 and use Office). I thought it might be flaky, but for the 8 hours or so I've played so far I've seen nothing (apart from a message about Steam client not running, but that was solved by restarting Steam) that stops me enjoying the game. And it does run smoother and prettier on Ubuntu Focal than Windows on (definitely) the same hardware.

Great work all!

Panos
Posts: 848
Joined: Sat, 25. Oct 08, 00:48
x4

Re: Linux Support (Beta)

Post by Panos » Mon, 19. Oct 20, 16:40

KMcr wrote:
Mon, 19. Oct 20, 09:42
Another big thank you to Egosoft for making a penguin port of this fantastic game. It means I can finally get rid of Windows entirely (only had it to play X4 and use Office). I thought it might be flaky, but for the 8 hours or so I've played so far I've seen nothing (apart from a message about Steam client not running, but that was solved by restarting Steam) that stops me enjoying the game. And it does run smoother and prettier on Ubuntu Focal than Windows on (definitely) the same hardware.

Great work all!
Yeah posted above same system, tested with 2 different GPUs, the game works 20% better on Linux than Windows 10. And saving is really fast process too.

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

Re: Linux Support (Beta)

Post by timon37 » Fri, 23. Oct 20, 16:33

@Chocrates
I'll need your full vulkaninfo output, easiest to throw it on pastebin.com or some such.

Besides that temporarily switch back to the official/vanilla release.
In steam game properties set launch option: -logfile log.txt
Then launch the game and let it crash.
Then it should create log.txt in your private folder ~/.config/EgoSoft/X4/<steam-user-id>/log.txt

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

Re: Linux Support (Beta)

Post by Alm888 » Fri, 23. Oct 20, 18:17

timon37 wrote:
Fri, 23. Oct 20, 16:33
In steam game properties set launch option: -logfile log.txt
Then launch the game and let it crash.
Then it should create log.txt in your private folder ~/.config/EgoSoft/X4/<steam-user-id>/log.txt
Just out of curiosity, does the "-logfile" option work with non-steam releases (i. e. "GOG")? I've tried to launch, but the game just hangs, failing even to initialize the window (only the window header "X4" is visible, otherwise it is just a "screenshot" of whatever was shown prior to launch). Everything works fine without this option (3.30HF1).

Post Reply

Return to “X4: Foundations - Technical Support”