LINUX SUPPORT IS HERE

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Re: LINUX SUPPORT IS HERE

Postby GenoC » 14 Nov 2017, 21:28

tatsu wrote:
GenoC wrote:
How do i upgrade it?
i tried running the: sudo apt-get upgrade python3-pyqt5.qtwebengine.
It installed something, but nothing changed.

you upgrade your os to the latest version


its already ubuntu 17.10
GenoC
 
Posts: 7
Joined: 11 Nov 2017, 18:25
Has liked: 0 time
Been liked: 0 time
FAF User Name: GenoC

Re: LINUX SUPPORT IS HERE

Postby nrader » 15 Nov 2017, 12:57

GenoC wrote:its already ubuntu 17.10

Well, try to search for un-official repositories that might contain newer version then.
User avatar
nrader
Crusader
 
Posts: 16
Joined: 31 Oct 2017, 20:51
Has liked: 6 times
Been liked: 2 times
FAF User Name: nrader

Re: LINUX SUPPORT IS HERE

Postby tatsu » 16 Nov 2017, 20:12

GenoC wrote:its already ubuntu 17.10

in that case this guide should work
https://wiki.faforever.com/index.php?ti ... n.2FUbuntu
except instead of :
Code: Select all
echo "0.16.0" > res/RELEASE-VERSION

do :
Code: Select all
echo "0.16.1-rc1" > res/RELEASE-VERSION

and instead of :
Code: Select all
python3 src/__main.py__

do:
Code: Select all
python3 src/__main__.py


then (to avoid having to run the faf from terminal) you can create the desktop launcher :

.desktop file content (adapt "username" to yourself):
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


and content of "faf.sh" (script that runs faf called by the desktop file).
Code: Select all
#!/bin/sh
cd /faf-client
python3 src/__main__.py

(place both files in .local/share/applications/)

you may also use my custom faf icon found here : https://github.com/tatsujb/FAFICON
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 tatsu » 08 Dec 2017, 19:28

