Linux Support

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

Moderator: Moderators for English X Forum

Forum rules
See full rules at Technical Support Request Rules

Required Information in all Technical Support Requests

Please ensure that you provide the following information for all questions posted in this Technical Support forum.
  • Version and language (e.g. 8.00 Hotfix 3, English, etc.).
  • Whether or not your game is modified using any third party scripts or mods (see note below).
  • The game start you originally selected for the game in which the problem occurred.
  • Exact nature of the problem, where and when it occurs and what you were doing at the time.
  • Any possibly relevant changes you have made to your game, system, or software before the issue occurred.
  • Where appropriate, additional symptoms, error messages, links to saves, screenshots and crash dump files (see this Wiki entry).
  • Your system specifications in the form of a DxDiag report and vulkaninfo (see this Wiki entry).
Failure to provide all this information will make it pretty much impossible for people to help you and may mean that it takes longer for your problem to be identified and hopefully solved. So please don't waste your own time and everyone else's by just posting something like "My game freezes. Help!!!".

If you are supplying information that will not conveniently fit into posts in this forum (approx 70,000 character limit per post), in the worst case you can split long text files across 2 consecutive posts, or ideally you can upload the data to a reputable public fileshare site (a few examples are Google Drive, DropBox or PasteBin, etc) but please don't use sites that spam advertising or require registration for downloads. Please use in your post the open public sharing link to your file(s) that will not require any account or registration for others to download.

Note: Support for third party modifications must be provided by the authors of those modifications, and any requests for such support should be posted in the appropriate thread in the Scripts and Modding forum.
sirprosik
Posts: 141
Joined: Fri, 22. May 09, 13:58
x4

Re: Linux Support

Post by sirprosik »

I am having an issue with the GoG version and the Steam version not coexisting without a reboot of the computer.
The rest is just added stuff.

I can not go from GoG to Steam or Steam to GoG without a reboot. "Something" is holding on to a single X4 and will not
let the other run until the system is rebooted.
xrogaan
Posts: 242
Joined: Tue, 31. May 11, 20:27
x4

Re: Linux Support

Post by xrogaan »

First a question to CBJ: how can the steam and GOGcom version interfere with each other? My understanding is that each version use a unique path for the user profile, since steam uses the steam user ID.
sirprosik wrote: Sat, 21. Feb 26, 17:39 I am having an issue with the GoG version and the Steam version not coexisting without a reboot of the computer.
The rest is just added stuff.

I can not go from GoG to Steam or Steam to GoG without a reboot. "Something" is holding on to a single X4 and will not
let the other run until the system is rebooted.
The game does not seem to be closing properly. I don't know which Desktop Environment you use, otherwise I would give you the GUI to use. But it may be better to know an universal troubleshooting method, so I'll give you an universal way to check on things.

First, Open a terminal.

To know if X4 is still running write:

Code: Select all

ps aux | grep X4
Here's the explanation of the command: https://explainshell.com/explain?cmd=ps+aux+%7C+grep+X4

Basically, we search for the string "X4" within le this of processes running on your machine. It'll return at least one result, which is itself (grep X4).

If there's more than one, take the number next to your username. That's the process id (PID). You can kill that process using the command (where you replace PID by the number):

Code: Select all

kill -9 PID
The '-9' option is the signal to send, which is a shorthand for SIGKILL. It means that the kernel will terminate the process regardless of its will. The default behavior of the kill command is to send a SIGTERM, which ask the process to terminate itself. Since we are operating under the assumption that the process is rebelling and doesn't want to (or can't) stop, we go directly for the kill option.

Once the process cleaned, you should be able to restart the game.

That being said, I don't know why you would want to run both copies. On a side note, I have the nosteam binary and it would run just fine by itself.
CPU: 8-core AMD Ryzen 7 5700X (-MT MCP-); 32GiB ram; GPU: AMD Radeon RX 6600; GNU/Linux Devuan
User avatar
chew-ie
Posts: 7250
Joined: Mon, 5. May 08, 00:05
x4

Re: Linux Support

Post by chew-ie »

sirprosik wrote: Sat, 21. Feb 26, 17:39 I am having an issue with the GoG version and the Steam version not coexisting without a reboot of the computer.
The rest is just added stuff.

I can not go from GoG to Steam or Steam to GoG without a reboot. "Something" is holding on to a single X4 and will not
let the other run until the system is rebooted.
Now that's a way more detailed problem description then the other posts. Sounds to me like your X4 process is still running - you can check this e.g. like this on a linux terminal:

Code: Select all

ps -x | grep X4
You should see something like that:

Code: Select all

  42621 ?        Sl     1:17 ./X4 -- %command% -skipintro -nosoundthrottle -nocputhrottle -showfps
If you kill that process you don't have to do a reboot. Killing that process is e.g. done this way on a linux terminal:

Code: Select all

kill -9 <pid> 
Replace <pid> with the process id you found out with ps -x - in my example that's the number 42621.

