LINUX SUPPORT IS HERE

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Re: LINUX SUPPORT IS HERE

Postby foodlfg » 24 Jul 2019, 21:50

iczero wrote:I found a potential fix to the random crashing in the middle of the game. Previously, it was fixable by using Gallium Nine, however, if Gallium Nine is not available or does not work for you, and your gpu supports Vulkan, you can use d9vk instead.
d9vk translates DirectX 9 calls into Vulkan instead of opengl (which is what wined3d uses), so it might also be faster.

(can't post links, fix github url yourself)

Instructions:
  • Get latest release of d9vk from (github) Joshua-Ashton/d9vk and extract it somewhere
  • Find your wine prefix. If you are using steam, it should be at
    Code: Select all
    $HOME/.local/share/Steam/steamapps/compatdata/9420/pfx
  • Find where you have wine installed. If you already have the correct version in $PATH, then don't include this in the final command. If you are using steam, it should be in
    Code: Select all
    $HOME/.local/share/Steam/steamapps/common/Proton\ 3.16/dist/bin
  • Run the following in the folder extracted from the release, replacing stuff as appropriate:
    Code: Select all
    WINEPREFIX=$HOME/.local/share/Steam/steamapps/compatdata/9420/pfx PATH=$HOME/.local/share/Steam/steamapps/common/Proton\ 3.16/dist/bin:$PATH ./setup_dxvk.sh install

Thanks!

Get latest release of d9vk from (github) Joshua-Ashton/d9vk and extract it somewhere
the link of the github repo:
https://github.com/Joshua-Ashton/d9vk/releases
 
foodlfg
Avatar-of-War
 
Posts: 137
Joined: 17 Dec 2017, 19:28
Has liked: 19 times
Been liked: 55 times
FAF User Name: foodlfg

Re: LINUX SUPPORT IS HERE

Postby artur453 » 22 Aug 2019, 18:53

Hello
I installed FAF following this instruction https://github.com/tatsujb/installFAFscript on my Xubuntu 18
without installing FA,because it already installed on my pc via steam
Following instruction
i set proton 3.16-9 (beta not aviable) and set launch option
Code: Select all
PROTON_NO_ESYNC=1, PROTON_DUMP_DEBUG_COMMANDS=1, PROTON_USE_GALLIUM_NINE=1, PROTON_GALLIUM_NINE_MODULEPATH="/usr/lib/i386-linux-gnu/d3d/d3dadapter9.so.1:/usr/lib/x86_64-linux-gnu/d3d/d3dadapter9.so.1" %command%

so game started i create new profile and set up resolution
in FAF settings located FA
but when i trying to join any lobby in FAF i get this in log
Spoiler: show
Code: Select all

2019-08-22 19:36:03.987  INFO 12286 --- [pool-2-thread-5] c.f.c.patch.GameBinariesUpdateTaskImpl   : Updating binaries to 3707
2019-08-22 19:36:04.053  INFO 12286 --- [pool-2-thread-5] c.faforever.client.map.DownloadMapTask   : Downloading map twin rivers.v0001 from http://content.faforever.com/faf/vault/maps/twin%20rivers.v0001.zip
2019-08-22 19:36:05.519  INFO 12286 --- [      Thread-21] c.f.client.fa.ForgedAllianceService      : Starting Forged Alliance with command: [/home/artur/.faforever/bin/ForgedAlliance.exe, /init, init.lua, /nobugreport, /log, /home/artur/.faforever/logs/game.log, /gpgnet, 127.0.0.1:12809, /mean, 576.52, /deviation, 106.903, /savereplay, gpgnet://127.0.0.1:33649/10114587/artur453.SCFAreplay, /country, UA, /clan, WD., /numgames, 210] in directory: /home/artur/.faforever/bin
2019-08-22 19:36:05.533  INFO 12286 --- [pool-2-thread-5] com.faforever.client.game.GameService    : Forged Alliance terminated with exit code 2
2019-08-22 19:36:05.556  WARN 12286 --- [      Thread-13] c.f.client.fa.relay.ice.IceAdapterImpl   : Ignoring call to ICE adapter as we are not connected: setIceServers([[{credentialType=token, urls=[turn:faforever.com?transport=tcp, turn:faforever.com?transport=udp, stun:faforever.com], credential=MEkx0FvJyMKuIEepKKZwAqE2CQk=, username=1566578165:210012}]])
2019-08-22 19:36:14.928  INFO 12286 --- [lication Thread] o.s.s.c.ThreadPoolTaskScheduler          : Shutting down ExecutorService 'taskScheduler'
2019-08-22 19:36:14.929  WARN 12286 --- [lication Thread] c.f.client.fa.relay.ice.IceAdapterImpl   : Ignoring call to ICE adapter as we are not connected: quit([])
2019-08-22 19:36:15.029 ERROR 12286 --- [pool-2-thread-2] org.pircbotx.PircBotX                    : --- PircBotX interrupted during read, aborting reconnect loop and shutting down ---

What i do wrong?
ps: hosting game don`t make difference
artur453
Crusader
 
Posts: 12
Joined: 08 Apr 2018, 20:56
Has liked: 1 time
Been liked: 0 time
FAF User Name: artur453

Re: LINUX SUPPORT IS HERE

Postby ZeRen » 23 Aug 2019, 17:03

artur453

did you used this on gillium nine github? :
Code: Select all
echo PROTON_GALLIUM_NINE_MODULEPATH=\"$(find /usr \( -type f -o -type l \) -name d3dadapter9.so.1 -exec sh -c 'file -L "{}" | grep -q "ELF 32-bit"' \; -print -quit 2>/dev/null):$(find /usr \( -type f -o -type l \) -name d3dadapter9.so.1 -exec sh -c 'file -L "{}" | grep -q "ELF 64-bit"' \; -print -quit 2>/dev/null)\"

and got this? :
Code: Select all
PROTON_GALLIUM_NINE_MODULEPATH="/usr/lib/i386-linux-gnu/d3d/d3dadapter9.so.1:/usr/lib/x86_64-linux-gnu/d3d/d3dadapter9.so.1"

if so, how did you made it show up? I tried the guide on github, but it shows this:
Code: Select all
PROTON_GALLIUM_NINE_MODULEPATH=","

what I need to do? I switched driver to noveau or something, but same result



------------------------------------------------------------------------------------------------------------
Code: Select all
tar xf Proton_3.16-6_Gallium_Nine_Extras_0.3.0.tar.xz -C ~/.steam/root/compatibilitytools.d

where I need to put this file so the command works? I tried Downloads and home but the command just dont work, so I extracted it , and put the file in .steam/root/

btw what is the "xf" is it giving some permissions or something?


--------------------------------------------------------------------------------------------------------------
do someone know about good guide to install Gallium nine to wine4.0(system) so when I run command "winecfg" it will give me option to use Gallium nine?

the one I found just didnt work
User avatar
ZeRen
Evaluator
 
Posts: 621
Joined: 03 Aug 2014, 08:22
Has liked: 153 times
Been liked: 46 times
FAF User Name: ZeRen

Re: LINUX SUPPORT IS HERE

Postby foodlfg » 23 Aug 2019, 21:04

I would wait for Tatsu to answer this. He knows more about his script.
The Gallium nine parameters don't interfere with normal Proton. Normal Proton just ignores them. So it is possible that Tatsu's script gives these parameters (even if it is not needed) just in case the user chooses to install Gallium Nine upon the normal Proton. I don't know.

@artur453
Post your client.prefs file after you remove your password from it. ~/.faforever/client.prefs (it's a text file)

Also, do you know where your RUN file (that steam generates) is located? Post that file too pls! $HOME/faf/run (i guess)
Its exact location is in the client.prefs file under: "executableDecorator:"

Also, try to create a game with a map that comes with the game itself. Twin Rivers is a custom map...
 
foodlfg
Avatar-of-War
 
Posts: 137
Joined: 17 Dec 2017, 19:28
Has liked: 19 times
Been liked: 55 times
FAF User Name: foodlfg

Re: LINUX SUPPORT IS HERE

Postby foodlfg » 23 Aug 2019, 21:28

ZeRen wrote:------------------------------------------------------------------------------------------------------------
Code: Select all
tar xf Proton_3.16-6_Gallium_Nine_Extras_0.3.0.tar.xz -C ~/.steam/root/compatibilitytools.d

where I need to put this file so the command works? I tried Downloads and home but the command just dont work, so I extracted it , and put the file in .steam/root/

btw what is the "xf" is it giving some permissions or something?


--------------------------------------------------------------------------------------------------------------
do someone know about good guide to install Gallium nine to wine4.0(system) so when I run command "winecfg" it will give me option to use Gallium nine?

the one I found just didnt work


My Proton 3.16-6 Gallium Nine Extras 0.3.0 install looks like this on Ubuntu 18.10
https://github.com/popsUlfr/Proton/rele ... -gne-0.3.0

Extracted to: ~/.local/share/Steam/compatibilitytools.d/Proton_3.16-6_Gallium_Nine_Extras_0.3.0
So i can choose Proton_3.16-6_Gallium_Nine_Extras_0.3.0 in Steam.

Launch options in Steam: PROTON_GALLIUM_NINE_MODULEPATH="/usr/lib/i386-linux-gnu/d3d/d3dadapter9.so.1:/usr/lib/x86_64-linux-gnu/d3d/d3dadapter9.so.1" PROTON_USE_GALLIUM_NINE=1 PROTON_NO_ESYNC=1 PROTON_DUMP_DEBUG_COMMANDS=1 %command%

I don't think I used winecfg to activate Gallium Nine when I used THIS Gallium Nine. But it was a long time ago. I don't really remember, the github page doesn't mention the need of using winecfg.
If you use winecfg don't forget to set the WINEPREFIX environment variable. And run winecfg with the Gallium Nine Wine, not your system default one. The "wine winecfg" command uses your system default Wine version.

Also, after you install Gallium Nine and give the Launch option commands, run the game from Steam! This will generate a new RUN file. You have to give this new RUN file to the client.
 
foodlfg
Avatar-of-War
 
Posts: 137
Joined: 17 Dec 2017, 19:28
Has liked: 19 times
Been liked: 55 times
FAF User Name: foodlfg

Re: LINUX SUPPORT IS HERE

Postby ZeRen » 24 Aug 2019, 08:51

foodlfg

My Proton 3.16-6 Gallium Nine Extras 0.3.0 install looks like this on Ubuntu 18.10
https://github.com/popsUlfr/Proton/rele ... -gne-0.3.0

I downloaded the file from this (Proton_3.16-6_Gallium_Nine_Extras_0.3.0.tar.xz"

and put it in "~/.local/share/Steam/compatibilitytools.d/Proton_3.16-6_Gallium_Nine_Extras_0.3.0" and changed it globaly in steam

Launch options in Steam: PROTON_GALLIUM_NINE_MODULEPATH="/usr/lib/i386-linux-gnu/d3d/d3dadapter9.so.1:/usr/lib/x86_64-linux-gnu/d3d/d3dadapter9.so.1" PROTON_USE_GALLIUM_NINE=1 PROTON_NO_ESYNC=1 PROTON_DUMP_DEBUG_COMMANDS=1 %command%
I did this as well, but the game lunch with steam, but when I go to skirmish to test it, the skirmish is broken, I cant choise AI,map,.. and when I start game it just loading and loading....and loading

I think the problem might be this:
Code: Select all
"/usr/lib/i386-linux-gnu/d3d/d3dadapter9.so.1:/usr/lib/x86_64-linux-gnu/d3d/d3dadapter9.so.1"


on git hub in your link is command that you should run:
Code: Select all
$ echo PROTON_GALLIUM_NINE_MODULEPATH=\"$(find /usr \( -type f -o -type l \) -name d3dadapter9.so.1 -exec sh -c 'file -L "{}" | grep -q "ELF 32-bit"' \; -print -quit 2>/dev/null):$(find /usr \( -type f -o -type l \) -name d3dadapter9.so.1 -exec sh -c 'file -L "{}" | grep -q "ELF 64-bit"' \; -print -quit 2>/dev/null)\"

and the result should be like this:
Code: Select all
PROTON_GALLIUM_NINE_MODULEPATH="/usr/lib32/d3d/d3dadapter9.so.1:/usr/lib/d3d/d3dadapter9.so.1"

or this (I guess):
Code: Select all
PROTON_GALLIUM_NINE_MODULEPATH="/usr/lib/i386-linux-gnu/d3d/d3dadapter9.so.1:/usr/lib/x86_64-linux-gnu/d3d/d3dadapter9.so.1"

but my result is this:
Code: Select all
PROTON_GALLIUM_NINE_MODULEPATH=","

I searched system for the "/usr,lib,..." but it is not there

I cant find a guide or something on internet how to create this MODULEPATH, so I am asking here, looks like artur453 did it somehow (btw the RUN file is not problem, I changed driver to open source noveau)
User avatar
ZeRen
Evaluator
 
Posts: 621
Joined: 03 Aug 2014, 08:22
Has liked: 153 times
Been liked: 46 times
FAF User Name: ZeRen

Re: LINUX SUPPORT IS HERE

Postby foodlfg » 24 Aug 2019, 09:21

Let's leave artur453 out of this. We don't know what his configs are. He is not even using gallium nine probably.

I ran the echo command now and i get this:
PROTON_GALLIUM_NINE_MODULEPATH="/usr/lib/i386-linux-gnu/d3d/d3dadapter9.so.1:/usr/lib/x86_64-linux-gnu/d3d/d3dadapter9.so.1"

I don't remember how i installed these libraries on my system. You could try to install these packages i guess:
libd3dadapter9-mesa
https://packages.ubuntu.com/cosmic/amd6 ... a/filelist
or
libd3d9-mesa, libd3d9-mesa-dbg, libd3d9-mesa-dev (i found this on the internet xD)

But remember, I have an AMD card. I have Mesa drivers on my system. I don't know how the Noveau opensource nvidia driver plays with Mesa. :/
 
foodlfg
Avatar-of-War
 
Posts: 137
Joined: 17 Dec 2017, 19:28
Has liked: 19 times
Been liked: 55 times
FAF User Name: foodlfg

Re: LINUX SUPPORT IS HERE

Postby ZeRen » 24 Aug 2019, 10:41

ok now I have this:
Code: Select all
PROTON_GALLIUM_NINE_MODULEPATH=":/usr/lib/x86_64-linux-gnu/d3d/d3dadapter9.so.1"

but cant instal the 32bit (libd3dadapter9-mesa_18.2.2-0ubuntu1_i386.deb), just getting error:
Code: Select all
libc6 (>=2.28)

but I cant upgrade it, when I try I get error, operation failed

this is nightmare :evil:
User avatar
ZeRen
Evaluator
 
Posts: 621
Joined: 03 Aug 2014, 08:22
Has liked: 153 times
Been liked: 46 times
FAF User Name: ZeRen

Re: LINUX SUPPORT IS HERE

Postby foodlfg » 24 Aug 2019, 10:53

what is your linux distro exactly?
 
foodlfg
Avatar-of-War
 
Posts: 137
Joined: 17 Dec 2017, 19:28
Has liked: 19 times
Been liked: 55 times
FAF User Name: foodlfg

Re: LINUX SUPPORT IS HERE

Postby ZeRen » 24 Aug 2019, 11:30

foodlfg wrote:what is your linux distro exactly?

mint 19.2
kernel- Linux 4.15.0-20-generic
User avatar
ZeRen
Evaluator
 
Posts: 621
Joined: 03 Aug 2014, 08:22
Has liked: 153 times
Been liked: 46 times
FAF User Name: ZeRen

PreviousNext

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest