Linux Support

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

Moderator: Moderators for English X Forum

linuxastronaut
Posts: 1
Joined: Fri, 1. Mar 19, 16:02

Re: Linux Support (Beta)

Post by linuxastronaut »

Hi I just purchased X4: Foundations and am currently downloading it. I will post any bugs or crashes I may encounter. Thank you for the Linux port, it's much appreciated!
Distribution Base: Ubuntu 18.04.1 64bit LTS
CPU Model: Intel i7-6700K, 4x 4.00GHz, 8MB Cache
GPU Model: Nvidia GeForce GTX 1060 6GB | Palit Super Jetstream
GPU Driver: Nivida 415.27 Proprietary Driver
RAM: 16GB
Monitor Resolution: 1920x1080
CulunTse
Posts: 153
Joined: Mon, 15. Jun 15, 08:10
x4

Re: Linux Support (Beta)

Post by CulunTse »

radcapricorn wrote: Fri, 1. Mar 19, 06:37
Cg089 wrote: Fri, 1. Mar 19, 02:19 A more minor bug - custom ship logos seem to be broken on Linux... Tried .png and .dds.
It's maybe possible that this is related to the uppercase name thing...
My logo works fine (png, lowercase letters). Though I wouldn't think case matters here. Or rather, I'd expect it not to.
Linux filesystem handling works differently than windows: Linux is case sensitive, Windows is not (even though NTFS knows about case, the API's on top ignore it);
This means that a config-value of "mylogo.png" will find "MyLogo.png" on Windows, but it won't on Linux.

For XR I wrote a detailed guide how to handle case sensitivity for mod-compatability, it seems it can be recycled for X4 :-)
[XR:PSA] Steps to make your mod work on Linux+Mac
Last edited by CulunTse on Fri, 1. Mar 19, 16:27, edited 1 time in total.
radcapricorn
Moderator (English)
Moderator (English)
Posts: 3230
Joined: Mon, 14. Jul 08, 13:07
x4

Re: Linux Support (Beta)

Post by radcapricorn »

CulunTse wrote: Fri, 1. Mar 19, 16:16 Linux filesystems work differently than windows: Linux is case sensitive, Windows is not;
This means that a config-value of "mylogo.png" will find "MyLogo.png" on Windows, but it won't on Linux
Sigh, here we go again...
a) That's wrong. NTFS is case sensitive. Windows file handling API by default ignores that.
b) There's no config file. There's just an image file. To get at which the game has to read the directory. Which will not yield an incorrect file name. Ergo, in this case the case shouldn't matter. If it does, that's a bug.
_JD_
Posts: 137
Joined: Wed, 29. Oct 08, 15:05
x4

Re: Linux Support (Beta)

Post by _JD_ »

_JD_ wrote: Thu, 28. Feb 19, 22:11 I encountered a really annoying issue: the joystick deadzone is not working at all. I tried with both a Logitech Force 3d Pro and X52 Pro and it makes absolutely no difference change the value from 0 to 100.

To make it even worst, with the X52 Pro it seems that the deadzone is 25%, making very hard and annoying to aim at something.

I made a video to show the issue: https://youtu.be/zERDrr9Y108
And another where you can see the evtest-qt and jstest-gtk output: https://youtu.be/5pNve4vzogQ

I found also several other issues with the detection of some button and axis on the X52 pro. Most of them are detected correctly, but some, like the all the buttons from 33 to 39, are recognized as POV directions, like it was the main POV on the stick. The same buttons are correctly recognized on evtest-qt (/dev/input/eventX) and jstest-gtk (/dev/input/jsX).

Should I report all the issues here, create a separate post, send via email or is there an official tracker?
Ok, I did some more tests and it seems a Linux related issue: I rebooted on Windows 10, installed X4 and tested the X52 Pro and the deadzone slider is correctly working: I was able to feel a huge difference going from 25% to 0%.

I copied the Windows' inputmap.xml to the linux config dir but, even using that, the deadzone slider is still ignored.

CBJ, timon37: is this issue accepted on your side? Are you able to reproduce it with your Joysticks?

I was really hoping to be able to play a little this weekend :cry:
CulunTse
Posts: 153
Joined: Mon, 15. Jun 15, 08:10
x4

Re: Linux Support (Beta)

Post by CulunTse »

radcapricorn wrote: Fri, 1. Mar 19, 16:22 a) That's wrong. NTFS is case sensitive. Windows file handling API by default ignores that.
b) There's no config file. There's just an image file. To get at which the game has to read the directory. Which will not yield an incorrect file name.
a) Whoops, I don't intend to spread mis-information! Is my edited version OK?