pin please? (this is really not the first time it's been asked)
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 foodlfg » 17 Dec 2017, 20:37

Hi all!
New linux user here. o/

I've successfully installed the FAF client (0.16.0) on Ubuntu Gnome 16.04 LTS so if someone needs help I can probably help.
I had to install some additional packages (ubuntu and phyton) which I forgot exactly what they were but I'm planning to go through the installation process again in a virtual machine and write everything down for myself and for others. The wiki tutorial didn't cover everything for me (can't link it): Setting Up FAF Linux

My only problem currently is that I have no sound during game that is launched by the FAF client.
I'm probably missing a proper Wine setting because if I launch the game using PlayOnLinux/Steam then everything works great.
Has anyone encountered this problem before?


tatsu wrote:
GenoC wrote:How do i upgrade it?
i tried running the: sudo apt-get upgrade python3-pyqt5.qtwebengine.
It installed something, but nothing changed.

you upgrade your os to the latest version

I don't know what causes this problem for GenoC but if i can run the client on Ubuntu 16.04 then probably it's not an OS problem.
 
foodlfg
Avatar-of-War
 
Posts: 165
Joined: 17 Dec 2017, 19:28
Has liked: 22 times
Been liked: 69 times
FAF User Name: foodlfg

Re: LINUX SUPPORT IS HERE

Postby tatsu » 17 Dec 2017, 21:14

foodlfg wrote:My only problem currently is that I have no sound during game that is launched by the FAF client.

make sure in your wineconfig sound output is 2.1 same on system-wide may be needed.

5.1 or 7.1 or anything above 2.1 breaks FA.
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 foodlfg » 18 Dec 2017, 00:18

tatsu wrote:
foodlfg wrote:My only problem currently is that I have no sound during game that is launched by the FAF client.

make sure in your wineconfig sound output is 2.1 same on system-wide may be needed.

5.1 or 7.1 or anything above 2.1 breaks FA.


Thanks.
It's kinda lame but actually have sound, I had to adjust the volume in ubuntu for the game...
Anyways I have an other problem now. The sound I'm getting from the game is a loud noise (it changes based on what I click on in the game, but it's still a noise).

I googled "wine winecfg speaker settings etc" and I'm suspecting that the issue might be with the wine version.
So PlayOnLinux has this feature to change the version of Wine and use that version to run the programs:
- On PlayOnLinux I'm using Wine 2.18, winecfg for this version allows me to change the speaker settings (everything was on stereo)
- FAF launches the game using the Ubuntu default Wine version which is 1.6.2 (quite old). Here, winetricks/winecfg doesn't allow me to change the speaker settings
- phoronix.com says "Wine 1.7.36 Adds Speaker Configuration To Winecfg" and I read elsewhere that later wine versions added better support for pulseaudio.

Unfortunately I could launch the game with the system default Wine version from PlayOnLinux/Steam to verify this and when I went back to the original Wine 2.18, Steam could launch the game again... oh well, I guess I'll just give up for today. X)
 
foodlfg
Avatar-of-War
 
Posts: 165
Joined: 17 Dec 2017, 19:28
Has liked: 22 times
Been liked: 69 times
FAF User Name: foodlfg

Re: LINUX SUPPORT IS HERE

Postby Wesmania » 19 Dec 2017, 09:25

You can configure the wine command and wineprefix used by the client through the config file ~/.config/ForgedAllianceForever/FA\ Lobby.ini. It follows this syntax:

[wine]
cmd_prefix=<whatever you want before wine, like optirun>
exe=<wine executable to use>
prefix=<your wineprefix>

I intend to make this configurable through UI, but I always forget :(
Wesmania
Contributor
 
Posts: 391
Joined: 19 Nov 2014, 19:17
Has liked: 2 times
Been liked: 79 times
FAF User Name: MazorNoob

Re: LINUX SUPPORT IS HERE

Postby foodlfg » 19 Dec 2017, 10:45

Wesmania wrote:You can configure the wine command and wineprefix used by the client through the config file ~/.config/ForgedAllianceForever/FA\ Lobby.ini. It follows this syntax:

[wine]
cmd_prefix=<whatever you want before wine, like optirun>
exe=<wine executable to use>
prefix=<your wineprefix>

I intend to make this configurable through UI, but I always forget :(


Thanks!
I do know this because it's in the wiki.


So let's wrap this sound problem up:
It was a user error. The game and the sound works without any magic on Ubuntu 16.04 LTS/Wine 2.0.3 (stable branch)

- Initially, I thought I have no sound in FAF SupCom because of some Wine related issue / whatever / I wasn't even sure.
- So in PlayOnLinux/winecfg I have installed some libraries (dsound for example) - this was a mistake
- I did not check the PlayOnLinux/Steam original game because it worked fine before I did anything.
- Later I figured that I have no sound because of the volume settings.
- Then I heard only noise in the FAF version of the game, so I started googling. There are many wine & pulseaudio related sound issues on the net, it looks like. :p
- I was experimenting with everything yesterday, I do installed a new Wine 2.0.3 from the official Wine PPA, not from the Ubuntu one. I eventually figured out that the PlayOnLinux/Steam game has broken sound too.
- After a few hours of hacking I found the extra libraries I've installed using PlayOnLinux/winecfg before and removed them, and everything was ok. lol

Btw, the "virtual machine" created with PlayOnLinux has it's own wine config files, so when the FAF client calls the system default Wine version, that Wine finds and uses the PlayOnLinux wine config files.
If you use different Wine version in PlayOnLinux and launches the game then you launches the game from the FAF client too, a wine window comes up saying "It's updating the wine config files and displays the exact location of the files too".
 
foodlfg
Avatar-of-War
 
Posts: 165
Joined: 17 Dec 2017, 19:28
Has liked: 22 times
Been liked: 69 times
FAF User Name: foodlfg

Re: LINUX SUPPORT IS HERE

Postby foodlfg » 25 Dec 2017, 17:18

Hi all o/

Are you guys experiencing UI scaling problems in the FAF client on linux?
Because for me its appearance is kinda raw:
https://imgur.com/a/aodwG
viewtopic.php?p=158560#p158560
 
foodlfg
Avatar-of-War
 
Posts: 165
Joined: 17 Dec 2017, 19:28
Has liked: 22 times
Been liked: 69 times
FAF User Name: foodlfg

PreviousNext

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest