LINUX SUPPORT IS HERE

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Re: LINUX SUPPORT IS HERE

Postby tatsu » 06 Oct 2018, 23:53

nope. you're 100% right! it works! :D :D :D :D just set up my settings like so.

pointing to the right wine version works :
Screenshot from 2018-10-06 23-47-38.png
Screenshot from 2018-10-06 23-47-38.png (54.66 KiB) Viewed 3193 times


and I can also run Downlord FAF from my home copy so long as I have the run dir as opt/downlord blabla for some reason...

but that's fine by me.

I'll fool around with 1v1 and such to see if like you said there are issues.

big thanks to @foodlfg for the settings setup and big thanks to @Geosearchef for the Downlord-FAF linux port-build.

tomorrow I'll be working on a video guide to setting this up and you can expect it uploaded towards the evening.


any tips for making a .desktop file that runs java-FAF?

I have this (faf.desktop) :

Code: Select all
[Desktop Entry]
Version=1.0
Name=FAF
Comment=Games
Exec=/home/t/.local/share/applications/faf.sh
Icon=/home/t/.local/share/icons/faf.png
Terminal=true
Type=Application


and (faf.sh) :

Code: Select all
#!/bin/sh
cd /opt/downlords-faf-client-0.9.0-beta-rc.3/
export JAVA_HOME=/usr/lib/jvm/java-8-oracle
downlords-faf-client


both executable.

if I run the script from terminal it works fine. (even without the export line because I have that in my .bashrc)
but If it is run via the desktop file a terminal window flashes and disappears.
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 » 07 Oct 2018, 00:36

foodlfg wrote:
- at this point i can join games the lobby starts. tho i couldn't join every game, some gave me java exceptions when i had to download maps(?). and sometimes i stuck at the connecting screen (using different ip address?) while from the Python client i could join the lobby. strange... oO
- for some reason i cannot create own games. it just sends me back to the Custom game view. bug maybe?
- also the 1v1 doesn't really work either. it just searches. i also got a game crash somehow, but i didn't even see the loading screen. oO

mods download alright, but did you manage to see any of them in the ingame mod manager? I don't.
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 » 07 Oct 2018, 09:34

- well, i couldn't join any games today it throws java exception in the terminal (no wine errors).
- as for the mods, i downloaded an ui mod (the ui i don't like, it would need an easy search option for ui mods, and it should show what mods are installed) but since i couldn't join any lobby, i don't know if it shows up or not.
- i have tried to join a game that was using Quality of Performance mod, but it says under the bell that it's corrupt and cannot be loaded, and the client did nothing.

this is the beta version of the Downlords client, let's hope Geosearchef has a better version. its behavior is inconsistent at best, i wouldn't recommend using it at this point. we set up everything what we could, no wine errors, it should just work.
the python client works much better on linux.
 
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 Geosearchef » 07 Oct 2018, 10:04

I can take a look at that once I have time, currently ICE is the priority. Where are your maps/mods located? I hardcoded those paths to the ones on my system. Should probably create a more dynamic approach when I have time.

Line 31-34, especially LOCAL_FA_DATA_PATH:
https://github.com/FAForever/downlords- ... Prefs.java
Developer, Server Admin, ICE, currently working on Team Matchmaking, FAF Client
User avatar
Geosearchef
Contributor
 
Posts: 392
Joined: 18 Oct 2013, 14:08
Location: Germany
Has liked: 6 times
Been liked: 127 times
FAF User Name: Geosearchef

Re: LINUX SUPPORT IS HERE

Postby tatsu » 07 Oct 2018, 17:57

well that's the thing JAVA FAF installs to the correct directory. the same one python-FAF installs to.

FAF installs mods and maps and replays to :

Code: Select all
<HOME FOLDER>/My Games/Gas Powered Games/Supreme Commander Forged Alliance


which is basically the mirror to what windows does. "home" in linux is basically windows' "user" folder

but once in game it isn't detected. I guess this is because of the wineprefix thing and when faf links it for the first time it probably creates a simlink within the winprefix to this folder.

it'll probably work if instead of setting up the folder to be what I said you simply tell it to install the mods within the wineprefix (I guess saying nothing instead of something will accomplish this no?)

I'm fine with having to dig into the wineprefix folder if it means the mods and maps will work regardless of setup.


anyways, here's the video-gude as promised:

https://youtu.be/ruLJ_4SWI14


here's the java faf .deb : http://geosearchef.de/downlords-faf-cli ... a-rc_3.deb

here are the commands :

Code: Select all
echo "deb http://download.opensuse.org/repositories/home:/strycore/xUbuntu_18.04/ ./" | sudo tee /etc/apt/sources.list.d/lutris.list
wget -q http://download.opensuse.org/repositories/home:/strycore/xUbuntu_18.04/Release.key -O- | sudo apt-key add -
sudo apt update
sudo apt install lutris -y
sudo apt update
sudo add-apt-repository ppa:webupd8team/java
sudo apt install oracle-java8-installer -y
echo “export INSTALL4J_JAVA_HOME=/usr/lib/jvm/java-8-oracle” >> ~/.bashrc
source ~/.bashrc
cd Downloads
sudo apt install ./downlords-faf-client_linux_0_9_0-beta-rc_3.deb
sudo chown t -R /opt/downlords-faf-client-0.9.0-beta-rc.3/
sudo chmod +x /opt/downlords-faf-client-0.9.0-beta-rc.3/downlords-faf-client && sudo chmod +x /opt/downlords-faf-client-0.9.0-beta-rc.3/lib/faf-uid
cd /opt/downlords-faf-client-0.9.0-beta-rc.3/
downlords-faf-client


fa path (adapt) :

Code: Select all
/home/t/.local/share/lutris/runners/winesteam/prefix64/drive_c/Program Files (x86)/Steam/steamapps/common/Supreme Commander Forged Alliance


wine path (adapt) :

Code: Select all
/home/t/.local/share/lutris/runners/wine/esync-staging-pba-3.18-x86_64/bin/wine "%s"
Last edited by tatsu on 22 Oct 2018, 21:54, edited 1 time in total.
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 » 20 Oct 2018, 16:49

So i've tested a little more on Ubuntu 18.04 and i got this error message from the client that you can see below (i got this on Ubuntu 16.04 too back then).
it only occurs when the client tries to update the game in a certain way (when apply game mods maybe??). Anyways i will refresh my Ubuntu install guide with xdelta3.

Python client Error:
FileNotFoundError: [Errno 2] No such file or directory: 'xdelta3': 'xdelta3'

Code: Select all
Traceback (most recent call last):
  File "/home/test1/Games/fafclient/client-0.18.0/src/fa/updater.py", line 131, in readDataFromServer
    self.handler.atBlockComplete(self.blockSize, ins)
  File "/home/test1/Games/fafclient/client-0.18.0/src/fa/updater.py", line 747, in atBlockComplete
    self.handleAction(blockSize, action, block)
  File "/home/test1/Games/fafclient/client-0.18.0/src/fa/updater.py", line 691, in handleAction
    self.applyPatch(completePath, toFile)
  File "/home/test1/Games/fafclient/client-0.18.0/src/fa/updater.py", line 709, in applyPatch
    subprocess.call([xdelta, '-d', '-f', '-s', original, patch, toFile], stdout=subprocess.PIPE)
  File "/usr/lib/python3.6/subprocess.py", line 267, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/usr/lib/python3.6/subprocess.py", line 709, in __init__
    restore_signals, start_new_session)
  File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'xdelta3': 'xdelta3'