b) during my many hours of testing in XR, I found that lowercasing all filenames fixed basically all problems, even if the filename should have an uppercase letter based on the "real" gamefiles they modded/replaced. My (personal, uneducated) guess is that there is some form of case-folding going on in the game internals, so even if the directory-traversal would give the correct "PathName", the game still won't find it because it keeps looking for "pathname".

P.S. I just read back through the old thread; thanks for pointing out the .cur<->.png issue back then!
ant1393
Posts: 23
Joined: Mon, 10. Dec 18, 12:54
x4

Re: Linux Support (Beta)

Post by ant1393 »

ponyryde wrote: Fri, 1. Mar 19, 07:58 Thumbs up!

Pretty shocked to find it worked out of the box at a stable 60fps (except shipyards) on ultra with a gtx970/fx8370/ubuntu 18.10/xb360 controller (could do with more menu navigation). Game is amazing, RIP x3.
hi, do you have the gamepad's mouse emulatiom cursor on map ? i not have it :(

edit: anyone with xbox pad one or 360 can confirm please ?
Last edited by ant1393 on Fri, 1. Mar 19, 16:57, edited 1 time in total.
ubuntu 18.10 latest updates + nvidia-415 + pulseaudio + xbox one pad.

i7-2600k, gtx 970, 16 gb ram, focusrite saffire pro 24 soundcard, ssd.
radcapricorn
Moderator (English)
Moderator (English)
Posts: 3230
Joined: Mon, 14. Jul 08, 13:07
x4

Re: Linux Support (Beta)

Post by radcapricorn »

CulunTse wrote: Fri, 1. Mar 19, 16:35 a) Whoops, I don't intend to spread mis-information! Is my edited version OK?
Would do for government work :D
b) during my many hours of testing in XR, I found that lowercasing all filenames fixed basically all problems, even if the filename should have an uppercase letter based on the "real" gamefiles they modded/replaced. My (personal, uneducated) guess is that there is some form of case-folding going on in the game internals, so even if the directory-traversal would give the correct "PathName", the game still won't find it because it keeps looking for "pathname".
Yeah, it would seem that the game loses the real file name somewhere along the way. I've just tested: put an image with uppercase letters into the "logos" directory. Just as in Cg089's case, the game displays an additional "empty" logo. Still, I maintain that in this case the case should not matter at all, and that behavior is a bug :P
P.S. I just read back through the old thread; thanks for pointing out the .cur<->.png issue back then!
;)
radcapricorn
Moderator (English)
Moderator (English)
Posts: 3230
Joined: Mon, 14. Jul 08, 13:07
x4

Re: Linux Support (Beta)

Post by radcapricorn »

ant1393 wrote: Fri, 1. Mar 19, 16:50 hi, do you have the gamepad's mouse emulatiom cursor on map ? i not have it :(

edit: anyone with xbox pad one or 360 can confirm please ?
I'll test with a One S in a bit. What should I be looking for? One of the sticks should control the mouse pointer?
hakzsam
Posts: 6
Joined: Fri, 1. Mar 19, 17:58

Re: Linux Support (Beta)

Post by hakzsam »

Hi there,

I'm one of the RADV developer.
I have just played the game a bit using latest llvm/mesa on my Vega 56, everything seems fine.

Can you explain how to reproduce the GPU hangs (ie. mesa/llvm versions, chip, steps) ?
Can you also explain how to reproduce "Graphical glitches on lockboxes and jumpgates on radv" ?

Thanks a lot, I would be glad to help.
9000
Posts: 20
Joined: Sun, 12. Nov 06, 18:32
x4

Re: Linux Support (Beta)

Post by 9000 »

_JD_ wrote: Thu, 28. Feb 19, 22:11 I encountered a really annoying issue: the joystick deadzone is not working at all. I tried with both a Logitech Force 3d Pro and X52 Pro and it makes absolutely no difference change the value from 0 to 100.

To make it even worst, with the X52 Pro it seems that the deadzone is 25%, making very hard and annoying to aim at something.

[...]
I can confirm that issue using a T.16000M. Fighting against S/M-Ships is now a lot more... thrilling :wink:


Apart from that: Many thanks for the Linux Port! Good works. The game worked out of the box with my from Windows imported savegame (1.0), even with an experienced better performance of the map (less input lag, nearly same, sometimes a little bit more fps than on Windows).

