Supreme commander faf linux

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

Scripts for Forged Alliance Forever (FAF) on Linux

FAForever/faf-linux

This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?

Sign In Required

Please sign in to use Codespaces.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching GitHub Desktop

If nothing happens, download GitHub Desktop and try again.

Launching Xcode

If nothing happens, download Xcode and try again.

Launching Visual Studio Code

Your codespace will open once ready.

There was a problem preparing your codespace, please try again.

Latest commit

Git stats

Files

Failed to load latest commit information.

README.md

A set of scripts to automatically set up Supreme Commander: Forged Alliance with Forged Alliance Forever on Linux. Tested on Ubuntu, Fedora, and Arch, should work on other distributions as well.

  1. Install prerequisites from your distribution’s package manager:
    • Debian and derivatives (Ubuntu, Pop!_OS, Linux Mint, etc):
      • Ensure i386 architecture is enabled: sudo dpkg —add-architecture i386
      • sudo apt install git wget jq cabextract libxcomposite1:amd64 libxcomposite1:i386 libfreetype6:amd64 libfreetype6:i386
    • Fedora and Red Hat-based:
      • sudo dnf install git wget jq cabextract patch libXcomposite.x86_64 libXcomposite.i686 freetype.x86_64 freetype.i686
    • Arch Linux and derivatives (Manjaro, EndeavourOS, etc):
      • sudo pacman -Syu git wget jq cabextract libxcomposite lib32-libxcomposite freetype2 lib32-freetype2
    • Other distributions:
      • Commands needed: git , wget , jq , cabextract , patch
      • Libraries needed:
        • Both 32-bit and 64-bit versions of libXcomposite.so.1
        • Both 32-bit and 64-bit versions of libfreetype.so.6
    • Note: Non-standard distributions such as NixOS may not directly be supported. Please consider using Distrobox or similar.
  2. Install Steam, then install Supreme Commander: Forged Alliance from Steam
    • In Properties -> Compatibility, check «Force the use of a specific Steam Play compatibility tool», and select «Proton Experimental»
    • Start the game from Steam. This step is needed to download and unpack Proton Experimental.
    • Note: the game may lag horribly or not even start. This is fine, as the rest of this guide should still work.
    • If you want to play Forged Alliance on Steam, set PROTON_NO_ESYNC=1 PROTON_NO_FSYNC=1 %command% in launch options. If you only wish to play on FAF, this step is not necessary.
  3. Clone this repository
    • Open a terminal where the installation should be located, then run git clone https://github.com/FAForever/faf-linux
    • This will create a new folder named faf-linux, where the client will be installed.
  4. Run ./setup.sh to set up the local wine prefix, the FAF client, java, and others
    • Note: the script will install everything into the path where you cloned this repository. If you wish to move the installation later, edit the paths in common-env then re-run ./set-client-paths.sh and ./install-shortcut.sh .
  5. Start the FAF client with ./run and log in
  6. After logging in, close the FAF client and run ./set-client-paths.sh
  7. To launch FAF, run ./run
  8. If you wish to launch FAF without using the terminal, run ./install-shortcut.sh . FAF will show up as «Forged Alliance Forever» in your application launcher.
Читайте также:  Linux getting os version

How to update after installation

  1. Run ./update.sh perform to update necessary components automatically
  2. The update script will not automatically remove old versions currently. If new versions work, old versions are safe to delete.

Manually updating individual components

