LINUX SUPPORT IS HERE

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Re: LINUX SUPPORT IS HERE

Postby Herby » 23 Aug 2017, 12:14

Just made a good step forward:
I did investigate a bit more the output I get when I compile PyQt and noticed that:
Code: Select all
These PyQt5 modules will be built: QtCore, QtNetwork, QtXml, QtXmlPatterns, QtDBus, QtWebSockets, QtWebChannel, QtNfc.
As one can see 'QtWidgets' is not on the list. After digging even deeper, I found that I needed to install libgl1-mesa-dev to have the missing modules installed. Here again, I had a few problems due to unmet dependencies but once I finally managed to install this package, here's what I get when configuring PyQt:
Code: Select all
These PyQt5 modules will be built: QtCore, QtGui, QtHelp, QtMultimedia, QtNetwork, QtOpenGL, QtPrintSupport, QtQml, QtQuick, QtSql, QtSvg, QtTest, QtWidgets, QtXml, QtXmlPatterns, QtDesigner, QtDBus, _QOpenGLFunctions_2_0, _QOpenGLFunctions_2_1, _QOpenGLFunctions_4_1_Core, QtSensors, QtSerialPort, QtX11Extras, QtBluetooth, QtPositioning, QtQuickWidgets, QtWebSockets, QtWebChannel, QtWebEngineWidgets, QtLocation, QtNfc, QtWebEngineCore, QtWebEngine.
This time, it took a lot more time to compile PyQt but finally, I can start the client. But...
... now I have a black window:
Code: Select all
python ./client/src
qt.network.ssl: QSslSocket: cannot resolve SSLv2_client_method
qt.network.ssl: QSslSocket: cannot resolve SSLv2_server_method
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
Could not link shader program:
""
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
QOpenGLShaderProgram::uniformLocation(matrix): shader program is not linked
QOpenGLShaderProgram::uniformLocation(opacity): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
QOpenGLShaderProgram::uniformLocation(matrix): shader program is not linked
QOpenGLShaderProgram::uniformLocation(opacity): shader program is not linked
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
The login window appeared as it should and I've been able to enter my infos & login. But the client window is completely black; it seems to work if I click where the buttons are supposed to be.
I'm gonna investigate this now...