A few infos of the system:

Software:
Gentoo Linux
kernel 4.14.83
nvidia-drivers 390.116

Hardware:
GTX 1080
AMD Ryzen 7 1800X
Last edited by 9000 on Fri, 1. Mar 19, 18:48, edited 1 time in total.
radcapricorn
Moderator (English)
Moderator (English)
Posts: 3230
Joined: Mon, 14. Jul 08, 13:07
x4

Re: Linux Support (Beta)

Post by radcapricorn »

ant1393 wrote: Fri, 1. Mar 19, 16:50 edit: anyone with xbox pad one or 360 can confirm please ?
Yes, confirm, emulated pointer is not there. It is mapped to right stick, but does not seem to appear.
ant1393
Posts: 23
Joined: Mon, 10. Dec 18, 12:54
x4

Re: Linux Support (Beta)

Post by ant1393 »

radcapricorn wrote: Fri, 1. Mar 19, 17:13
ant1393 wrote: Fri, 1. Mar 19, 16:50 hi, do you have the gamepad's mouse emulatiom cursor on map ? i not have it :(

edit: anyone with xbox pad one or 360 can confirm please ?
I'll test with a One S in a bit. What should I be looking for? One of the sticks should control the mouse pointer?
thx ! yes : the right stick pan the map up-down-left-right, and the left stick should move the mouse (gamepad mouse emulation in options) but the cursor is hidden when detecting controller at launch and for ever. Only if i touch the mouse the cursor appear. So can't click on ships on map.
ubuntu 18.10 latest updates + nvidia-415 + pulseaudio + xbox one pad.

i7-2600k, gtx 970, 16 gb ram, focusrite saffire pro 24 soundcard, ssd.
darfgarf
Posts: 1
Joined: Sun, 2. Dec 18, 10:57
x4

Re: Linux Support (Beta)

Post by darfgarf »

Great work Egosoft, good to see some love for the penguinistas <3

Other than the in-flight cursor looking a little blocky (haven't compared to windows yet) everything is working great here, infact it's running better than under Windows on the same hardware >:D

Core i7-8700 @3.2GHz
32GB RAM
GTX1070
X4 installed on conventional drives, but ~300MB/s read speed due to raid
Linux Mint 19, up to date as of today
nvidia-driver-415 from ubuntu graphics-drivers ppa

Running @ solid 60fps in most cases, dropping to ~40 in busy scenes
Walking around on platform is sometimes ~25fps but this correlates to the performance hit I've seen mentioned elsewhere
fallenwizard
Posts: 635
Joined: Tue, 13. Apr 10, 20:03
x4

Re: Linux Support (Beta)

Post by fallenwizard »

hakzsam wrote: Fri, 1. Mar 19, 18:03 Hi there,

I'm one of the RADV developer.
I have just played the game a bit using latest llvm/mesa on my Vega 56, everything seems fine.

Can you explain how to reproduce the GPU hangs (ie. mesa/llvm versions, chip, steps) ?
Can you also explain how to reproduce "Graphical glitches on lockboxes and jumpgates on radv" ?

Thanks a lot, I would be glad to help.
Mr. Pitoiset in the flesh. Nice surprise to see you here. :)

X4 2.0 public_beta branch, mesa 18.3.4 & llvm 7.0.1 on RX 590 (Polaris)
Can you also explain how to reproduce "Graphical glitches on lockboxes and jumpgates on radv" ?
I've attached a save game for you. Make a backup of the old files first. Place this file (no need to extract them) into $XDG_CONFIG_HOME/EgoSoft/X4/<steamid>/save/

save_003.xml.gz - Flickering gates
I made a short youtube video to show this issue: https://www.youtube.com/watch?v=joeCqesHP7c


EDIT:
It seems like the lockbox icons are actually supposed to look like they do. The icons are on the side and are just pretty difficult to see with the headlights of the ship shining on them. This is why I removed this part of the post.
You do not have the required permissions to view the files attached to this post.
Last edited by fallenwizard on Fri, 1. Mar 19, 23:38, edited 7 times in total.
Aron Derik
Posts: 9
Joined: Thu, 14. Feb 19, 01:49

Re: Linux Support (Beta)

Post by Aron Derik »

Bought it! TY for the work. I have Vega 64 on RadeonSI driver.
BerndHohmann
Posts: 45
Joined: Tue, 16. Feb 16, 00:14

Minor Issues

Post by BerndHohmann »