Runtime info:

FAF Username: foodlfg
FAF Version: 0.18.0
FAF Environment: production
FAF Directory: /home/test1/FAForever
FA Path: : /home/test1/.local/share/lutris/runners/winesteam/prefix64/drive_c/Program Files (x86)/Steam/steamapps/common/Supreme Commander Forged Alliance
Home Directory: /home/test1/Documents
Platform: Linux-4.15.0-23-generic-x86_64-with-Ubuntu-18.04-bionic
Uname: uname_result(system='Linux', node='comp1', release='4.15.0-23-generic', version='#25-Ubuntu SMP Wed May 23 18:02:16 UTC 2018', machine='x86_64', processor='x86_64')


Solve: install xdelta3:
sudo apt-get install xdelta3
Code: Select all
[sudo] password for test1:
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  xdelta3
0 upgraded, 1 newly installed, 0 to remove and 16 not upgraded.
Need to get 68,9 kB of archives.
After this operation, 169 kB of additional disk space will be used.
Get:1 http://hu.archive.ubuntu.com/ubuntu bionic/main amd64 xdelta3 amd64 3.0.11-dfsg-1ubuntu1 [68,9 kB]
Fetched 68,9 kB in 0s (282 kB/s)   
Selecting previously unselected package xdelta3.
(Reading database ... 231287 files and directories currently installed.)
Preparing to unpack .../xdelta3_3.0.11-dfsg-1ubuntu1_amd64.deb ...
Unpacking xdelta3 (3.0.11-dfsg-1ubuntu1) ...
Processing triggers for man-db (2.8.3-2) ...
Setting up xdelta3 (3.0.11-dfsg-1ubuntu1) ...
 
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 » 22 Oct 2018, 20:47

had to re-install. lutris now defaults to your own install of wine and doesn't install any wine and there is no folder to point to.

hosting a game from faf wit hsettings poiting to system wine causes the crash we are now all used to

any ideas?
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 » 22 Oct 2018, 21:30

even when i uninstall system wine to force lutris to download it's own wine and point to the correct wine exe + forged folder, FAF makes a new .wine folder with wrong configs.

how can I prevent FAF from making it's own wine folder?

I can no longer get my own tutorial to work on my system.

Even after starting from scratch with uninstalling Downlord FAF the problem persists.
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 Wesmania » 22 Oct 2018, 23:14

Did you point your WINEPREFIX env var to the right directory?
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 » 23 Oct 2018, 16:02

i don't really have any idea, Lutris worked for me back then, i installed many wine versions with it... i have no newly installed Ubuntu 18.04 now, i cannot test Lutris. but since Wine3.0 is no good. i suggest you to go crazy, it's a new Ubuntu anyways, right?

i was testing wine + gallium-nine today and this ppa came up (not official Ubuntu stuff!! use it at your own risk):
https://launchpad.net/~commendsarnex/+a ... u/winedri3

sudo add-apt-repository ppa:commendsarnex/winedri3
sudo apt-get update
sudo apt-get install wine-d3d9-staging
wine --version // wine-3.18 (Staging)

it replaces your system default wine 3.0 to wine 3.18 and it works even without gallium-nine (i'm using it now on my test Ubuntu 18.04 without gallium-nine-mesa-etc video drivers installed - i purged the gallium-nine ppa).



just make sure that "Enable Gallium Nine for better D3D9 graphic performance" is not ticked (it was't for me by default).
https://www.maketecheasier.com/assets/u ... inecfg.jpg
test1@comp1:~/Games/fafclient$ WINEPREFIX=[your wine prefix dir] winecfg
for me:
test1@comp1:~/Games/fafclient$ WINEPREFIX=/home/test1/.local/share/lutris/runners/winesteam/prefix64 winecfg

my FA lobby.ini looks like this now (system wine 3.18)
[wine]
exe=/usr/bin/wine
prefix=/home/aa/.local/share/lutris/runners/winesteam/prefix64
 
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