EDIT:
Just found the solution to the problem above thanks to this post.
But now comes the next step... I always end up with a window stating "FA has failed to start" when trying to launch the game... :?: :(
I use the wineprefix created by POL. It still works when I launch the client in POL but now I'd like to launch the game without POL...
Herby
Crusader
 
Posts: 16
Joined: 18 Aug 2017, 13:36
Has liked: 0 time
Been liked: 5 times
FAF User Name: Herby

Re: LINUX SUPPORT IS HERE

Postby tatsu » 23 Aug 2017, 18:56

Herby wrote:But now comes the next step... I always end up with a window stating "FA has failed to start" when trying to launch the game... :?: :(

I dunno man. get dev's attention to this thread.

I think Westmania's your best bet

I personally am a bit lost as to why these bugs on your computer are happening :(
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby Herby » 23 Aug 2017, 19:56

I guess this last bug comes from the fact that I try to launch the game without using POL now. But, since I've installed FA thanks to POL and it works fine when launched through POL, I need to find how to launch the game the same way POL does.
Indeed, I've just tried to install FA with wine (without using POL, as per the wiki) and it works :D.
So do you know if there is a way to use the wineprefix created by POL directly from wine? I think the main problem is because I use wine 2.13 in POL and I have wine 1.6 installed. If not, I think I will just delete this install and use only the one installed through wine
What is the easy way to launch the client? Is it necessary to create a script?
Herby
Crusader
 
Posts: 16
Joined: 18 Aug 2017, 13:36
Has liked: 0 time
Been liked: 5 times
FAF User Name: Herby

Re: LINUX SUPPORT IS HERE

Postby Herby » 24 Aug 2017, 12:48

Finally, I got everything working as it should. I made a complete reinstall of FA directly with wine without using POL. For info, I have wine1.6.2 and made the install from the retail version in windows7.
I had the problem already described here: the client download the map but, once in the lobby, the map is missing :(.
I think there is something wrong regarding the folders used by the client to store maps and mods. The client downloads everything in
~/Documents/My Games/Gas Powered Games/Supreme Commander Forged Alliance/
but also creates
~/My Games
and, as I use the French version of the game, I also have
~/Mes parties
And the game and/or the client looks in all those folders to find the maps and mods. So I had to create symbolic links both in "~/My Games" and in "~/Mes parties" pointing to "~/Documents/My Games" to make it work.

Now, next thing I'd like to do is to create a script to easily launch the client (without using any command lines). Did anybody here made this already? If not, I'll share it there.
Herby
Crusader
 
Posts: 16
Joined: 18 Aug 2017, 13:36
Has liked: 0 time
Been liked: 5 times
FAF User Name: Herby

Re: LINUX SUPPORT IS HERE

Postby tatsu » 24 Aug 2017, 21:25

Herby wrote:Now, next thing I'd like to do is to create a script to easily launch the client (without using any command lines). Did anybody here made this already? If not, I'll share it there.

easy :

faf.sh
Code: Select all
#!/bin/sh
cd /faf-client
source ./venv/bin/activate
python ./client/src


faforever.desktop:
Code: Select all
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=0.14.0
Type=Application
Terminal=false
Exec=/home/username/.local/share/applications/faf.sh
Name=FAF
Comment=Games
Icon=/home/username/.local/share/icons/faf.png


place both in the path specified above and make them executable.
you can use this icon I made if you want :
https://raw.githubusercontent.com/tatsu ... er/faf.png

hmm nevermind it seems it's not that easy.
I dunno i'm open to tips.

okay so it's a restriction of shell scripts that you can't do activate in them and apparently activate is super unclean anyways. https://gist.github.com/datagrok/2199506

I've been trying to use an orb setup instead but I gave up (installed it and set it up fine but it won't do any "orb install" commands successfully) : https://github.com/averagehuman/python-orb
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby Herby » 25 Aug 2017, 14:08

I made my own script in the meantime and it's basically the same as your.
I had a look at the link regarding virtual environment and shell script but my script runs as it should without any error so I don't feel the need to dig further.
Herby
Crusader
 
Posts: 16
Joined: 18 Aug 2017, 13:36
Has liked: 0 time
Been liked: 5 times
FAF User Name: Herby

Re: LINUX SUPPORT IS HERE

Postby tatsu » 26 Aug 2017, 00:25

Herby wrote:I made my own script in the meantime and it's basically the same as your.
I had a look at the link regarding virtual environment and shell script but my script runs as it should without any error so I don't feel the need to dig further.

wait you mate a startup shortcut?

I want it
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby Herby » 26 Aug 2017, 06:38

tatsu wrote:wait you mate a startup shortcut?

I want it
Yes, I made a desktop shortcut (if it's what you mean). Indeed, KDE did it for me 8-). Sent to you via PM.
Herby
Crusader
 
Posts: 16
Joined: 18 Aug 2017, 13:36
Has liked: 0 time
Been liked: 5 times
FAF User Name: Herby

Re: LINUX SUPPORT IS HERE

Postby tatsu » 26 Aug 2017, 13:24

Herby wrote:Yes, I made a desktop shortcut (if it's what you mean). Indeed, KDE did it for me 8-). Sent to you via PM.

thanks! and yeah that made all the difference!

Code: Select all
#! /bin/bash
#
wmctrl -s 3
cd ~/faf-client
source ./venv/bin/activate
python ./client/src


Code: Select all
#!/usr/bin/env xdg-open
[Desktop Entry]
Version=0.14.0
Type=Application
Terminal=false
Exec=/home/username/.local/share/applications/faf.sh
Name=FAF
Comment=Games
Icon=/home/username/.local/share/icons/faf.png
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: LINUX SUPPORT IS HERE

Postby sandwormsurfer » 26 Aug 2017, 20:32

Good to hear you made the native client run. To use your POL-wineprefix use the client settings I documented here.
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: No registered users and 1 guest