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)
https://github.com/tatsujb/installFAFscript
https://www.youtube.com/watch?v=BEWUEoQ8Q4k
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!
Update (31/1/2018)
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!) :
https://wiki.faforever.com/index.php?title=Setting_Up_FAF_Linux#Debian.2FUbuntu
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 dirrectorysed -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-uid
allows 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
then ./FAF.sh
to run FAF.
Cheers!
t@tsu:~$ sudo apt-get build-dep qt5-default Reading package lists... Done E: You must put some 'source' URIs in your sources.list
– tatsu Jun 08 '17 at 20:58t@tsu:~$ whereis qtwebkit qtwebkit:
– tatsu Jun 08 '17 at 21:04sudo apt-get build-dep qt5-default
I get the message ending withE: Unable to correct problems, you have held broken packages.
caused by me having all these random compiles qt and whatnot or is it something else? packages aren't really broken since upgrade and install still work – tatsu Jun 08 '17 at 21:14_clientwindow.py
is trying to importQtWebKit
fromPyQt4
, which is the cause of the problem. Try importingQtWebKit
fromPySide
instead. – edwinksl Jun 21 '17 at 14:52