edit: ninja'd by xrogaan :doh:
Image
Spoiler
Show
BurnIt: Boron and leaks don't go well together...
Königinnenreich von Boron: Sprich mit deinem Flossenführer
Nila Ti: Folgt mir, ihr Kavalkade von neugierigen Kreaturen!
Tammancktall: Es ist eine Ehre für sie mich kennenzulernen...
CBJ: Thanks for the savegame. We will add it to our "crazy saves" collection [..]

:idea: Feature request: paint jobs on custom starts
sirprosik
Posts: 141
Joined: Fri, 22. May 09, 13:58
x4

Re: Linux Support

Post by sirprosik »

The game closes just fine. I can play the GoG version every day until I decide to play the steam version.
Rastuasi
Posts: 528
Joined: Mon, 1. Oct 18, 16:28
x4

Re: Linux Support

Post by Rastuasi »

chew-ie wrote: Sat, 21. Feb 26, 11:24
sirprosik wrote: Sat, 21. Feb 26, 08:23 Other issue is starting the GoG version only works through the CLI which is a known issue messages above say it is being looked into.
What known issue are you refering to?

I play the native X4 version from GOG on Fedora 43 with KDE Plasma / Wayland by using Lutris and have zero issues with that - and I don't need any additional "console tricks". So it might be very well a matter of the linux distribution in question and (more likely) the driver / software setup. (Fedora is kind of a bleeding-edge which might explain why my Wayland setup doesn't have the same issues as "CachyOS" as Rastuasi pointed out)
I have issues with Wayland on Arch, which puts Debian to shame on "bleeding edge". Wayland is about 5 years from production ready based on all the other issues I've come across. Beyond that, the issue lies in that there's mouse capture issues in a few systems when it comes to X4 + Wayland
sirprosik
Posts: 141
Joined: Fri, 22. May 09, 13:58
x4

Re: Linux Support

Post by sirprosik »

When I run. ps -x | grep X4
I get 5278 pts/0 S+ 0.00 grep X4

Like I said something is keeping the system locked to a specific X4 until reboot.

One reason to have both directories is to run the beta when it comes out
and still have GoG for current game check for bugs/differences.
Also might be useful for those which might want to have modded and unmodded
on the same system.
knight-of-ni
Posts: 4
Joined: Tue, 25. Feb 25, 05:26
x4

Re: Linux Support

Post by knight-of-ni »

PGeyer-Ego wrote: Tue, 6. Jan 26, 14:48 Hello all!

After this came up again, I took a look at the GOG build and... I managed to reproduce the issue!

The good news is that we will be fixing this in future builds, so it should no longer be an issue going forwards.
In the meantime we cannot suggest any better solution for existing versions of the game, other than just doing what you're doing and enabling the logfiles.

Thanks to allpurposemat for help with this one!

- PG
Thank you!
X_30002000
Posts: 36
Joined: Thu, 8. Apr 04, 22:52
x4

Re: Linux Support

Post by X_30002000 »

I had an issue with Linux GOG installer Update 8 hotfix 4 Base game (latest) on Ubuntu 25.10. All goes ok until it starts postinstall.sh It gives error "line 12 pipe is broken ...". I know basic scripting so I realized that there a lot of fancy lines of code to display progress for simple cat command to combine 2 files. I had to kill the postinstall.sh delete 01.dat that never finished cat and did cat manually for 01.dat and 03.dat. Game works now but why do you split these files in 1st place before adding them to the installer? Linux supports files more then 4Gb, so add them as is and remove postintall.sh. No postinstall.sh - no issue
CBJ
EGOSOFT
EGOSOFT
Posts: 55003
Joined: Tue, 29. Apr 03, 00:56
x4

Re: Linux Support

Post by CBJ »

We don't create the installer, GOG do.
User avatar
beko
Posts: 91
Joined: Thu, 11. Jun 20, 21:14
x4

Re: Linux Support

Post by beko »

X_30002000 wrote: Thu, 2. Apr 26, 23:15 I had an issue with Linux GOG installer Update 8 hotfix 4 Base game (latest) on Ubuntu 25.10. All goes ok until it starts postinstall.sh It gives error "line 12 pipe is broken ...". I know basic scripting so I realized that there a lot of fancy lines of code to display progress for simple cat command to combine 2 files. I had to kill the postinstall.sh delete 01.dat that never finished cat and did cat manually for 01.dat and 03.dat. Game works now but why do you split these files in 1st place before adding them to the installer? Linux supports files more then 4Gb, so add them as is and remove postintall.sh. No postinstall.sh - no issue
Sadly this is really on GOG and just how their process works. It can not be fixed from the outside.

See also https://beko.famkos.net/2021/03/17/x4-c ... x-and-gog/ how I used "innoextract" before with the Windows files, when the Linux files were not even provided. You may find this useful in the future when the next DLC drops and GOG takes it's sweet time.

I gave up on the GOG version btw and just got everything else on Steam during a sale. I like the idea of GOG but I hate the pain that comes with it. Simply not worth it for games that are still alive and updating.

Return to “X4: Foundations - Technical Support”