Works fine on Linux Mint 18.3 Sylvia, GeForce GTX 1080

Issues:

1) Overlays (Map, Credits) have an X+6, Y+4 offset on screen

2) When undocking, the mouse cursor should be centered at the moment the player gains control over the ship again. Or at least bring the ship into a defined state (mouse steering off, flight helpers on).

Showstoppers:

1) Your can enter foreign ships on stations. Not a problem but when the pilot closes the hatch he flies away with you as a blind passenger. Shift+D doesnt teleport you back on your ship but into the teleport booth of the ship you are on. Perfect for an endless AI-Demo because the Pilot flies "Around The Universe In Eighty Days".

2) Elevators on stations: You have a "use" Mousecursor when you are half on the floor and half in the elevator. When you press "use" there, you are a victim of the force field; no chance to escape.

3) Even the lightest contact to a shipwreck is a "Game Over"

Bernd

PS: Wenn jemand Roger B. sieht, kollegiale Grüsse von mir.
Aron Derik
Posts: 9
Joined: Thu, 14. Feb 19, 01:49

Re: Linux Support (Beta)

Post by Aron Derik »

I have the loading screen freeze. music plays, but mouse and kbd lock up and have to hard boot to exit. Im on Linux Mint 19.1 with kernel 4.18.0-15. open Radeon driver. Vega 64.
ant1393
Posts: 23
Joined: Mon, 10. Dec 18, 12:54
x4

Re: Minor Issues

Post by ant1393 »

BerndHohmann wrote: Sat, 2. Mar 19, 01:17 Works fine on Linux Mint 18.3 Sylvia, GeForce GTX 1080

Issues:

1) Overlays (Map, Credits) have an X+6, Y+4 offset on screen

2) When undocking, the mouse cursor should be centered at the moment the player gains control over the ship again. Or at least bring the ship into a defined state (mouse steering off, flight helpers on).

Showstoppers:

1) Your can enter foreign ships on stations. Not a problem but when the pilot closes the hatch he flies away with you as a blind passenger. Shift+D doesnt teleport you back on your ship but into the teleport booth of the ship you are on. Perfect for an endless AI-Demo because the Pilot flies "Around The Universe In Eighty Days".

2) Elevators on stations: You have a "use" Mousecursor when you are half on the floor and half in the elevator. When you press "use" there, you are a victim of the force field; no chance to escape.

3) Even the lightest contact to a shipwreck is a "Game Over"

Bernd

PS: Wenn jemand Roger B. sieht, kollegiale Grüsse von mir.
good idea but it's better to own a ship with a commander first... [if u want to escape]

for FR : i would like NO INTERDICTIONS FOR WALKIMG IN STATIONS !11 so when i'm tired, i can press TOGGLE CROUCH to sit "sur un banc"....
ubuntu 18.10 latest updates + nvidia-415 + pulseaudio + xbox one pad.

i7-2600k, gtx 970, 16 gb ram, focusrite saffire pro 24 soundcard, ssd.
ant1393
Posts: 23
Joined: Mon, 10. Dec 18, 12:54
x4

Re: Linux Support (Beta)

Post by ant1393 »

plz fix "MOUSE CURSOR DOES NOT SHOW WITH GAMEPAD ON MAP" #1 ...... thx EGOSOFT !
ubuntu 18.10 latest updates + nvidia-415 + pulseaudio + xbox one pad.

i7-2600k, gtx 970, 16 gb ram, focusrite saffire pro 24 soundcard, ssd.
ant1393
Posts: 23
Joined: Mon, 10. Dec 18, 12:54
x4

Re: Linux Support (Beta)

Post by ant1393 »

ant1393 wrote: Sat, 2. Mar 19, 03:03 plz fix "MOUSE CURSOR DOES NOT SHOW WITH GAMEPAD ON MAP" #1 ...... thx EGOSOFT !
with "antimicro" gamepad mapper (like joy2key...) i temporaly fixed that by using a config like this :

...

config SET 1 = mouse desktop mode...

GUIDe BUTTON = SWAP set1 <-> set 2 (two-way)

config SET 2 = EMPTY config / XBOX gamepad mode


...

then it shows the mouse cursor...

BUT it needs to be fixed !

(it is for mobility pbs....)
ubuntu 18.10 latest updates + nvidia-415 + pulseaudio + xbox one pad.

i7-2600k, gtx 970, 16 gb ram, focusrite saffire pro 24 soundcard, ssd.

Return to “X4: Foundations - Technical Support”