Skip to content

Instantly share code, notes, and snippets.

@NoraCodes
Last active April 4, 2024 13:26
Show Gist options
  • Save NoraCodes/1225cbe5837c22bd2a72 to your computer and use it in GitHub Desktop.
Save NoraCodes/1225cbe5837c22bd2a72 to your computer and use it in GitHub Desktop.
Supreme Commander: Forged Alliance with Steam on Linux with PlayOnLinux

This guide is out of date. Use https://github.com/FAForever/faf-linux instead.

Install PlayOnLinux with your package manager (i.e. sudo apt-get install playonlinux). Then, type playonlinux and wait for it to refresh its list.

Install Steam under PlayOnLinux. Once Steam is running, exit it, select its entry in PlayOnLinux, and select Configure.

I suggest using Wine 1.7.8-d3d doublebuffer

Now go to the "Install Components" section and install, in any order: d3dx9, directx9, dotnet40

Under Display, set Video Memory Size to the amount of RAM your graphics card has. If you don't know this, choose 256. Then, under Offscreen Rendering Mode, pick fbo. This is absolutely critical because, without it, you get no graphics.

Now we need to fix the audio. In the same Configure window, select Miscellaneous and find the text box marked "Command to exec before running the program". In that text box, enter export PULSE_LATENCY_MSEC=60 and press the enter key. This fixes the audio.

Now, run Steam again, download SC:FA, and play! Don't be put off by error messages about being unable to find libraries: everything should work.

I recommend using FAForever to play multiplayer. Download it at http://www.faforever.com/ and make an account.

Then, take FAForever-whatever.msi and place it somewhere convenient (Downloads, home directory, whatever).

Rename it, adding a single - to the end - i.e. FAForever-0.10.125.msi becomes FAForever-0.10.125-.msi. This is not always needed but fixes a registry issue on some setups.

Now, open up the PoL drive's Configure -> Miscellaneous window again, and select Run an .exe in this drive. Find the MSI file and select it.

Follow the installation instructions - things should work fine, despite a few error messages. You're now ready to play FAF, but if you want, you can use General -> Make a new shortcut from this drive to create a shortcut straight to FAF (FAForever.exe). Steam doesn't need to be running.

Currently, the map browser in FAF is BROKEN under POL. If anyone can figure out how to fix it, PLEASE submit a pull request on this gist.

If you have problems, please contact me at [email protected]

@x10an14
Copy link

x10an14 commented May 21, 2016

@NodCommander: SC:FA under PoL certainly doesn't handle alt-tabbing well =) (In my (somewhat limited) experience).

As for the settings file you mentioned, googling "SC:FA resolutio nsettings" (literally that string) gave me these two top hits, looks like it's game.prefs you want:

  1. https://steamcommunity.com/sharedfiles/filedetails/?id=175274474
  2. https://steamcommunity.com/app/9420/discussions/0/792923683953995957/
  3. Oh hell, have the third too (I saw the path explicitly put in that one, didn't notice that in the skimming of the two others:
    http://forums.steampowered.com/forums/showthread.php?t=1988148

@NodCommander
Copy link

NodCommander commented May 22, 2016

@x10an14 Ah! That fixed it. The game is now running at the correct resolution. :)

Now to fix the C++ Runtime issue..

@NodCommander
Copy link

NodCommander commented Jul 3, 2016

Update! The solution was simple, just add the C++ Runtime package through PoL, after this the FAF Lobby launches correctly and I can join all kinds of games.

Alt-Tabbing the game is absolutely fine, nothing unexpected happens. Great!

However, there is a big gameplay issue. A lot of "effects" does not appear, such as the ACU's primary weapon fire (the gun flash is visible but the projectile is not). By far worst of these is that the ACU upgrade animation does not show at all, so I have no way of telling if my opponent is upgrading his commander, or if he is just standing idle with it. Is there any fix to this that anyone know of?

@OlliC
Copy link

OlliC commented Dec 28, 2016

Lately i have a few crash/hang issues with Supcom FA in wine. It always seems to happen when zooming out completly on a large map with lots of units on screen. The last few games we played with 5-6 people + some KIx there is a 50% chance the game crashes for me.

Wine version: 1.9.24
Video Memory Size set to 1024 (Its a 2GB Nvidia GTX 660)
Nvidia Driver 375.26

Does somebody else experienced this? Would it help to use an older wine version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment