LINUX SUPPORT IS HERE

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Re: LINUX SUPPORT IS HERE

Postby tatsu » 26 Nov 2016, 01:45

Ok nevermind about what I said earlier. Please forgive me I'm really starting out with all of this. The files are indeed here I just hadn't correctly understood what was going on from the command
Code: Select all
../faf-client-venv/bin/python src/__main__.py

but what's going on it seems, is that we're launching the python inside the "faf-client-venv" folder and asking IT to run the main.py inside the "faf-client" folder which is a folder above from within "faf-client-env" and then a folder down.
so in a single command line (without a cd) you can run :
Code: Select all
/home/t/.faf/faf-client-venv/bin/python /home/t/.faf/faf-client/src/__main__.py
and that's the same thing.

so the desktop file would look like this
[Desktop Entry]
Type=Application
Name=FAForever
Comment=Supreme Commander Forged Alliance game lobby
Path=/home/t/.faf/faf-client
Exec=/home/t/.faf/faf-client-venv/bin/python /home/t/.faf/faf-client/src/__main__.py
Icon=/home/t/.local/share/icons/faf1.png
Terminal=false
Categories=Games

I'm going to try to make a build script.
Run FAF + FA on linux, you can automate the whole install and setup process :
https://github.com/tatsujb/installFAFscript
User avatar
tatsu
Supreme Commander
 
Posts: 1437
Joined: 02 Jul 2012, 21:26
Has liked: 1742 times
Been liked: 152 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby NodCommander » 30 Nov 2016, 12:36

Well, I tested out the new client release since it says it has Linux support.

Installing was simple enough, no issues. It creates no shortcut though, so you have to navigate to the folder where it is installed, no big deal.

Opening the FAForever.exe does prompt me to log in, then starts the client. However, the What's New, Chat Lobby, Coop Missions and Play tabs are all "blank", there is no content at all in them, just the very basic (locally stored?) pages themselves.

Sorry if I am missing something obvious, but I am by no means at all an expert.
"He who controls the past, commands the future, He who commands the future, conquers the past." -Kane
User avatar
NodCommander
Avatar-of-War
 
Posts: 77
Joined: 27 Sep 2013, 11:19
Has liked: 43 times
Been liked: 8 times
FAF User Name: NodCommander

Re: LINUX SUPPORT IS HERE

Postby kozy » 01 Dec 2016, 04:14

NodCommander wrote:However, the What's New, Chat Lobby, Coop Missions and Play tabs are all "blank", there is no content at all in them, just the very basic (locally stored?) pages themselves.

Probably something to do with faf-uid not working properly.
Check your log in ~/FAForever/ (you can attach them here for us to have a look if you want).
kozy
Crusader
 
Posts: 30
Joined: 19 Nov 2016, 04:33
Has liked: 1 time
Been liked: 11 times
FAF User Name: kozy

Re: LINUX SUPPORT IS HERE

Postby sandwormsurfer » 01 Dec 2016, 10:15

NodCommander wrote:Opening the FAForever.exe does prompt me to log in

This sounds like you are running the Windows client through wine. While this is possible, it's not what is meant by "linux support".
The Linux version currently has no installer (except the Arch Linux package). You'd usually need to run it from source.

You can run the client natively using
Code: Select all
python2 /path/to/client/src/__main__.py
.
As kozy pointed out you need the faf-uid binary to run it from source.
sandwormsurfer
Crusader
 
Posts: 24
Joined: 06 Nov 2016, 00:18
Has liked: 0 time
Been liked: 10 times
FAF User Name: sandwormsurfer

Re: LINUX SUPPORT IS HERE

Postby tatsu » 03 Dec 2016, 20:14

I'm making a .deb file

in the meantime you can
Code: Select all
sudo apt-get update
sudo apt-get install autoconf libtool pkg-config python-opengl python-imaging python-pyrex python-pyside.qtopengl idle-python2.7 qt4-dev-tools qt4-designer libqtgui4 libqtcore4 libqt4-xml libqt4-test libqt4-script libqt4-network libqt4-dbus python-pip python-qt4 python-qt4-gl python-numpy python-matplotlib libgle3 python-dev libssl-dev libffi-dev libxslt-dev libxml2-dev libxslt1-dev zlib1g-dev python-ipaddress python-enum34 python-pathlib python-py python-pycparser python-dateutil python-cffi libappindicator1 python-gpgme libindicator7 wget  libgl1-mesa-dri:i386 libgl1-mesa-glx:i386 libc6:i386 liblua5.1-0-dev liblua50-dev liblualib50-dev python-pyside.qtwebkit libgnutls30 libgnutls30:i386 virtualenv build-essential dh-make -y
pip install --upgrade pip
mkdir faf-0.11.60
cd faf-0.11.60
touch FAForever.desktop
echo "[Desktop Entry]" >> FAForever.desktop
echo "[Type=Application]" >> FAForever.desktop
echo "[Name=FAForever]" >> FAForever.desktop
echo "[Comment=Supreme Commander Forged Alliance game lobby]" >> FAForever.desktop
echo "[Path=/usr/share/applications/faf-client]" >> FAForever.desktop
echo "[Exec=/usr/share/applications/faf-client-venv/bin/python /usr/share/applications/faf-client/src/__main__.py]" >> FAForever.desktop
echo "[Icon=/usr/share/faf/faf.png]" >> FAForever.desktop
echo "[Terminal=false]" >> FAForever.desktop
echo "[Categories=Games]" >> FAForever.desktop
git clone https://github.com/tatsujb/FAFICON
rm -rf FAFICON/
chmod +x FAForever.desktop
git clone --branch=develop https://github.com/FAForever/client.git faf-client
virtualenv ./faf-client-venv --system-site-packages
cd faf-client-venv
. ./bin/activate
mkdir src/
pip install --download=./src/ cx_Freeze==4.3.4
tar zxvf ./src/cx_Freeze-4.3.4.tar.gz -C ./src/
sed -i 's/if not vars.get("Py_ENABLE_SHARED", 0):/if True:/' src/cx_Freeze-4.3.4/setup.py
pip install ./src/cx_Freeze-4.3.4/
cd ~/faf-0.11.60
./faf-client-venv/bin/pip install -r ./faf-client/requirements.txt
wget https://github.com/FAForever/uid/releases/download/v2.1.0/uid -O ./faf-client/lib/faf-uid
chmod +x ./faf-client/lib/faf-uid
cd ./faf-client && ../faf-client-venv/bin/python src/__main__.py
Run FAF + FA on linux, you can automate the whole install and setup process :
https://github.com/tatsujb/installFAFscript
User avatar
tatsu
Supreme Commander
 
Posts: 1437
Joined: 02 Jul 2012, 21:26
Has liked: 1742 times
Been liked: 152 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby tatsu » 06 Dec 2016, 17:00

can anybody explain the problem i'm having withmods and maps showing a download bar when i double click on a host but when i enter the lobby i'm missing maps and mods?
Run FAF + FA on linux, you can automate the whole install and setup process :
https://github.com/tatsujb/installFAFscript
User avatar
tatsu
Supreme Commander
 
Posts: 1437
Joined: 02 Jul 2012, 21:26
Has liked: 1742 times
Been liked: 152 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby tatsu » 22 Dec 2016, 00:11

hey guys you're probably gonna like this.


better if viewed on YT : https://www.youtube.com/watch?v=KpbZjJBNS4o

here's the file https://drive.google.com/open?id=0BzN9w ... kxvZ1pfZVk
Run FAF + FA on linux, you can automate the whole install and setup process :
https://github.com/tatsujb/installFAFscript
User avatar
tatsu
Supreme Commander
 
Posts: 1437
Joined: 02 Jul 2012, 21:26
Has liked: 1742 times
Been liked: 152 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby Wesmania » 25 Dec 2016, 19:44

It seems that the latest client update broke FAF on wine. It now says it can't find "Windows Management Instrumentation",
FAF python client is dead. Bug java client devs if you have issues!
Wesmania
Priest
 
Posts: 359
Joined: 19 Nov 2014, 19:17
Has liked: 1 time
Been liked: 64 times
FAF User Name: MazorNoob

Re: LINUX SUPPORT IS HERE

Postby threelegs » 25 Dec 2016, 20:51

I am receving the Windows Management Instrumentation notice as well but it does not seem to affect anything. FA runs fine for me but not though FAF when i try to host/join a game i get this error. I have already installed directx9.
CD3DDeviceResources::DevResInitResources: Unable to load effect file /effects/mesh.fx

Program : C:\users\Public\FAForever\bin\ForgedAlliance.exe
Cmd line arguments : /mean 1540.08 /deviation 89.7525 /country US /clan SGI /init init_faf.lua /numgames 349 /log C:\users\Public\FAForever\logs\game.log /nobugreport /savereplay gpgnet://localhost/5575852/threelegs.SCFAreplay /gpgnet 127.0.0.1:33445
threelegs
Crusader
 
Posts: 17
Joined: 10 Mar 2016, 17:06
Has liked: 0 time
Been liked: 0 time
FAF User Name: threelegs

Re: LINUX SUPPORT IS HERE

Postby sandwormsurfer » 26 Dec 2016, 13:11

threelegs: the shader compiler should be installed by installing directx. If you ran the setup from retail ISO, you should be ready to go, since it installed necessary directx.
You can install all needed directx runtime using winetricks with
Code: Select all
winetricks d3dx9
winetricks xact
sandwormsurfer
Crusader
 
Posts: 24
Joined: 06 Nov 2016, 00:18
Has liked: 0 time
Been liked: 10 times
FAF User Name: sandwormsurfer

PreviousNext

Return to General Discussions

Who is online

Users browsing this forum: Google [Bot] and 1 guest