Linux audio and text language - Resolved with method at end.

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

Moderator: Moderators for English X Forum

Alais
Posts: 14
Joined: Fri, 3. Apr 20, 19:56

Linux audio and text language - Resolved with method at end.

Post by Alais »

Can someone help with changing language on linux gog version? For example I need russian interface/text and english voice. Thanks
Alan Phipps
Moderator (English)
Moderator (English)
Posts: 31814
Joined: Fri, 16. Apr 04, 19:21
x4

Re: Linux audio and text language

Post by Alan Phipps »

See if this gives you the clues you need. (Obviously using different international language codes.)
A dog has a master; a cat has domestic staff.
Alais
Posts: 14
Joined: Fri, 3. Apr 20, 19:56

Re: Linux audio and text language

Post by Alais »

Thank you, but this solution for steam version. In gog I can't do it
wasted90
Posts: 244
Joined: Fri, 2. Nov 18, 03:29
x4

Re: Linux audio and text language

Post by wasted90 »

Alais wrote: Fri, 3. Apr 20, 20:25 Thank you, but this solution for steam version. In gog I can't do it
try these:
go to the gamefolder in which the 'X4'-executable is & open there the terminal.

type:

./X4 -language ** -voicelanguage **

exchange ** with the wanted language codes.

just a guess, since i'm playing the steam version.
Alais
Posts: 14
Joined: Fri, 3. Apr 20, 19:56

Re: Linux audio and text language

Post by Alais »

wasted90 wrote: Fri, 3. Apr 20, 20:39
Alais wrote: Fri, 3. Apr 20, 20:25 Thank you, but this solution for steam version. In gog I can't do it
try these:
go to the gamefolder in which the 'X4'-executable is & open there the terminal.

type:

./X4 -language ** -voicelanguage **

exchange ** with the wanted language codes.

