Difference between revisions of "Setting Up FAF Linux"

From FA Forever Wiki
Jump to: navigation, search
Line 7: Line 7:
 
== Install the python client ==
 
== Install the python client ==
  
 +
=== Arch Linux ===
 
You [https://wiki.archlinux.org/index.php/AUR_helpers need AUR access], so install something like [https://archlinux.fr/yaourt-en yaourt]. Then install my package with
 
You [https://wiki.archlinux.org/index.php/AUR_helpers need AUR access], so install something like [https://archlinux.fr/yaourt-en yaourt]. Then install my package with
 
  yaourt -S python2-fafclient
 
  yaourt -S python2-fafclient
Line 12: Line 13:
 
This should install wine as a dependency.
 
This should install wine as a dependency.
 
Now you can install the game using wine. You can use your default wine prefix or create a new one. A nice UI tool for handling wine prefixes is [https://www.archlinux.org/packages/community/any/playonlinux/ PlayOnLinux].
 
Now you can install the game using wine. You can use your default wine prefix or create a new one. A nice UI tool for handling wine prefixes is [https://www.archlinux.org/packages/community/any/playonlinux/ PlayOnLinux].
 
After installation run the game without the client, setup graphics and make sure everything works like sound etc.
 
The bloom renderer graphics setting may not work.
 
If the game does not start again, delete the [[#Game.prefs]]
 
  
 
== Install Supreme Commander : Forged Alliance ==
 
== Install Supreme Commander : Forged Alliance ==
Line 32: Line 29:
 
  }
 
  }
 
Now open the steam client and it should start downloading FA immediately.
 
Now open the steam client and it should start downloading FA immediately.
 +
 +
You need to install directx runtime in wine with
 +
winetricks d3dx9
  
 
=== Install using the retail ISO ===
 
=== Install using the retail ISO ===
Line 37: Line 37:
 
Just launch the setup.exe from the CD (ISO).
 
Just launch the setup.exe from the CD (ISO).
  
=== wine adjustments ===
+
=== After installation ===
 +
 
 +
Run
 +
winecfg
 +
and enable "emulate virtual screen" option in graphics tab and enter you display resolution.
 +
 
 +
 
 +
After installation run the game without the client, setup graphics and make sure everything works like sound etc.
 +
The bloom renderer graphics setting may not work.
 +
If the game does not start again, delete the [[#Game.prefs]]
 +
 
 +
== Client setup ==
  
 
First thing is to point your client to your game directory using Options -> Settings -> Game Path...
 
First thing is to point your client to your game directory using Options -> Settings -> Game Path...
If you install FA using the Retail ISO, your game path probably is
+
If you install FA using [[#Install_using_th_retail_ISO|the Retail ISO]], your game path probably is
 
  ~/.wine/drive_c/Program Files/THQ/Gas Powered Games/Supreme Commander - Forged Alliance
 
  ~/.wine/drive_c/Program Files/THQ/Gas Powered Games/Supreme Commander - Forged Alliance
When using the [[#Install_using_steam|steam download]], your game path probably is
+
When using the [[#Install_using_steam|steam download]], your game path probably is
 
  /home/sws/.steam/steam/steamapps/common/ForgedAlliance
 
  /home/sws/.steam/steam/steamapps/common/ForgedAlliance
 
I created some client settings so you can adjust how the client starts the game using wine. The are only accessible through the [[#FA Lobby.ini]] file while '''the client is not running''' (because it overwrites the file on close).
 
I created some client settings so you can adjust how the client starts the game using wine. The are only accessible through the [[#FA Lobby.ini]] file while '''the client is not running''' (because it overwrites the file on close).

Revision as of 11:00, 26 December 2016

Supreme Commander: Forged Alliance (the game) runs under Linux using wine.

The community client (the client) is written in Python 2, which means that the client runs straight away on Linux.

Since there a some restrictions, like handling of paths and uid, I created a package for Arch Linux which contains my patches.

Install the python client

Arch Linux

You need AUR access, so install something like yaourt. Then install my package with

yaourt -S python2-fafclient

This should install wine as a dependency. Now you can install the game using wine. You can use your default wine prefix or create a new one. A nice UI tool for handling wine prefixes is PlayOnLinux.

Install Supreme Commander : Forged Alliance

Install using steam

You can trick the native Linux steam client to download your steam copy of Forged Alliance for you. Close steam and create the file

$HOME/.steam/steam/steamapps/appmanifest_9420.acf

with the following contents

"AppState"
{
	"appid"			"9420"
	"Universe"		"1"
	"installdir"	"ForgedAlliance"
	"StateFlags"	"1026"
}

Now open the steam client and it should start downloading FA immediately.

You need to install directx runtime in wine with

winetricks d3dx9

Install using the retail ISO

Just launch the setup.exe from the CD (ISO).

After installation

Run

winecfg

and enable "emulate virtual screen" option in graphics tab and enter you display resolution.


After installation run the game without the client, setup graphics and make sure everything works like sound etc. The bloom renderer graphics setting may not work. If the game does not start again, delete the #Game.prefs

Client setup

First thing is to point your client to your game directory using Options -> Settings -> Game Path... If you install FA using the Retail ISO, your game path probably is

~/.wine/drive_c/Program Files/THQ/Gas Powered Games/Supreme Commander - Forged Alliance

When using the steam download, your game path probably is

/home/sws/.steam/steam/steamapps/common/ForgedAlliance

I created some client settings so you can adjust how the client starts the game using wine. The are only accessible through the #FA Lobby.ini file while the client is not running (because it overwrites the file on close).

[wine]
exe=/usr/bin/wine                                         <- points to your wine binary, defaults to 'wine'
prefix=/home/linuxmasterrace/.PlayOnLinux/wineprefix/faf  <- points to your WINEPREFIX path, defaults to '~/.wine'
cmd_prefix=primusrun                                      <- prefix the program start for something like switchable graphics

File locations

FA Lobby.ini

The settings file of the client is located at

~/.config/ForgedAllianceForever/FA Lobby.ini

It contains all settings of the client.

Logs

~/FAForever/logs

Look here if something goes wrong.

Maps

Your maps are located at

~/Documents/My Games/Gas Powered Games/Supreme Commander Forged Alliance/Maps

but this path may be altered by the documents directory set up in wine and localization of your system.

Game.prefs

Your game.prefs contains all game settings, like graphics settings, keybindings and active UI mods. It is located at

~/.wine/drive_c/users/USER/Local Settings/Application Data/Gas Powered Games/Supreme Commander Forged Alliance/Game.prefs

but this path depends on your WINEPREFIX and probably on the Windows version you set up in wine.