The script ./update-component.sh is provided for convenient updating of certain parts. Generally you do not need to use this.

  • To update dxvk, run ./update-component.sh dxvk . Versions look like «1.9.3».
  • To update the FAF client, run ./update-component.sh faf-client . Versions look like «2021.10.0».
  • To update java, run ./update-component.sh java «» .
    • The FAF client (at time of writing) wants Java 17.
    • Java URL is currently https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.5%2B8/OpenJDK17U-jdk_x64_linux_hotspot_17.0.5_8.tar.gz
    • These may change in the future. Check the versions file for current working URLs.

    Please ping @iczero#8740 on the FAF Discord guild in the tech-support-forum channel.

    Weird issues and other nonsense

    • Mouse cursor stuck, can’t click things in lobby: quit out of the game and the FAF client, run ./run-offline , click past the intro videos until you get to the main menu, exit the game, then try starting a game from FAF again
    • Forged Alliance minimizes itself on Alt-Tab: run ./launchwrapper winecfg , go to «Graphics», then check the «Emulate a virtual desktop» box. Note: This may cause everything to break. If it does, just run winecfg again and uncheck the box.
      • Warning: as of 2022-10-24, this does cause everything to break. You have been warned.
      • Gamescope is an alternative, see below
      • on Debian and derivatives (including Ubuntu), install libxcomposite:amd64 and libxcomposite:i386
      • on Fedora and Red Hat derivatives, install libXcomposite and libXcomposite.i686
      • on Arch and derivatives, install libxcomposite and lib32-libxcomposite
      • see https://github.com/ValveSoftware/wine/blob/46a904624f1c3f62df806e9f0bff2bfda6bdf727/dlls/winex11.drv/vulkan.c#L276, https://github.com/ValveSoftware/wine/blob/46a904624f1c3f62df806e9f0bff2bfda6bdf727/dlls/winex11.drv/x11drv_main.c#L501
      • May appear as:
        • 0024:err:vulkan:__wine_create_vk_instance_with_callback Failed to create instance
        • 0024:err:vulkan:wine_vk_instance_load_physical_devices Failed to enumerate physical devices, res=-3
        • terminate called after throwing an instance of ‘dxvk::DxvkError’
        • Vulkan drivers are not installed. Please install the appropriate Vulkan drivers for your GPU and distribution and install them.
        • 32-bit graphics drivers (including Vulkan libraries) are not installed. Please ensure both 32-bit and 64-bit graphics drivers, including Vulkan support, are installed.
        • You are on Arch and have accidentally installed lib32-amdvlk . AMDVLK is the old AMD Vulkan driver and causes many issues. Unless you are sure you need AMDVLK, uninstall lib32-amdvlk , and if necessary, install lib32-vulkan-radeon (newer AMD RADV driver) in its place.
        • May appear as:
          • Skipping Vulkan 1.2 adapter
          • DXVK: No adapters found.
          • «Requested display count exceeds those available.»
          • Years of my own suffering have culminated in this massive pile of hacks
          • I will literally fix your issues with you over discord because I have no life
          • I suck at faf so I literally spend more time maintaining these scripts than playing faf

          Источник

          To be able to install Supreme Commander and Supreme Commander : FA

          First, Go in Steam, then up in the left corner «Steam», then settings, then «Steam Play», «Enable Steam Play for all other titles». Then, on the box with «Proton Experimental», choose «Proton 6.3-5».

          You will have to restart Steam for the changes to take effect.

          Then you will be able to install the game.

          Change in the Properties

          • You will need to put : PROTON_NO_ESYNC=1 PROTON_NO_FSYNC=1 %command% /windowed 1024 768 in the Launch Option to be able to create a username.
          • In the Compatibility tabs, check the use of proton 6.3-5

          Installing the different app

          *The process is the same on all Distribution after that*

          Close and reopen your terminal, or use the *reset* command

          • pipx install protontricks
          • pipx ensurepath
          • protontricks-desktop-install
          • pipx upgrade protontricks

          **You are now good to go with Protontricks**

          3.a Lauch the game (**This is for Supreme Commander : Forged Alliance, for Supreme Commander, it’s the same, change «9420» by «9350»)

          Now, lauch the game, even if nothing happen. Then, close it.

          In the terminal, copy/paste this :

          If you get an error, reopen the game for a longer periode of time, if there is still an error, try this :

          Hope this guide could help you 🙂

          IMPORTANT : After you have successfuly lauched the game, remove /windowed 1024 768 to have the game working properly

          PS : for FAF, there is a video to help installing it : https://youtu.be/Rv3ZXA4FNFk (thanks to u/tatsujb )

          For those wondering d3dx9 is a librairy used by the game

          Источник

          Supreme commander faf linux

          Under Steam Settings -> Steam Play enable Steam Play for all titles:
          You may have to check the first check box as well.
          The version of proton here is not important, but generally I’d recommend the first option after «Proton Experimental».

          Now SupCom:FA will download, but crash immediately. To fix that, open the game properties and check «Force the use of a specific Steam Play compatibility tool». Then choose «Proton 5.0-10».
          That is the last steam setting you need to change.

          At this point SupCom:FA should run, but it will be extremely sluggish whenever a video plays. My best workaround is disabling all videos.

          To do that open the game properties, go to the «Local Files» tab and press «Browse Local Files. «. Then simply rename the folder «movies» to «movies_bak» or something similiar.
          You may have to repeat this step after an update.

          Unfortunately this makes the campaign hard to follow, but at least it is playable. Maybe watch a playthrough on YouTube if you are interested in the story:
          UEF Campaign
          Cybran Campaign
          Aeon Campaign
          https://www.youtube.com/watch?v=PgzihrrdtM0
          Also you might «get stuck» on a black screen when a video was supposed to play. Simply press Enter a few times to skip ahead.

          Other than that I didn’t notice any problems.

          I tested it on Ubuntu 20.04 in November 2021. It worked fine, but it might be different in the future or on other versions of linux.

          On the very top left of the Steam window click on «Steam», then Settings in the list that appeared.

          Go to the game in your library. On the right, below the banner image, is a button with a little gear. Click it, then choose Properties in the list that appeared.

          It is a piece of software that allows windows games to run on linux. Different versions work with different games, so some experimentation is required. Some games, especially those with DRM, might not run on linux even with Proton.

          Follow this guide, but apply it to the game you’re interested in. In the game properties choose «Proton Experimental» and try to run it. If you run into issues, try the next Proton version in the list.
          Proton 5.0-10 seems to work with a lot of older games. You can also search the games’ discussions forum for «linux» and see if someone suggests a Proton version to try.

          If you find a version that works, be nice and tell other people about it. Feel free to use this guide as a template or simply make a quick post in discussions.
          If you can’t get it to work, you might have to wait for new versions of Proton to try. You could also google » linux» or something similar to see if there are other ways to get it to work.

          Источник

Оцените статью
Adblock
detector