just a guess, since i'm playing the steam version.
No, not working(
wasted90
Posts: 244
Joined: Fri, 2. Nov 18, 03:29
x4

Re: Linux audio and text language

Post by wasted90 »

Alais wrote: Fri, 3. Apr 20, 21:00
No, not working(
another guess, if you haven't tried yet:

gog-installer should have created a starter for the game on your desktop. can you right click on it -> then properties and add the language arguments to the end of the command?
Alais
Posts: 14
Joined: Fri, 3. Apr 20, 19:56

Re: Linux audio and text language

Post by Alais »

wasted90 wrote: Fri, 3. Apr 20, 21:12
Alais wrote: Fri, 3. Apr 20, 21:00
No, not working(
another guess, if you haven't tried yet:

gog-installer should have created a starter for the game on your desktop. can you right click on it -> then properties and add the language arguments to the end of the command?
In Linux? No or I don't know how. I belive this similar to running in terminal with parametrs like ./X4 -language 7 -voicelanguage 44 (not work)
wasted90
Posts: 244
Joined: Fri, 2. Nov 18, 03:29
x4

Re: Linux audio and text language

Post by wasted90 »

Alais wrote: Fri, 3. Apr 20, 21:26

In Linux? No or I don't know how. I belive this similar to running in terminal with parametrs like ./X4 -language 7 -voicelanguage 44 (not work)
it is the case for my x3 tc gog install. ther it makes a starter, which points to a script, which points to the game :D . don't know how it is at x4, as i said, i have x4 on steam so i'm just guessing. but i will try to help.

can you look if there is something like 'x4-foundations.desktop' in the directory '~/.local/share/applications/' (home drive)?

EDIT

also try
/usr/share/applications/ (root drive)
/usr/local/share/applications/ (root drive)
Last edited by wasted90 on Fri, 3. Apr 20, 21:44, edited 2 times in total.
Alais
Posts: 14
Joined: Fri, 3. Apr 20, 19:56

Re: Linux audio and text language

Post by Alais »

wasted90 wrote: Fri, 3. Apr 20, 21:31
Alais wrote: Fri, 3. Apr 20, 21:26

In Linux? No or I don't know how. I belive this similar to running in terminal with parametrs like ./X4 -language 7 -voicelanguage 44 (not work)
it is the case for my x3 tc gog install, but as i said, i have x4 on steam so i'm just guessing. but i will try to help.

what's your linux distribution and windowmanager/ desktopenvironment?
KDE Neon 5.18.4
In ~/.local/share/applications/ gog_com-X4_Foundations_1.desktop

In /usr/share/applications/ and /usr/local/share/applications/ nothing
wasted90
Posts: 244
Joined: Fri, 2. Nov 18, 03:29
x4

Re: Linux audio and text language

Post by wasted90 »

nice. can you open it with an editor and post its content? especially the 'exec=' line

i just saw that this wrong: './X4 -language 7 -voicelanguage 44'

it needs to be to numbers even if ther is a '0' or something
Last edited by wasted90 on Fri, 3. Apr 20, 21:52, edited 1 time in total.
Alais
Posts: 14
Joined: Fri, 3. Apr 20, 19:56

Re: Linux audio and text language

Post by Alais »

wasted90 wrote: Fri, 3. Apr 20, 21:48 nice. can you open it with an editor and post its content? especially the 'exec=' line
[Desktop Entry]
Encoding=UTF-8
Value=1.0
Type=Application
Name=X4: Foundations
GenericName=X4: Foundations
Comment=X4: Foundations
Icon=/media/data/GOG Games/X4 Foundations/support/icon.png
Exec="/media/data/GOG Games/X4 Foundations/start.sh" ""
Categories=Game;
Path=/media/data/GOG Games/X4 Foundations
wasted90
Posts: 244
Joined: Fri, 2. Nov 18, 03:29
x4

Re: Linux audio and text language

Post by wasted90 »

i just saw that this wrong: './X4 -language 7 -voicelanguage 44'

it needs to be two numbers even if ther is a '0' or something, can you try it again with

./X4 -language 07 -voicelanguage 44
Alais
Posts: 14
Joined: Fri, 3. Apr 20, 19:56

Re: Linux audio and text language

Post by Alais »

wasted90 wrote: Fri, 3. Apr 20, 22:01 i just saw that this wrong: './X4 -language 7 -voicelanguage 44'

it needs to be two numbers even if ther is a '0' or something, can you try it again with

./X4 -language 07 -voicelanguage 44
No effect(
Alan Phipps
Moderator (English)
Moderator (English)
Posts: 31814
Joined: Fri, 16. Apr 04, 19:21
x4

Re: Linux audio and text language

Post by Alan Phipps »

Going by that Steam thread I linked, it is not enough just to add the execution extensions, you may also have to change a language setting for the game in GOG too or the right combination will not appear.

(You will have gathered that I know nothing about either Linux or GOG.)
A dog has a master; a cat has domestic staff.
wasted90
Posts: 244
Joined: Fri, 2. Nov 18, 03:29
x4

Re: Linux audio and text language

Post by wasted90 »

Alais wrote: Fri, 3. Apr 20, 22:07
wasted90 wrote: Fri, 3. Apr 20, 22:01 i just saw that this wrong: './X4 -language 7 -voicelanguage 44'

it needs to be two numbers even if ther is a '0' or something, can you try it again with

./X4 -language 07 -voicelanguage 44
No effect(
do you have 'languages' folder in directory '/media/data/GOG Games/X4 Foundations' ? if yes then look into it if there is a directory for russian.

@alan there is no gog client for linux, this all is done with the start.sh script which detects the system language and sets some symlinks
Last edited by wasted90 on Fri, 3. Apr 20, 22:20, edited 1 time in total.
Alais
Posts: 14
Joined: Fri, 3. Apr 20, 19:56

Re: Linux audio and text language

Post by Alais »

wasted90 wrote: Fri, 3. Apr 20, 22:14
Alais wrote: Fri, 3. Apr 20, 22:07
wasted90 wrote: Fri, 3. Apr 20, 22:01 i just saw that this wrong: './X4 -language 7 -voicelanguage 44'

it needs to be two numbers even if ther is a '0' or something, can you try it again with

./X4 -language 07 -voicelanguage 44
No effect(
do you have 'languages' folder in directory '/media/data/GOG Games/X4 Foundations' ?
No. But in /media/data/GOG Games/X4 Foundations/game/ i have file lang.dat. In this file i can write a code of language. But it works only if english (44) or russian (7), not both and when it russian I have only text without voice (and all voice audio to, I mean all actors become silent). If it 44 then voice return and text on english
CBJ
EGOSOFT
EGOSOFT
Posts: 54309
Joined: Tue, 29. Apr 03, 00:56
x4

Re: Linux audio and text language

Post by CBJ »

If you want Russian text and English voice then you need to switch your game language in the GOG client to English so that the English voices are downloaded. You then need to add the -language 7 -voicelanguage 44 options, exactly as typed, to the command line you use to launch the game. I'm not sure how exactly you do this in Linux, but those are the options you need to use.
Alais
Posts: 14
Joined: Fri, 3. Apr 20, 19:56

Re: Linux audio and text language

Post by Alais »

CBJ wrote: Fri, 3. Apr 20, 22:27 If you want Russian text and English voice then you need to switch your game language in the GOG client to English so that the English voices are downloaded. You then need to add the -language 7 -voicelanguage 44 options, exactly as typed, to the command line you use to launch the game. I'm not sure how exactly you do this in Linux, but those are the options you need to use.
There is no GOG client on Linux. Only Windows/Mac
About options I know, but can't figure out how to do this.
CBJ
EGOSOFT
EGOSOFT
Posts: 54309
Joined: Tue, 29. Apr 03, 00:56
x4

Re: Linux audio and text language

Post by CBJ »

I mean when you download the game, choose English as the language, not Russian. All texts are downloaded with all languages, but voices are only downloaded for the language you choose.
Alais
Posts: 14
Joined: Fri, 3. Apr 20, 19:56

Re: Linux audio and text language

Post by Alais »

CBJ wrote: Fri, 3. Apr 20, 22:33 I mean when you download the game, choose English as the language, not Russian.
I already download english version. Thats why when I turn russia language (7 in lang.dat) there is no voice, cause I don't have russian audio files (and don't need them if be honest).

Return to “X4: Foundations - Technical Support”