LINUX SUPPORT IS HERE

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Re: LINUX SUPPORT IS HERE

Postby Little Miss Murder » 19 Dec 2019, 23:31

Hello everyone,

I've finally had enough of the late-game and replay crashing and at foodlfg's suggestion, I've selected Proton 4.11 in my Steam options. I have also added the following bits to the launch options:

DXVK_HUD=1 PROTON_USE_D9VK=1 PROTON_NO_ESYNC=1 PROTON_DUMP_DEBUG_COMMANDS=1 PROTON_LOG=1

Now, this works if I run the game from Steam. I can see the HUD with FPS counter and "Vulkan 1.1.1" text. Skirmishes work fine and I see no problem.

However, the hud does not display when launching a test game from DFC. That leads me to believe that these options are not being supplied.

I have edited the run file to point to the correct subsystem and I know the correct prefix is selected, and I have exported the options as above. I also know that this run file is being executed since I am playing a wav file using alsa-utils. The sound plays just as you click "Create game" and the lobby launches.

Code: Select all
#!/bin/bash
#Run game or given command in environment
export DXVK_HUD=1
export PROTON_USE_D9VK=1
export PROTON_NO_ESYNC=1
export PROTON_DUMP_DEBUG_COMMANDS=1
export PROTON_LOG=1

aplay /usr/share/sounds/sound-icons/cockchafer-gentleman-1.wav

cd "/home/rhianne/.local/share/Steam/steamapps/common/Supreme Commander Forged Alliance"
DEF_CMD=("/home/rhianne/.local/share/Steam/steamapps/common/Supreme Commander Forged Alliance/bin/SupremeCommander.exe")
PATH="/home/rhianne/.local/share/Steam/steamapps/common/Proton 4.11/dist/bin/:/home/rhianne/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/bin:/home/rhianne/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" \
   TERM="xterm" \
   WINEDEBUG="-all" \
   WINEDLLPATH="/home/rhianne/.local/share/Steam/steamapps/common/Proton 4.11/dist/lib64/wine:/home/rhianne/.local/share/Steam/steamapps/common/Proton 4.11/dist/lib/wine" \
   LD_LIBRARY_PATH="/home/rhianne/.local/share/Steam/steamapps/common/Proton 4.11/dist/lib64:/home/rhianne/.local/share/Steam/steamapps/common/Proton 4.11/dist/lib:/home/rhianne/.local/share/Steam/ubuntu12_32/steam-runtime/pinned_libs_32:/home/rhianne/.local/share/Steam/ubuntu12_32/steam-runtime/pinned_libs_64:/usr/lib/x86_64-linux-gnu/libfakeroot:/lib/i386-linux-gnu:/usr/lib/i386-linux-gnu:/usr/local/lib:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/lib:/usr/lib:/usr/lib/i386-linux-gnu/sse2:/home/rhianne/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib/i386-linux-gnu:/home/rhianne/.local/share/Steam/ubuntu12_32/steam-runtime/i386/lib:/home/rhianne/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib/i386-linux-gnu:/home/rhianne/.local/share/Steam/ubuntu12_32/steam-runtime/i386/usr/lib:/home/rhianne/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib/x86_64-linux-gnu:/home/rhianne/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/lib:/home/rhianne/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib/x86_64-linux-gnu:/home/rhianne/.local/share/Steam/ubuntu12_32/steam-runtime/amd64/usr/lib:" \
   WINEPREFIX="/home/rhianne/.local/share/Steam/steamapps/compatdata/9420/pfx/" \
   SteamGameId="9420" \
   SteamAppId="9420" \
   WINEDLLOVERRIDES="d3d11=n;d3d10=n;d3d10core=n;d3d10_1=n;dxgi=n" \
   STEAM_COMPAT_CLIENT_INSTALL_PATH="/home/rhianne/.local/share/Steam" \
   "/home/rhianne/.local/share/Steam/steamapps/common/Proton 4.11/dist/bin//wine" "${@:-${DEF_CMD[@]}}"


However, the hud does not display and my conclusion is that d9vk is not being utilized. In other words, Steam launches the game using the options and DFC does not, but I don't know where to begin digging further. Any help would be very much appreciated <3

Thanks!
Rhianne

ETA I have even tried exporting the options in the DFC runfile but still no hud.

ETA2: After some digging in the thread I downloaded d9vk from github and launched it like so, with the following output:

Code: Select all
rhianne@Palantir:~/faf/d9vk-master$ WINEPREFIX=$HOME/.local/share/Steam/steamapps/compatdata/9420/pfx PATH=$HOME/.local/share/Steam/steamapps/common/Proton\ 4.11/dist/bin:$PATH ./setup_dxvk.sh install
Could not load wine-gecko. HTML rendering will be disabled.
Could not load wine-gecko. HTML rendering will be disabled.
wine: configuration in '/home/rhianne/.local/share/Steam/steamapps/compatdata/9420/pfx' has been updated.
Could not load wine-gecko. HTML rendering will be disabled.
Could not load wine-gecko. HTML rendering will be disabled.
wine: configuration in '/home/rhianne/.local/share/Steam/steamapps/compatdata/9420/pfx' has been updated.
Failed to resolve C:\windows\system32.


