Linux install script (Lutris)
-
@Sereiya nice just as a heads up 1.4.4 is now Offical and not a Release Candidate
-
While working on the script for Retail I noticed FA is on gog now too, said not to be compatible to FAF (challenge accepted?). Can someone confirm?
@rowey said in Linux install script (Lutris):
@Sereiya nice just as a heads up 1.4.4 is now Offical and not a Release Candidate
Good to know, thanks.
-
FA on GOG is not supported due to the fact that we have no way to confirm you owning a copy of the game on gog.
Which is now done by steamlinking your faf account so that we can avoid all kinds of trouble from SE.Basically there is nothing wrong with the GOG version itself, the problem lies in the fact that we can't know if you really own the game while it's easily done through steam.
-
@randomwheelchair Oh, right, there was something.... does that mean the Retail version is now also blocked due to missing checks?
-
As far as I'm aware all retail versions can be activated on steam to receive gold version of SC and FA.
That's also how I got one of my steam copies. -
Correct the retail code if redemed on steam will give you a gold eddition. and GOG has no way for us to Validate if you own the game.
-
I've tested out a few distros with the script to make sure FAF works stable on all flavours of Linux using it.
Ubuntu 20.04 LTS
Pop!_OS 20.10
Linux Mint 20.1 "Ulyssa"
Fedora 34 Workstation
OpenSUSE Tumbleweed
MX Linux 19.4.1-ahs
ElementaryOS 5.1
Manjaro 21.0.5
Debian 10 Buster
Arch LinuxThe mentioned bug on Arch Linux may be a sole problem of me missing a specific package (classic Arch problem I assume). Someone may confirm and tell which one it was for FAF to recognize Env vars so it can be fixed. Since Manjaro works fine it probably is just missing configuration on my side.
-
https://lutris.net/games/forged-alliance-forever-steam-latest/installer/edit
made my own attempt which looks less hacky and is working on arch -
You could edit the wiki and make an instruction there on how to do your thing https://wiki.faforever.com/index.php?title=Setting_Up_FAF_Linux
-
@axel12 Already done here.
-
@ovo Your install script doesn't work, throws Error 17 "File already exists" after looking for the run file. This isn't the only problem though.
Other things I noticed:
- You're getting the files via wget instead of using Lutris' in-built file download function. Works, but isn't beautiful since you skip the option to insert the files yourself
- Instead of downloading the FAF client, you're downloading the Java 15 SDK twice
- The Steam arguments you give are missing %command%
- Having the user manually looking for the run file is unnecessary, it will always spawn in /tmp/proton-$USER/
- You made the same error like me with line breaks
- The user isn't told to set a specific Proton version. This can cause later problems like desyncs, as described here.
- You don't tell the user that SteamPlay has to be activated for every title in order to even install Forged Alliance. In my opinion missing information like this is extremely frustrating for new users.
- Your client.prefs file will be rejected by the FAF client since the lobby isn't written to simply add missing entries, but expect them to be already present. That's the reason I uploaded a prepared one for my script which I edit using sed, so the client accepts the file.
- You do not set the preferences file location, therefore FAF lobby will look for it in ~/.wine/ and create a new one there, ignoring your FA settings as well as forgetting all settings every time a user might deletes his standard wine prefix.
- Not a necessity, but I find the option to have all files in your defined game folder quite important for large games so your /home won't get cluttered. In the end FAF will save literally everything in ~/.faforever/
Sorry, but as it is, your script is absolutely non-working on any machine and riddled with problems.
-
@sereiya i've posted a link to edit script, since new drafts wont appear before lutris team moderation, take a look into it
You're getting the files via wget instead of using Lutris' in-built file download function. Works, but isn't beautiful since you skip the option to insert the files yourself
can be done for JRE, but i guess only the latest version of FAF should be aviable, especially after 1.4.4
Having the user manually looking for the run file is unnecessary, it will always spawn in /tmp/proton-$USER/
sounds reasonable, used this one just to show instruction dialog
may just use input_menuThe user isn't told to set a specific Proton version. This can cause later problems like desyncs, as described here.
Didn't checked, but haven't latest proton already got rid if most of FA errors?
https://www.winehq.org/announce/6.7
That one fixed the last bug for FA, may not be an issue for future versions of proton.You don't tell the user that SteamPlay has to be activated for every title in order to even install Forged Alliance. In my opinion missing information like this is extremely frustrating for new users.
Agree
Your client.prefs file will be rejected by the FAF client since the lobby isn't written to simply add missing entries, but expect them to be already present. That's the reason I uploaded a prepared one for my script which I edit using sed, so the client accepts the file.
Works 4 me
Will look into itYou do not set the preferences file location, therefore FAF lobby will look for it in ~/.wine/ and create a new one there, ignoring your FA settings as well as forgetting all settings every time a user might deletes his standard wine prefix.
Uuugh, but it doesnt even uses standart wine
Not a necessity, but I find the option to have all files in your defined game folder quite important for large games so your /home won't get cluttered. In the end FAF will save literally everything in ~/.faforever/
Agree, can it be done just with a symlink?
UPD: ok, zero brain moment, just realized only i have access to edit page
-
@ovo I've looked into it, but every iteration of the draft shows the same bugged version. I encounteres some similar behaviour when I worked with the page which is why I almost never saved it before commiting and mostly worked offline. I assume the website is bugged.
Since I uploaded the .yaml code in my first post (clearer syntax than on lutris . net, looks way less "hacky"), why won't you just take the code that's already working but seem a little hacky to you and just edit it? Not lying, it feels weird to see someone completely working around me and encountering some problems I already solved within a few hours of testing. Stuff like the optional ~/.faforever/ symlink is already included too, and as I said I'm not even sure the problem on Arch wasn't due to a faulty configuration on my side.
-
Updated to Lobby version 1.4.6 due to the serverload issue. Filename still says 1.4.4-RC1 simply because the Lutris mods still didn't review the installer, therefore link changes aren't applied. Next revision of the install script will have some fancy code to update the lobby automatically through Lutris.
-
It worked, Thank you!
Before I stated I installed the open source AMDGPU driver for my RX 570 with pretty much everything from the "Install" section: https://wiki.archlinux.org/title/AMDGPU
I am on Manjaro, the only problem I encountered was that the game crashes on launch, saying “CD3DDeviceResources::DevResInitResources: Unable to load effect file /effects/cartographic.fx”I followed this guys guide: https://www.protondb.com/users/1007765403
But skipped the resolution changes. Maybe that was why the first start of the steam version took quite long, the cut scenes were laggy but skippable.Install winetricks:
ubuntu: sudo apt install winetricks
manjaro: sudo pacman -S winetricksInstall protontricks using this guide from simpler: https://www.simpler.website/html/2021/1/protontricks.html
Copy from simpler:
Arch based Linux distros:
Open the terminal, then copy and paste these commands:
sudo pacman -S python-pip python-pipx python-setuptools python-virtualenv
python3 -m pip install --user pipx
python3 -m pipx ensurepathClose and reopen the terminal again.
Install protontricks using this command:pipx install protontricks
in a terminal, write: protontricks 9420 dlls d3dx9 in a terminal, write: protontricks 9420 dlls xact
(if you, at a later stage, change proton version in steam, you have to reinstall the above two libraries since they don’t seem to come with proton.)
Now start the game. It took quite some time for me. Create a game profile ingame and exit.
edit your Game.prefs on ubuntu it’s located in:~/.steam/debian-installation/steamapps/compatdata/9420/pfx/drive_c/users/steamuser/Local Settings/Application Data/Gas Powered Games/Supreme Commander Forged Alliance/ change primary_adapter = ‘1024,758,60’, to whatever your native screen resolution is, mine is: primary_adapter = ‘2560,1440,60’, and save.
Edit launch options again (see step above) and remove “/windowed 1024 758” leaving just PROTON_NO_ESYNC=1, PROTON_DUMP_DEBUG_COMMANDS=1 %command%. All that is left now is to install faforever client (for multiplayer), check the wiki: https://wiki.faforever.com/index.php?title=Setting_Up_FAF_Linux#Java_Downlord.27s_Client
-
Any help with this? Installed with OPs scripts, FA works fine through Steam, the client crashes when logging in though. This is on Arch.
lutris-wrapper: Forged Alliance Forever Running /home/max/Games/forged-alliance-forever/lobby/downlords-faf-client Initial process has started with pid 53623 Start monitoring process. 19:52:08.557 [main] DEBUG com.faforever.client.preferences.PreferencesService - Logger initialized 2021-10-02 19:52:09.471 WARN 53623 --- [kground-preinit] o.s.h.c.j.Jackson2ObjectMapperBuilder : For Jackson Kotlin classes support please add "com.fasterxml.jackson.module:jackson-module-kotlin" to the classpath 2021-10-02 19:52:09.517 INFO 53623 --- [JavaFX-Launcher] o.s.boot.SpringApplication : Starting application using Java 15.0.2 on endeavour with PID 53623 (started by max in /home/max/Games/forged-alliance-forever/lobby) 2021-10-02 19:52:09.518 INFO 53623 --- [JavaFX-Launcher] o.s.boot.SpringApplication : The following profiles are active: prod,linux 2021-10-02 19:52:10.068 INFO 53623 --- [JavaFX-Launcher] trationDelegate$BeanPostProcessorChecker : Bean 'asyncConfig' of type [com.faforever.client.config.AsyncConfig$$EnhancerBySpringCGLIB$$ebe4d117] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2021-10-02 19:52:10.081 INFO 53623 --- [JavaFX-Launcher] trationDelegate$BeanPostProcessorChecker : Bean 'cacheConfig' of type [com.faforever.client.config.CacheConfig$$EnhancerBySpringCGLIB$$4d23845d] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.gson.internal.reflect.UnsafeReflectionAccessor (file:/home/max/Games/forged-alliance-forever/lobby/lib/gson-2.8.5.jar) to field java.net.HttpCookie.name WARNING: Please consider reporting this to the maintainers of com.google.gson.internal.reflect.UnsafeReflectionAccessor WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2021-10-02 19:52:10.235 INFO 53623 --- [JavaFX-Launcher] c.f.c.preferences.PreferencesService : Switching FA Forever logging configuration to INFO 2021-10-02 19:52:10.254 INFO 53623 --- [JavaFX-Launcher] o.s.s.c.ThreadPoolTaskScheduler : Initializing ExecutorService 'taskScheduler' 2021-10-02 19:52:10.590 INFO 53623 --- [JavaFX-Launcher] c.f.c.map.generator.MapGeneratorService : Deleting leftover generated maps... 2021-10-02 19:52:10.681 INFO 53623 --- [JavaFX-Launcher] com.faforever.client.update.Version : The current application version is: 1.4.6 2021-10-02 19:52:10.688 INFO 53623 --- [JavaFX-Launcher] c.f.c.update.ClientUpdateServiceImpl : Current version: 1.4.6 2021-10-02 19:52:10.692 INFO 53623 --- [pool-3-thread-3] c.f.client.update.CheckForUpdateTask : Checking for client update 2021-10-02 19:52:10.711 INFO 53623 --- [pool-3-thread-4] c.f.c.update.CheckForBetaUpdateTask : Checking for client update (pre-release channel) 2021-10-02 19:52:10.919 INFO 53623 --- [JavaFX-Launcher] o.s.boot.SpringApplication : Started application in 2.07 seconds (JVM running for 2.857) 2021-10-02 19:52:11.232 INFO 53623 --- [lication Thread] com.faforever.client.update.Version : fromVersion '1.4.6' is not newer than toVersion '1.4.6'. No update is required. 2021-10-02 19:52:15.675 INFO 53623 --- [ Discord RPC] c.f.client.discord.DiscordEventHandler : Discord is ready with user 'BenDover' 2021-10-02 19:52:18.111 INFO 53623 --- [ Thread-12] c.f.client.remote.FafServerAccessorImpl : Trying to connect to FAF server at lobby.faforever.com:8001 2021-10-02 19:52:18.140 INFO 53623 --- [ Thread-12] c.f.client.remote.FafServerAccessorImpl : FAF server connection established 2021-10-02 19:52:18.164 INFO 53623 --- [ Thread-12] c.f.client.remote.FafServerAccessorImpl : FAF session initiated, session ID: 2857377651 2021-10-02 19:52:27.779 INFO 53623 --- [ Thread-12] c.f.client.remote.FafServerAccessorImpl : FAF login succeeded 2021-10-02 19:52:27.943 INFO 53623 --- [lication Thread] com.faforever.client.update.Version : fromVersion version '1.6' is newer than toVersion '1.4.6'. fromVersion should be updated. > Patching com/sun/webkit/WebPage ... # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x00007f5e22d83399, pid=53623, tid=53915 # # JRE version: OpenJDK Runtime Environment (15.0.2+7) (build 15.0.2+7-27) # Java VM: OpenJDK 64-Bit Server VM (15.0.2+7-27, mixed mode, sharing, tiered, compressed oops, g1 gc, linux-amd64) # Problematic frame: # C [libavcodec.so.58+0x1bc399] av_packet_free_side_data+0x9 # # Core dump will be written. Default location: Core dumps may be processed with "/usr/lib/systemd/systemd-coredump %P %u %g %s %t %c %h" (or dumping to /home/max/Games/forged-alliance-forever/lobby/core.53623) # # An error report file with more information is saved as: # /home/max/Games/forged-alliance-forever/lobby/hs_err_pid53623.log [thread 53920 also had an error] # # If you would like to submit a bug report, please visit: # https://bugreport.java.com/bugreport/crash.jsp # Monitored process exited. All monitored processes have exited. Monitored process didn't return an exit code. Exit with returncode 0
Update:
I fixed it, what I did was change config in lutris to windows and back to linux to reset to defaults, changed the executable like it used to be, added INSTALL4J_JAVA_HOME=.. and PROTON_NO_ESYNC=1, changed in Game.prefs my primary adapter to 2560,1440,120 and it works now in fullscreen borderless window. -
I get a FAF splash screen for a second and then it closes. Pls fix?
And im on Manjaro KDE, if that makes any sense.Edit: I guess i have the same bug as Arch and Manjaro xfce, manually launching with the command works.
Also why is FAF client written in Java? -
FAF client was written in Java as that is what a contributor wanted to write it in and that who we have to support it contributor come and go.
-
I'm sorry, I was gone from the community for a while due to health issues. I'll look into the provided logs asap.
-
@sereiya Thanks for your hard work mate!