faf-linux icon indicating copy to clipboard operation
faf-linux copied to clipboard

No text in main menu when game locale is RU

Open AptemCat opened this issue 1 year ago • 10 comments

Issue

I have my game language set as Russian, and I have no text in the main menu of the game (see image 1), and partially in the FAF lobby (see image 2). However, the tooltips still work and the text in English is still present (see image 3). The issue disappears, when the game language is set to English. Also the issue is not present in the Windows version. Unable to confirm the issue on the vanilla Steam version of the game, because it simply does not run with or without the recommended launch parameters.

Attempted fixes

I've tried installing fonts from Supreme Commander Forged Alliance/fonts, tried putting them into ~/.fonts, into C:\Windows\Fonts on FAF's wineprefix and on Steam's wineprefix for SC:FA (steamapps/compatdata/9420/pfx). Also tried renaming the Supreme Commander Forged Alliance/fonts to something else, as I saw that suggested on ProtonDB.

Specs

Ubuntu 24.04, system locale ru-RU, language-pack-en installed Wine 9.14 from the winehq-devel package through their apt source Official Steam (from a .deb file)

Images

image1 image2 image3

AptemCat avatar Aug 02 '24 11:08 AptemCat

Unable to confirm the issue on the vanilla Steam version of the game, because it simply does not run with or without the recommended launch parameters.

The game and Steam were installed on different drives. I moved the game to the default Steam library and it magically started working.

The text issue also exists on the vanilla Steam version. Should I close this issue, as it is not FAF-related, or is anyone able to help?

AptemCat avatar Aug 05 '24 13:08 AptemCat

Can you check to see if there are any spaces or non-ASCII in the file path of your other Steam library?

iczero avatar Aug 05 '24 17:08 iczero

Can you check to see if there are any spaces or non-ASCII in the file path of your other Steam library?

I actually just selected the Steam folder from my Win10 installation as the library. It's /mnt/windows/Program Files (x86)/Steam/. I believe the spaces are fine (otherwise how would Supreme Commander Forged Alliance work as the game folder name), and the brackets are the source of the problem.

AptemCat avatar Aug 05 '24 17:08 AptemCat

Is it on NTFS? Not sure if that affects anything though...

iczero avatar Aug 05 '24 17:08 iczero

Is it on NTFS? Not sure if that affects anything though...

Yeah, the previous library was on NTFS. Now the game's on ext4. Don't believe that affects the text issue though. Do you know anything about that?

AptemCat avatar Aug 05 '24 18:08 AptemCat

The game might depend on some system fonts that are installed on Windows but not on Linux. You might try to snitch something like Arial or idk from C:\Windows\fonts of your windows system. Just a speculation but I wouldn't be surprised if that's the case

valignatev avatar Aug 06 '24 19:08 valignatev

@valignatev, don't think it would help, as I've tried installing fonts from the game's own fonts folder onto the Linux host. It contains Arial and other fonts, some of which definitely aren't present on any normal Windows machine by default. image Also what I forgot to mention is I tried doing protontricks 9420 corefonts and winetricks corefonts on the FAF prefix, which should have installed some Windows fonts including Arial. Did not fix the issue. But that was before moving the game and reinstalling FAF, so I'm doing it once again. Update: did not help.

AptemCat avatar Aug 06 '24 20:08 AptemCat

I see, I see. Maybe the game complains about something font-related in one of the log files?

valignatev avatar Aug 06 '24 23:08 valignatev

Launched a co-op game through FAF, saw that (almost) no text was visible in the lobby, closed the game. Here are the only lines that contain "font":

info: DISK: AddSearchPath: 'z:\home\%USER%\.local\share\steam\steamapps\common\supreme commander forged alliance\fonts', mounted as '/fonts/'
<...>
warning: Unable to create document path: C
warning: Unable to create document path: C
warning: Unable to create document path: C
info: adding font file /fonts/arial.ttf
info: adding font file /fonts/arialbd.ttf
info: adding font file /fonts/arialbi.ttf
info: adding font file /fonts/ariali.ttf
info: adding font file /fonts/arialn.ttf
info: adding font file /fonts/arialnb.ttf
info: adding font file /fonts/arialnbi.ttf
info: adding font file /fonts/arialni.ttf
info: adding font file /fonts/ariblk.ttf
info: adding font file /fonts/arlrdbd.ttf
info: adding font file /fonts/butterbe.ttf
info: adding font file /fonts/vdub.ttf
info: adding font file /fonts/wintermu.ttf
info: adding font file /fonts/zeroes_3.ttf

The log contains no errors, the only suspicious thing are those three cryptic warning messages. Here's the full log: game_23055634.log

AptemCat avatar Aug 07 '24 00:08 AptemCat

idk how it works, but changing directory name fonts (in game directory) to any other and will start displaying the fonts

labi-le avatar Sep 21 '24 23:09 labi-le