Two small dialogs pop up with updating status info, then nothing except the above terminal output. I have no idea whether the error messages are of any importance.
Little Miss Murder
Avatar-of-War
 
Posts: 229
Joined: 30 Mar 2019, 12:20
Has liked: 132 times
Been liked: 29 times
FAF User Name: Little Miss Murder

Re: LINUX SUPPORT IS HERE

Postby Little Miss Murder » 20 Dec 2019, 00:44

HAHA. It helps to read the wiki.

I used the generated run file from the Steam launch and modified my custom run file with what it was doing. Compare:

Code: Select all
.
.
.
.
        STEAM_COMPAT_CLIENT_INSTALL_PATH="/home/rhianne/.local/share/Steam" \
        "/home/rhianne/.local/share/Steam/steamapps/common/Proton 4.11/dist/bin/wine" steam.exe "${@:-${DEF_CMD[@]}}"


I now can see the hud, although it seems the lobby takes slightly longer to load.

I can deal. NOW TO TESTING!
Little Miss Murder
Avatar-of-War
 
Posts: 229
Joined: 30 Mar 2019, 12:20
Has liked: 132 times
Been liked: 29 times
FAF User Name: Little Miss Murder

Re: LINUX SUPPORT IS HERE

Postby foodlfg » 20 Dec 2019, 00:49

well i encountered something like this before i guess. i mean it was half year ago aprox... it didn't work for me either when i put the commands in the run file, i don't understand why.

anyways. i have these setting in Steam Launch options and in the file i start the client with. so basically i set the variables before i launch the client.

STEAM launch options:
Code: Select all
PROTON_USE_D9VK=1 DXVK_HUD=1 PROTON_NO_ESYNC=1 PROTON_DUMP_DEBUG_COMMANDS=1 PROTON_LOG=1 %command%


Also i force using 4.11-10 in Steam.
Started the game from Steam then i copied the run file.

CLIENT_RUN.sh:
Code: Select all
export DXVK_HUD=devinfo,fps
export PROTON_USE_D9VK=1

export INSTALL4J_JAVA_HOME=~/games/faf/jdk-10.0.2

./downlords-faf-client


i know it's not a perfect answer but this is what i have. :p


BONUS FOOTAGE:
you can watch a 58 min long game (ingame time) from my point of view where i win with using telemazor. <3
https://drive.google.com/open?id=1PZk0V ... IBky1bYoCg
(probably google has not finished processing it yet but download works)
i like the part where i look for a T3 engy for a minute that was given to me. XD (same with a friendly T3 arty)
PRO level stuff!!
 
foodlfg
Avatar-of-War
 
Posts: 165
Joined: 17 Dec 2017, 19:28
Has liked: 22 times
Been liked: 69 times
FAF User Name: foodlfg

Re: LINUX SUPPORT IS HERE

Postby Little Miss Murder » 20 Dec 2019, 01:09

Well I can start a lobby (which shows the hud) but the game won't launch. The launch button just closes the lobby and nothing else happens.

I have no idea where to look for logs. I've appended " > run.log" to the end of the command but it just yields an empty file.



