I'm trying to run FAF (natively) in conjunction with FA (through wine)
(due to the views this post receives and to how much the methods have updated I've decided to update this question for it to answer as well as ask. check revision history of this post for the process to finding the old method to run the python client and the old guides)
Beta-state Java Client :
use this script : (updated 3/12/2019)
Python client : (NOW OBSOLETE)
How to: compile this python app (FAF) from source :
up and running thanks to @edwinksl 's "Python 3 with PyQt5" guide. marked him as solution. good job!
Sorry I took so long to update this post. it's gotten 7000 views! it really deserves up-to-date info.
Since I asked a lot has happened. FAF now has more or less linux support. they even have a wiki to installing it (and per distro!) :
it's not guaranteed to fit your needs, more can be found by digging in : http://forums.faforever.com/viewtopic.php?f=2&t=4507
right now the wiki isn't all that up to date.
for awhile I could get faf to run with native python, no virtualenv needed but QT's aver changing dependencies and package composition as well as the FAF usage of them has broken that again ... temporarily I hope !
rest assured I've got it running personally and I'm here to offer solace (try skipping steps 6 & 7 first they may be unneeded ):
- Install some prerequisites :
sudo apt update && sudo apt install wget PyQt5.QtMultimedia python3-idna python3-semantic-version python3-pyqt5 python3-pyqt5.qtwebengine
cd Downloads && wget https://github.com/FAForever/client/archive/0.16.1.tar.gz(or whichever release is latest at https://github.com/FAForever/client/releases/ )
- extract (for this example I'll extract to home) (
cd Downloads/ && mv client-0.16.1.tar.gz ~/ && cd && tar -zxf client-0.16.1.tar.gz && mv client-0.16.1 faf-client && rm client-0.16.1.tar.gz)
cd fafclient/: move to the working dirrectory
sed -i 1,1d requirements.txt: removes cxFreeze from the requirements (it's not required and it will kill compile)
virtualenv -p python3 faf
pip install -r requirements.txt
sudo wget https://github.com/FAForever/uid/releases/download/v4.0.5/faf-uid -O /usr/bin/faf-uid: downloads login binary and :
sudo chmod +x /usr/bin/faf-uidallows it to be executed by faf.
touch res/RELEASE-VERSION && echo "0.16.1" >> res/RELEASE-VERSION: fulfills faf's final requirement : a release version file.
now it should run but for the heck of it let's make a runner :
touch FAF.sh echo "#! /bin/bash" >> FAF.sh echo "cd /home/t/faf-client" >> FAF.sh echo "python3 src/__main__.py" >> FAF.sh chmod +x FAF.sh
./FAF.sh to run FAF.