• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Login
FAForever Forums
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Login

Linux Support

Scheduled Pinned Locked Moved I need help
202 Posts 44 Posters 41.8k Views 7 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    callcifer
    last edited by callcifer 14 Nov 2020, 18:18

    OK there seems to be some confusion. Here's where I stand.

    • Actual gameplay is stable for me with both 5.0 and 5.13.
    • Replays almost always crash with 5.0 but never with 5.13.

    @foodlfg said in Linux Support:

    if steam had not been running then the first one would not have worked either.
    only 5.09, 4.xx run file generates properly for me.
    5.13 does not

    This is not correct in my experience. Before 5.13 I never had to have Steam running to play FAF. What has changed with 5.13 is that Steam generates a slightly different run file. With 5.0 and earlier the last line of the file ended with:

    bin/wine" "${@:-${DEF_CMD[@]}}"

    but with 5.13 it became

    bin/wine" steam.exe "${@:-${DEF_CMD[@]}}"

    So instead of executing SupremeCommander.exe directly with wine, 5.13 instead calls steam.exe which in turn launches the game. That's why 5.13 doesn't work if Steam isn't running. Still, as I've said, you can fix this very easily by removing steam.exe from that line and everything will work correctly.

    @foodlfg said in Linux Support:

    the game is not 100% stable with Wine / Proton.
    we dont know why.

    Again, not in my experience. I've had zero stability issues with Proton 3.16 and 5.13. The only problematic ones for me were 4.11 (caused desyncs) and 5.0 (caused replay crashes).

    @tatsu said in Linux Support:

    I just switched to D9VK

    how'd you do that?

    With Proton 5.0 and above Proton defaults to D9VK instead of Wine D3D9 so you don't have to do anything special. If DXVK_HUD=1 shows you the DXVK hud in game then you are using D9VK. Of course, you can try to force enable D9VK with PROTON_USE_D9VK=1

    1 Reply Last reply Reply Quote 1
    • T Offline
      tatsu
      last edited by 14 Nov 2020, 20:33

      oh ok if it's default then perfect.

      How to setup FAF on linux

      1 Reply Last reply Reply Quote 0
      • F Offline
        foodlfg
        last edited by 14 Nov 2020, 20:51

        @callcifer
        i have a Proton 4.11 run file from june and it already had steam.exe in it.
        bin/wine" steam.exe "${@:-${DEF_CMD[@]}}"

        so this is not Proton version dependent.
        more like Steam version, but even that is unlikely.

        and my problem is not "steam is not running" with Proton 5.13.

        nice ghetto streams: https://www.twitch.tv/foodlfg

        1 Reply Last reply Reply Quote 0
        • B Offline
          Brutus5000 FAF Server Admin
          last edited by 22 Nov 2020, 21:32

          Looks like my setup broke. Everytime I try to join a game I'm stuck with the FA mouse cursor and a black screen. Pinning Proton to 5.0-10 did not help. And I can't tab out of the black fullscreen window... Any advice?

          He said, "I've been to the year 3000
          Not much has changed, but they live underwater
          And your great-great-great-granddaughter
          Is playin' FAF, playin' FAF"

          T 1 Reply Last reply 23 Nov 2020, 11:19 Reply Quote 0
          • C Offline
            callcifer
            last edited by 23 Nov 2020, 10:57

            If you start it from the terminal do you see any error messages?

            Also, if you recently installed any updates make sure to reboot as kernel/driver changes can cause problems until a reboot.

            1 Reply Last reply Reply Quote 0
            • T Offline
              tatsu @Brutus5000
              last edited by 23 Nov 2020, 11:19

              @Brutus5000 you could delete .faforever and .com.faforever.client.FafClientApplication in home see if it's not the conf file that's messed up.

              if that doesn't do it. regenerate the run file (remove steam.exe like calcifer did)

              if that doesn't do it redo your whole FA install.

              this is quite weird TBH. never had this. what change happened on your setup before it started failing?

              How to setup FAF on linux

              1 Reply Last reply Reply Quote 0
              • T Offline
                tatsu
                last edited by 8 Dec 2020, 16:30

                I'm testing new proton 5.13, everything's nominal

                How to setup FAF on linux

                1 Reply Last reply Reply Quote 0
                • J Offline
                  JuicyWishes
                  last edited by JuicyWishes 30 Dec 2020, 10:47

                  Hi everyone,
                  I'm trying to install downlords faf client on linux. But i'm having problems with java installation.
                  When i follow the wiki and install openjdk-14-jre (and do all the other steps) i get the following output when trying to run the client:
                  No suitable Java Virtual Machine could be found on your system.
                  The version of the JVM must be 15.
                  Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.

                  I then tried installing version 15 and setting the env-var with the following:
                  export INSTALL4J_JAVA_HOME=/usr/lib/jvm/java-15-openjdk-amd64
                  I also tried to install the oracle java package (as in video tutorial) but i could not get it to install at all.

                  I am not very experienced in linux... does anyone know what i'm doing wrong?

                  F 1 Reply Last reply 30 Dec 2020, 16:37 Reply Quote 1
                  • F Offline
                    foodlfg @JuicyWishes
                    last edited by foodlfg 30 Dec 2020, 16:37

                    @JuicyWishes said in Linux Support:

                    Hi everyone,
                    I'm trying to install downlords faf client on linux. But i'm having problems with java installation.

                    open up one terminal window.
                    first command:
                    export INSTALL4J_JAVA_HOME=/usr/lib/jvm/java-14-openjdk-amd64
                    second command:
                    ./downlords-faf-client

                    do you do this or something else?

                    EDIT
                    sorry, the client needs java15 now?

                    nice ghetto streams: https://www.twitch.tv/foodlfg

                    J 1 Reply Last reply 30 Dec 2020, 22:11 Reply Quote 0
                    • F Offline
                      foodlfg
                      last edited by 30 Dec 2020, 16:45

                      btw i have switched to Windows 10 in this month.
                      im not proud of this.
                      but i had basic stability problems constantly. with my recent set up too: PopOS LTS + Gnome3 + AMD drivers.
                      i dont know why, i have no time to experiment with other things. Win 10 is stable.

                      so i cannot test the game on linux from now on.
                      if someone wants to update the wiki from now on, go ahead!
                      https://wiki.faforever.com/index.php?title=Setting_Up_FAF_Linux

                      nice ghetto streams: https://www.twitch.tv/foodlfg

                      1 Reply Last reply Reply Quote 1
                      • J Offline
                        JuicyWishes @foodlfg
                        last edited by JuicyWishes 30 Dec 2020, 22:11

                        @foodlfg Thats right, thats what i did and i got the output telling me i need java15. but installing java15 did not solve it unfortunately.
                        I was thinking the environment variable should be different two so i tried changing it to /usr/lib/jvm/java-15-openjdk-amd64 but thats probably wrong.

                        EDIT: just got it to work. had to use this command:
                        export INSTALL4J_JAVA_HOME=/usr/lib/jvm/java-15-oracle

                        1 Reply Last reply Reply Quote 1
                        • A Offline
                          aIegnagyobbkiraj
                          last edited by 19 Jan 2021, 17:50

                          Hi everyone!
                          I've set up the game on latest Manjaro with Steam Play, and I have a couple of questions:

                          • game load time seems quite excessive - it takes about a minute to put me into the game and similar amount of time to close the game after I hit exit. Is this usual or can it be improved in some way? (I have tested it using proton 5.0-x and 5.13-x with same results)
                          • tried to watch some replays but most of them gave me error message. (I'm not certain it's client related though, as the message seemed to be complaining about a server resource not found. Still like 80% of my tries were unsuccessful which seems like a lot!) So the question: is that normal / can it be improved etc.

                          Also I've read some from the comments in this topic and the game itself was pretty stable compared to some. I have managed to watch two ~1 hour replays (with max speed) and there were no problems.
                          Thanks in advance!

                          F 1 Reply Last reply 19 Jan 2021, 18:14 Reply Quote 0
                          • F Offline
                            foodlfg @aIegnagyobbkiraj
                            last edited by 19 Jan 2021, 18:14

                            @szopacniger

                            takes about a minute to put me into the game and similar amount of time to close the game after I hit exit.

                            strange.
                            did you use the PROTON_NO_ESYNC=1 flag in Steam before you generated the run file?
                            without it, it is slow.
                            probably it is not it. but i have no other idea. the loading wasnt really slow for me.
                            it may also be a network problem. when you have to connect to other players via the faf server.

                            as for the replays, same, no idea but make sure you close the game before you start a new replay. can you post the error message?

                            nice ghetto streams: https://www.twitch.tv/foodlfg

                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              aIegnagyobbkiraj
                              last edited by 19 Jan 2021, 18:43

                              The PROTON_NO_ESYNC flag is set, yes. I don't think it's network related because I was self-hosting a game with no peers. Did not give any error message either, it just took forever.

                              1 Reply Last reply Reply Quote 0
                              • A Offline
                                aIegnagyobbkiraj
                                last edited by 19 Jan 2021, 18:48

                                As an additional information, I enabled Vulkan support and overlay on the system. With Steam it shows the version info and such but when launching via FAF the corner remains empty. Don't know if that's an indicator of something?

                                1 Reply Last reply Reply Quote 0
                                • F Offline
                                  foodlfg
                                  last edited by 19 Jan 2021, 19:05

                                  what if you start a terminal and type:
                                  export DXVK_HUD=1
                                  export INSTALL4J_JAVA_HOME=/usr/lib/jvm/java-15-oracle - the usual
                                  ./downlords-faf-client - the usual

                                  this should work and you should see the fps numbers etc if you are using Proton 5++. Proton 5++ versions have Vulkan translation enabled by default. so probably you are ok.
                                  but anyways, even with OpenGL translation, it should be faster.

                                  unrelated
                                  but i see someone modified the wiki to use oracle jdk.
                                  is that ok? i mean open jdk was not good? im concerned about that oracle jdk is not accessible from every of the linux distribution repositories.

                                  nice ghetto streams: https://www.twitch.tv/foodlfg

                                  1 Reply Last reply Reply Quote 0
                                  • A Offline
                                    aIegnagyobbkiraj
                                    last edited by 19 Jan 2021, 19:36

                                    Yes, thanks! Overlay and hence vulkan translation appears to be working now. It is still slow though. Joined a game couple of minutes ago and it took like 2.5 mins to start. I was astonished only one dude left till then.

                                    1 Reply Last reply Reply Quote 0
                                    • A Offline
                                      aIegnagyobbkiraj
                                      last edited by 19 Jan 2021, 19:39

                                      As an aside I was planning to go with openjdk but the specificity of the wiki made me install oracle instead.

                                      1 Reply Last reply Reply Quote 0
                                      • A Offline
                                        aIegnagyobbkiraj
                                        last edited by 19 Jan 2021, 23:13

                                        Solved! Turned out fsync is enabled by default on newer kernels for Manjaro. Added PROTON_NO_FSYNC=1 to launch options and that did it. It may be advisable to add it to the recommended install process on the wiki since it has no adverse effects.

                                        1 Reply Last reply Reply Quote 1
                                        • T Offline
                                          tatsu
                                          last edited by tatsu 20 Jan 2021, 02:57

                                          don't use the new proton_experimental. while it works for FA from steam FA run from FAF fails; this is what you'll get if you try to run it with proton experimental

                                          On another note I'm getting another issue. On my new install of ubuntu 20.10 and with proton 5.13 (in which case the nice error goes away), but my FA stops immediately with no log output as you can see :

                                          2021-01-20 03:53:57.860  INFO 396709 --- [      Thread-24] c.f.client.fa.ForgedAllianceService      : Starting Forged Alliance with command: [/home/t/faf/run, /home/t/.faforever/bin/ForgedAlliance.exe, /init, init.lua, /nobugreport, /log, /home/t/.faforever/logs/game_13674228.log, /gpgnet, 127.0.0.1:13904, /mean, 1261.25, /deviation, 93.3293, /savereplay, gpgnet://127.0.0.1:45827/13674228/tatsu.SCFAreplay, /country, FR, /clan, BPT, /numgames, 2373] in directory: /home/t/.faforever/bin
                                          wineserver: using server-side synchronization.
                                          2021-01-20 03:53:59.067  INFO 396709 --- [pool-3-thread-5] com.faforever.client.game.GameService    : Forged Alliance terminated with exit code 53
                                          2021-01-20 03:53:59.391  INFO 396709 --- [      Thread-24] c.f.client.fa.relay.ice.IceAdapterImpl   : ICE adapter terminated normally
                                          

                                          How to setup FAF on linux

                                          foodlfgF 1 Reply Last reply 20 Jan 2021, 18:22 Reply Quote 0
                                          • First post
                                            Last post