:( :cry:
Little Miss Murder
Avatar-of-War
 
Posts: 229
Joined: 30 Mar 2019, 12:20
Has liked: 132 times
Been liked: 29 times
FAF User Name: Little Miss Murder

Re: LINUX SUPPORT IS HERE

Postby Little Miss Murder » 20 Dec 2019, 01:14

foodlfg wrote:i know it's not a perfect answer but this is what i have. :p


As far as I can tell, essentially my setup is the same but no dice. My problem is now the lack of game launch.

ETA Can you please post the contents of your run file (the copy of the generated one)? Thanks!
Little Miss Murder
Avatar-of-War
 
Posts: 229
Joined: 30 Mar 2019, 12:20
Has liked: 132 times
Been liked: 29 times
FAF User Name: Little Miss Murder

Re: LINUX SUPPORT IS HERE

Postby Little Miss Murder » 20 Dec 2019, 01:28

The problem appears to be ICE related:

from ice-adapter.log:

Code: Select all
.
.
.
2019-12-20 01:20:52.764 INFO  Received GPGNet message: ClearSlot 6 (c.f.iceadapter.gpgnet.GPGNetServer:123)
2019-12-20 01:20:52.765 INFO  Received GPGNet message: ClearSlot 7 (c.f.iceadapter.gpgnet.GPGNetServer:123)
2019-12-20 01:20:52.766 INFO  Received GPGNet message: ClearSlot 8 (c.f.iceadapter.gpgnet.GPGNetServer:123)
2019-12-20 01:20:56.262 INFO  Received GPGNet message: PlayerOption 163435 Army 1 (c.f.iceadapter.gpgnet.GPGNetServer:123)
2019-12-20 01:20:56.428 ERROR Error while communicating with FA (input), assuming shutdown (c.f.iceadapter.gpgnet.GPGNetServer:160)
java.io.EOFException: null
   at com.google.common.io.LittleEndianDataInputStream.readAndCheckByte(LittleEndianDataInputStream.java:226)
   at com.google.common.io.LittleEndianDataInputStream.readInt(LittleEndianDataInputStream.java:116)
   at com.faforever.iceadapter.gpgnet.FaDataInputStream.readInt(FaDataInputStream.java:56)
   at com.faforever.iceadapter.gpgnet.FaDataInputStream.readString(FaDataInputStream.java:65)
   at com.faforever.iceadapter.gpgnet.GPGNetServer$GPGNetClient.listenerThread(GPGNetServer.java:150)
   at java.base/java.lang.Thread.run(Thread.java:844)
2019-12-20 01:20:56.428 INFO  GPGNet connection lost (c.f.iceadapter.gpgnet.GPGNetServer:186)
2019-12-20 01:20:56.428 DEBUG Closing GPGNetClient (c.f.iceadapter.gpgnet.GPGNetServer:169)
2019-12-20 01:20:56.429 INFO  FA SHUTDOWN, closing everything (com.faforever.iceadapter.IceAdapter:128)
2019-12-20 01:20:56.429 WARN  Close requested, stopping... (c.f.iceadapter.rpc.RPCHandler:130)
2019-12-20 01:20:56.430 INFO  close() - stopping the adapter (com.faforever.iceadapter.IceAdapter:139)
2019-12-20 01:20:56.430 DEBUG No longer listening for GPGPNET from FA (c.f.iceadapter.gpgnet.GPGNetServer:163)
2019-12-20 01:20:56.431 INFO  GPGNetServer stopped (c.f.iceadapter.gpgnet.GPGNetServer:262)


Any ideas?
Little Miss Murder
Avatar-of-War
 
Posts: 229
Joined: 30 Mar 2019, 12:20
Has liked: 132 times
Been liked: 29 times
FAF User Name: Little Miss Murder

Re: LINUX SUPPORT IS HERE

Postby betrok » 21 Dec 2019, 13:05

foodlfg wrote:i used the latest client. 1.1.0-RC1

what is you set up?
do you have the "Use Fallback vault location" enabled in the client?
did you installed the game using steam?
what is your game location set to in the client?

maybe you did something differently than us and your game can find those .lua files. idk.


Arch linux, manually installed client from github tarball, system openjdk10.
Game was installed via native steam, but runs with system wine(4.21 atm) with vcrun10, d3dx9 and xact from winetricks.

Use Fallback vault location enabled.

Command line:
Code: Select all
/home/alex/games/faf/nrun.sh "%s"

Script just sets up wineprefix:
Code: Select all
#!/bin/bash
WINEPREFIX=/home/alex/games/faf/wine wine "$@"

I've messed around a lot with custom client builds and various run options actuality, but nothing of that should notable affect current setup.
betrok
 
Posts: 9
Joined: 09 Nov 2019, 08:09
Has liked: 1 time
Been liked: 2 times
FAF User Name: betrok

Re: LINUX SUPPORT IS HERE

Postby Wesmania » 21 Dec 2019, 13:31

Little Miss Murder wrote:The problem appears to be ICE related:


This looks more like the game failing to start to me. No idea why. Try checking if running the game standalone and starting the game works, maybe?
Wesmania
Contributor
 
Posts: 391
Joined: 19 Nov 2014, 19:17
Has liked: 2 times
Been liked: 79 times
FAF User Name: MazorNoob

Re: LINUX SUPPORT IS HERE

Postby tatsu » 21 Dec 2019, 22:13

Wesmania wrote:
This looks more like the game failing to start to me. No idea why. Try checking if running the game standalone and starting the game works, maybe?

the game doesn't start for you currently?

have you tried setting proton to latest version in steam rebooting your computer then re-generating the run file?
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby keyxmakerx » 22 Dec 2019, 00:21

Just thought I'd mention again, running POP OS pretty new install of it, but the faf.sh script isn't working for me. Keeps getting a 404 not found when trying to install the downlords client, and if I try to manually add it doesn't seem to work either.
keyxmakerx
Crusader
 
Posts: 14
Joined: 16 Mar 2016, 16:16
Has liked: 1 time
Been liked: 2 times
FAF User Name: keyxmakerx

PreviousNext

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest