LINUX SUPPORT IS HERE

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Re: LINUX SUPPORT IS HERE

Postby tatsu » 09 Sep 2018, 16:45

what am I doing wrong? nothing happened

wasn't it supposed to fill that folder?

(I did make the deb executable)


Screenshot from 2018-09-09 16-44-18.png
Screenshot from 2018-09-09 16-44-18.png (90.07 KiB) Viewed 3878 times


(by the way I'm willing va PM to run through a build guide on my own machine if it's a question of the deb not being quite configured to meet my distro's standard (I'm on ubuntu 18.04.1). plus if I knew how to do this I'd forever after publish up to date ubuntu builds in this thread)
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 Geosearchef » 09 Sep 2018, 17:17

We will publish up to date builds from the next release on. (afaik)

About installing, this is a deb package which requires the debian package manager to install.
You either run:
sudo dpkg -i [filename] in the directory it is located in and afterwards
sudo apt install -f to make apt load all dependencies and finish the installation

or you run

sudo apt install ./[filename] in the directory it is located in

About pm, you can pm me on discord or on the faf irc (preferrably discord). Installing will require some more steps where you might have questions.
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 foodlfg » 09 Sep 2018, 18:47

EDIT: nvm I've solved it. thanks tasu and google.

Well, I'm getting these error messages. :/
I stuck here, probably doing something wrong.
Code: Select all
----------------------
test1@pc1:~$ INSTALL4J_JAVA_HOME="/usr/lib/jvm/java-8-oracle" downlords-faf-client
Error opening zip file or JAR manifest missing : lib/webview-patch.jar
Error occurred during initialization of VM
agent library failed to init: instrument

----------------------just in case i tried this too:
test1@pc1:~$ INSTALL4J_JAVA_HOME="/usr/lib/jvm/java-8-oracle" java downlords-faf-client
Error: Could not find or load main class downlords-faf-client



This is what i did in the terminal:
It complained about oracle-java8-installer when I already had the openjdk...
Spoiler: show
Code: Select all
test1@pc1:~$ sudo dpkg -i ./Downloads/downlords-faf-client_linux_0_9_0-beta-rc_3.deb
[sudo] password for test1:
Selecting previously unselected package downlords-faf-client.
(Reading database ... 285593 files and directories currently installed.)
Preparing to unpack .../downlords-faf-client_linux_0_9_0-beta-rc_3.deb ...
Unpacking downlords-faf-client (0.9.0.beta.rc.3) ...
dpkg: dependency problems prevent configuration of downlords-faf-client:
downlords-faf-client depends on oracle-java8-installer; however:
  Package oracle-java8-installer is not installed.

dpkg: error processing package downlords-faf-client (--install):
dependency problems - leaving unconfigured
Errors were encountered while processing:
downlords-faf-client


----------------------
test1@pc1:~$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      auto mode
  1            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode
  2            /usr/lib/jvm/java-8-oracle/jre/bin/java          1081      manual mode

Press <enter> to keep the current choice[*], or type selection number: 2


----------------------
Installed oracle java 8 based on this:
https://medium.com/coderscorner/installing-oracle-java-8-in-ubuntu-16-10-845507b13343


----------------------
test1@pc1:~$ sudo dpkg -i ./Downloads/downlords-faf-client_linux_0_9_0-beta-rc_3.deb
(Reading database ... 285741 files and directories currently installed.)
Preparing to unpack .../downlords-faf-client_linux_0_9_0-beta-rc_3.deb ...
Unpacking downlords-faf-client (0.9.0.beta.rc.3) over (0.9.0.beta.rc.3) ...
Setting up downlords-faf-client (0.9.0.beta.rc.3) ...


----------------------
test1@pc1:~$ downlords-faf-client
No suitable Java Virtual Machine could be found on your system.
The version of the JVM must be at least 1.8.0_152 and at most 1.8.0_999.
Please define INSTALL4J_JAVA_HOME to point to a suitable JVM.


----------------------
test1@pc1:~$ sudo update-alternatives --config java
There are 2 choices for the alternative java (providing /usr/bin/java).

  Selection    Path                                            Priority   Status
------------------------------------------------------------
  0            /usr/lib/jvm/java-8-oracle/jre/bin/java          1081      auto mode
  1            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode
* 2            /usr/lib/jvm/java-8-oracle/jre/bin/java          1081      manual mode

Press <enter> to keep the current choice[*], or type selection number:


----------------------
test1@pc1:~$ java -version
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)


----------------------
test1@pc1:~$ ll /opt/downlords-faf-client-0.9.0-beta-rc.3/lib/faf-uid
-rwxr-xr-x 1 root root 3077680 aug    7 10:25 /opt/downlords-faf-client-0.9.0-beta-rc.3/lib/faf-uid*


----------------------
test1@pc1:~$ INSTALL4J_JAVA_HOME="/usr/lib/jvm/java-8-oracle" downlords-faf-client
Error opening zip file or JAR manifest missing : lib/webview-patch.jar
Error occurred during initialization of VM
agent library failed to init: instrument


----------------------
test1@pc1:~$ INSTALL4J_JAVA_HOME="/usr/lib/jvm/java-8-oracle" java downlords-faf-client
Error: Could not find or load main class downlords-faf-client




i've solved it with this:
chmod +x on the downlords-faf-client, and you have to run it from its directory /opt/down.... (cd into) lol WHY?? XD
otherwise it's no good.
Code: Select all
test1@pc1:~$ sudo chmod +x /opt/downlords-faf-client-0.9.0-beta-rc.3/downlords-faf-client
[sudo] password for test1:
test1@pc1:~$ INSTALL4J_JAVA_HOME="/usr/lib/jvm/java-8-oracle"  downlords-faf-client
Error opening zip file or JAR manifest missing : lib/webview-patch.jar
Error occurred during initialization of VM
agent library failed to init: instrument


test1@pc1:~$ INSTALL4J_JAVA_HOME="/usr/lib/jvm/java-8-oracle" /opt/downlords-faf-client-0.9.0-beta-rc.3/downlords-faf-client
Error opening zip file or JAR manifest missing : lib/webview-patch.jar
Error occurred during initialization of VM
agent library failed to init: instrument


test1@pc1:~$ cd /opt/downlords-faf-client-0.9.0-beta-rc.3/

test1@pc1:/opt/downlords-faf-client-0.9.0-beta-rc.3$ INSTALL4J_JAVA_HOME="/usr/lib/jvm/java-8-oracle" /opt/downlords-faf-client-0.9.0-beta-rc.3/downlords-faf-client
19:06:23.194 [main] DEBUG com.faforever.client.preferences.PreferencesService - Logger initialized
2018-09-09 19:06:23.958  INFO 22442 --- [lication Thread] o.s.boot.SpringApplication               : Starting application on pc1 with PID 22442 (started by test1 in /opt/downlords-faf-client-0.9.0-beta-rc.3)
2018-09-09 19:06:23.960  INFO 22442 --- [lication Thread] o.s.boot.SpringApplication               : The following profiles are active: prod,linux
2018-09-09 19:06:23.997  INFO 22442 --- [lication Thread] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@697ceb28: startup date [Sun Sep 09 19:06:23 CEST 2018]; root of context hierarchy
2018-09-09 19:06:24.757  INFO 22442 --- [lication Thread] trationDelegate$BeanPostProcessorChecker : Bean 'asyncConfig' of type [class com.faforever.client.config.AsyncConfig$$EnhancerBySpringCGLIB$$ff444235] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
.....
Last edited by foodlfg on 09 Sep 2018, 19:12, edited 2 times in total.
 
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 » 09 Sep 2018, 18:49

A little update for those who are interested :

"A small step for FAF in general, a giant leap for FAF-linux-kind"

I have JAVA FAF running NATIVELY in ubuntu 18.04.1 :

Screenshot from 2018-09-09 18-24-52.png
Screenshot from 2018-09-09 18-24-52.png (955.98 KiB) Viewed 3863 times


Here's how to get that done.

install JRE 8 on your system and set it as default (here's how I like to get that done) :
Code: Select all
sudo add-apt-repository ppa:webupd8team/java
sudo apt update
sudo apt install oracle-java8-installer -y
sudo apt install oracle-java8-set-default

(yes I choose to do the whole oracle JDK I have much more reliable results doing that than open-JDK or just the jre. also for most ubuntu's the last line will be moot as it will have been done automatically already but it can't hurt either way)

(if your java-version output is still incorrect despite this you can edit your .bashrc under home add export INSTALL4J_JAVA_HOME=/usr/lib/jvm/java-8-oracle at the end and then export .bashrc)

download this : http://geosearchef.de/downlords-faf-cli ... a-rc_3.deb (keep the file despite chrome/firefoxe's warning)

go to the folder it's in (normally this should do the trick) :
Code: Select all
cd Downloads/

then install it :
Code: Select all
sudo apt install ./downlords-faf-client_linux_0_9_0-beta-rc_3.deb

then take ownership of the newly created directory :
Code: Select all
sudo chown YOURLOGINNAME -R /opt/downlords-faf-client-0.9.0-beta-rc.3/

make two crucial files executable :
Code: Select all
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

got to the newly created dir :
Code: Select all
cd /opt/downlords-faf-client-0.9.0-beta-rc.3/

and run FAF :
Code: Select all
downlords-faf-client

or
Code: Select all
./downlords-faf-client


FA also runs from native steam I just need to figure out what command line args to place in Downlords-FAF's settings so that it launches Steam's proton-FA and also what kind of a mick mac i have to do to turn that steam folder into the FAF FA executable binary folder or set up the two folders correctly.
right now FAF is only built to handle an exe either under windows environment or wine environment. not proton.
Last edited by tatsu on 09 Sep 2018, 21:26, edited 2 times 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 » 09 Sep 2018, 20:02

so i can run the client now.
but i have a few issues:

1. something went wrong with the window manager (Gnome3) and the client window.
i did a "resize to full screen" by clicking on the icon:
- i cannot resize it no matter where i click now...
- if i open the settings a little window appears but it don't get the focus. the full screened main window is in focus. oO
if i move the little settings window to an other desktop, the main one follows it (probably this is a default behavior of Gnome3) and gets the focus again. anyways, i cannot interact with the settings window because of this.

2. scrolling Chat/name list and hovering names are extremely laggy, 1fps scrolling.
scrolling chat messages is much better. actually, scrolling anything else is much better except the Units tab, that is laggy as well.

3. the client asked me to set the faf directory. great! but which one? the wine supcom game dir or the /Home/FAForever one?
it could be more specific with giving examples. i gave it the /Home/FAForever one, it didn't complain.

4. getting these errors when i want to join a game:
First attempt (it did something btw first, probably patching the game?):
Code: Select all
java.util.concurrent.CompletionException: java.lang.NullPointerException
   at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
   at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
   at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:659)
   at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:632)
   at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
   at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962)
   at com.faforever.client.task.CompletableTask.lambda$new$2(CompletableTask.java:18)
   at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
   at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
   at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
   at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
   at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
   at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
   at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
   at javafx.event.Event.fireEvent(Event.java:198)
   at javafx.concurrent.EventHelper.fireEvent(EventHelper.java:219)
   at javafx.concurrent.Task.fireEvent(Task.java:1356)
   at javafx.concurrent.Task.setState(Task.java:723)
   at javafx.concurrent.Task$TaskCallable.lambda$call$501(Task.java:1434)
   at com.sun.javafx.application.PlatformImpl.lambda$null$172(PlatformImpl.java:295)
   at java.security.AccessController.doPrivileged(Native Method)
   at com.sun.javafx.application.PlatformImpl.lambda$runLater$173(PlatformImpl.java:294)
   at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:95)
   at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
   at com.sun.glass.ui.gtk.GtkApplication.lambda$null$48(GtkApplication.java:139)
   at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
   at java.nio.file.Files.provider(Files.java:97)
   at java.nio.file.Files.readAttributes(Files.java:1737)
   at java.nio.file.Files.isDirectory(Files.java:2192)
   at com.faforever.client.map.MapService.readMap(MapService.java:223)
   at com.faforever.client.map.MapService.addSkirmishMap(MapService.java:210)
   at com.faforever.client.map.MapService.lambda$null$15(MapService.java:439)
   at com.github.nocatch.NoCatch.noCatch(NoCatch.java:49)
   at com.github.nocatch.NoCatch.noCatch(NoCatch.java:34)
   at com.faforever.client.map.MapService.lambda$downloadAndInstallMap$16(MapService.java:439)
   at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:656)
   ... 23 more

Second attempt, etc:
what is .faforever/bin? it's there but what kinds of permissions are needed? i'm running the client with the same user that created these directories. it should have every permission. Oo
Code: Select all
java.util.concurrent.CompletionException: com.github.nocatch.NoCatchException: java.io.IOException: Cannot run program "/home/test1/.faforever/bin/ForgedAlliance.exe" (in directory "/home/test1/.faforever/bin"): error=13, Permission denied
   at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273)
   at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280)
   at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:659)
   at java.util.concurrent.CompletableFuture$UniAccept.tryFire(CompletableFuture.java:632)
   at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
   at java.util.concurrent.CompletableFuture.complete(CompletableFuture.java:1962)
   at com.faforever.client.replay.ReplayServerImpl.lambda$start$2(ReplayServerImpl.java:102)
   at java.lang.Thread.run(Thread.java:748)
Caused by: com.github.nocatch.NoCatchException: java.io.IOException: Cannot run program "/home/test1/.faforever/bin/ForgedAlliance.exe" (in directory "/home/test1/.faforever/bin"): error=13, Permission denied
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
   at com.github.nocatch.NoCatch.wrapException(NoCatch.java:61)
   at com.github.nocatch.NoCatch.noCatch(NoCatch.java:104)
   at com.github.nocatch.NoCatch.noCatch(NoCatch.java:82)
   at com.faforever.client.game.GameService.lambda$startGame$34(GameService.java:472)
   at java.util.concurrent.CompletableFuture.uniAccept(CompletableFuture.java:656)
   ... 5 more
Caused by: java.io.IOException: Cannot run program "/home/test1/.faforever/bin/ForgedAlliance.exe" (in directory "/home/test1/.faforever/bin"): error=13, Permission denied
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
   at com.faforever.client.fa.ForgedAllianceService.launch(ForgedAllianceService.java:124)
   at com.faforever.client.fa.ForgedAllianceService.startGame(ForgedAllianceService.java:74)
   at com.faforever.client.game.GameService.lambda$null$33(GameService.java:472)
   at com.github.nocatch.NoCatch.noCatch(NoCatch.java:100)
   ... 8 more
Caused by: java.io.IOException: error=13, Permission denied
   at java.lang.UNIXProcess.forkAndExec(Native Method)
   at java.lang.UNIXProcess.<init>(UNIXProcess.java:247)
   at java.lang.ProcessImpl.start(ProcessImpl.java:134)
   at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
   ... 12 more
 
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 » 09 Sep 2018, 20:20

@foodflg: The forged alliance executable in .faforever/bin is not marked as executable. Also it didn't want the FAF directory, it wants the FA directory, the location where the game is.

@tatsu:
No need to make the deb file executable. Please add "make executable" for the faf-ice-adapter file.

As I said, when I have time, I will fix those issues.
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 foodlfg » 09 Sep 2018, 22:03

Thanks!
i've found the client.prefs and edited it, i could resize the main window this way... 800x600 ftw lol
i would just remove the full screen feature for now, it's just too dangerous. lol


The game is still not launching but we are closer, i guess.
i have
sudo chmod +x .faforever/bin/ForgedAlliance.exe
sudo chmod +x /opt/downlords-faf-client-0.9.0-beta-rc.3/lib/faf-ice-adapter
sudo chmod +x /opt/downlords-faf-client-0.9.0-beta-rc.3/lib/faf-uid

Settings/Game location is:
/home/test1/PlayOnLinux's virtual drives/supCom/drive_c/Program Files (x86)/Steam/steamapps/common/Supreme Commander Forged Alliance

when i click on a game to join, it doesn't do anything now.
i don't really understand, if it contains the ice adapter, why isn't it using the test server?
i get this in terminal btw (contains only one game-join):
Code: Select all
test1@pc1:/opt/downlords-faf-client-0.9.0-beta-rc.3$ INSTALL4J_JAVA_HOME="/usr/lib/jvm/java-8-oracle" /opt/downlords-faf-client-0.9.0-beta-rc.3/downlords-faf-client
21:49:49.065 [main] DEBUG com.faforever.client.preferences.PreferencesService - Logger initialized
2018-09-09 21:49:49.888  INFO 9146 --- [lication Thread] o.s.boot.SpringApplication               : Starting application on pc1 with PID 9146 (started by test1 in /opt/downlords-faf-client-0.9.0-beta-rc.3)
2018-09-09 21:49:49.889  INFO 9146 --- [lication Thread] o.s.boot.SpringApplication               : The following profiles are active: prod,linux
2018-09-09 21:49:49.925  INFO 9146 --- [lication Thread] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@5016f5b8: startup date [Sun Sep 09 21:49:49 CEST 2018]; root of context hierarchy
2018-09-09 21:49:50.738  INFO 9146 --- [lication Thread] trationDelegate$BeanPostProcessorChecker : Bean 'asyncConfig' of type [class com.faforever.client.config.AsyncConfig$$EnhancerBySpringCGLIB$$ee648a71] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-09-09 21:49:50.752  INFO 9146 --- [lication Thread] trationDelegate$BeanPostProcessorChecker : Bean 'taskExecutor' of type [class java.util.concurrent.ThreadPoolExecutor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2018-09-09 21:49:51.637  INFO 9146 --- [lication Thread] o.s.s.c.ThreadPoolTaskScheduler          : Initializing ExecutorService  'taskScheduler'
2018-09-09 21:49:51.646  INFO 9146 --- [lication Thread] c.f.c.c.ConnectivityServiceImpl          : Opened public UDP socket: 0.0.0.0/0.0.0.0:6112
2018-09-09 21:49:51.763  INFO 9146 --- [lication Thread] c.f.c.update.ClientUpdateServiceImpl     : Current version: 0.9.0-beta-rc.3
2018-09-09 21:49:52.057  INFO 9146 --- [lication Thread] o.s.boot.SpringApplication               : Started application in 2.662 seconds (JVM running for 3.42)
2018-09-09 21:49:52.732  INFO 9146 --- [      Thread-17] c.f.client.remote.FafServerAccessorImpl  : Trying to connect to FAF server at lobby.faforever.com:8001
2018-09-09 21:49:52.810  INFO 9146 --- [      Thread-17] c.f.client.remote.FafServerAccessorImpl  : FAF server connection established
2018-09-09 21:49:52.906  INFO 9146 --- [      Thread-17] c.f.client.remote.FafServerAccessorImpl  : FAF session initiated, session ID: 2188575696
2018-09-09 21:49:53.253  INFO 9146 --- [      Thread-17] c.f.client.remote.FafServerAccessorImpl  : FAF login succeeded
2018-09-09 21:49:53.307  INFO 9146 --- [pool-2-thread-3] c.f.client.chat.PircBotXChatService      : Connecting to IRC at irc.faforever.com:8167
2018-09-09 21:49:53.393  INFO 9146 --- [pool-2-thread-5] c.f.client.update.CheckForUpdateTask     : Checking for client update
2018-09-09 21:49:53.407  INFO 9146 --- [pool-2-thread-4] c.f.client.upnp.WeUpnpServiceImpl        : Could not find a UPnP capable gateway
> Patching com/sun/webkit/WebPage ...
> com/sun/webkit/WebPage patching succeeded!
> Patching com/sun/javafx/webkit/prism/WCGraphicsPrismContext ...
> com/sun/javafx/webkit/prism/WCGraphicsPrismContext patching succeeded!
2018-09-09 21:49:54.229  INFO 9146 --- [ool-2-thread-11] c.f.c.c.ConnectivityCheckTask            : Testing public connectivity of game port: 6112
2018-09-09 21:49:54.563  INFO 9146 --- [pool-2-thread-5] c.f.client.update.CheckForUpdateTask     : Current version is 0.9.0-beta-rc.3, newest version is v0.8.0-beta
2018-09-09 21:50:04.336  INFO 9146 --- [      Thread-17] c.f.c.c.ConnectivityServiceImpl          : Switching to random port for STUN connectivity
2018-09-09 21:50:04.341  INFO 9146 --- [      Thread-17] c.f.c.c.ConnectivityServiceImpl          : Opened public UDP socket: 0.0.0.0/0.0.0.0:33819
2018-09-09 21:50:04.341  WARN 9146 --- [pool-2-thread-1] com.faforever.client.net.SocketUtil      : Socket has been closed: (Socket closed)
2018-09-09 21:50:04.448  INFO 9146 --- [lication Thread] c.f.c.c.ConnectivityServiceImpl          : Connectivity check successful, state: STUN, address: 84.236.96.143:33819
2018-09-09 21:51:36.601  INFO 9146 --- [lication Thread] com.faforever.client.game.GameService    : Joining game: '800+' (8531588)
2018-09-09 21:51:36.641  WARN 9146 --- [lication Thread] c.f.c.patch.BireusFeaturedModUpdater     : Error while testing http://content.faforever.com/bireus/faf/

java.io.FileNotFoundException: http://content.faforever.com/bireus/faf//info.json
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1890) ~[na:1.8.0_181]
   at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1492) ~[na:1.8.0_181]
   at java.net.URL.openStream(URL.java:1045) ~[na:1.8.0_181]
   at com.fasterxml.jackson.core.JsonFactory._optimizedStreamFromURL(JsonFactory.java:1547) ~[jackson-core-2.8.6.jar:2.8.6]
   at com.fasterxml.jackson.core.JsonFactory.createParser(JsonFactory.java:783) ~[jackson-core-2.8.6.jar:2.8.6]
   at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2797) ~[jackson-databind-2.8.6.jar:2.8.6]
   at com.faforever.client.patch.BireusFeaturedModUpdater.canUpdate(BireusFeaturedModUpdater.java:57) ~[downlords-faf-client-0.9.0-beta-rc.3.jar:0.9.0-beta-rc.3]
   at com.faforever.client.patch.GameUpdaterImpl.updateFeaturedMod(GameUpdaterImpl.java:164) [downlords-faf-client-0.9.0-beta-rc.3.jar:0.9.0-beta-rc.3]
   at com.faforever.client.patch.GameUpdaterImpl.update(GameUpdaterImpl.java:79) [downlords-faf-client-0.9.0-beta-rc.3.jar:0.9.0-beta-rc.3]
   at com.faforever.client.game.GameService.updateGameIfNecessary(GameService.java:428) [downlords-faf-client-0.9.0-beta-rc.3.jar:0.9.0-beta-rc.3]
   at com.faforever.client.game.GameService.lambda$joinGame$10(GameService.java:246) [downlords-faf-client-0.9.0-beta-rc.3.jar:0.9.0-beta-rc.3]
   at java.util.concurrent.CompletableFuture.uniComposeStage(CompletableFuture.java:981) ~[na:1.8.0_181]
   at java.util.concurrent.CompletableFuture.thenCompose(CompletableFuture.java:2124) ~[na:1.8.0_181]
   at com.faforever.client.game.GameService.joinGame(GameService.java:246) [downlords-faf-client-0.9.0-beta-rc.3.jar:0.9.0-beta-rc.3]
   at com.faforever.client.game.JoinGameHelper.join(JoinGameHelper.java:85) ~[downlords-faf-client-0.9.0-beta-rc.3.jar:0.9.0-beta-rc.3]
   at com.faforever.client.game.JoinGameHelper.join(JoinGameHelper.java:59) ~[downlords-faf-client-0.9.0-beta-rc.3.jar:0.9.0-beta-rc.3]
   at com.faforever.client.game.GamesTableController.lambda$gamesRowFactory$24(GamesTableController.java:180) ~[downlords-faf-client-0.9.0-beta-rc.3.jar:0.9.0-beta-rc.3]
   at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86) ~[jfxrt.jar:na]
   at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238) ~[jfxrt.jar:na]
   at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191) ~[jfxrt.jar:na]
   at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59) ~[jfxrt.jar:na]
   at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58) ~[jfxrt.jar:na]
   at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) ~[jfxrt.jar:na]
   at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) ~[jfxrt.jar:na]
   at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) ~[jfxrt.jar:na]
   at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) ~[jfxrt.jar:na]
   at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) ~[jfxrt.jar:na]
   at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) ~[jfxrt.jar:na]
   at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) ~[jfxrt.jar:na]
   at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) ~[jfxrt.jar:na]
   at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) ~[jfxrt.jar:na]
   at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) ~[jfxrt.jar:na]
   at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) ~[jfxrt.jar:na]
   at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56) ~[jfxrt.jar:na]
   at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114) ~[jfxrt.jar:na]
   at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74) ~[jfxrt.jar:na]
   at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54) ~[jfxrt.jar:na]
   at javafx.event.Event.fireEvent(Event.java:198) ~[jfxrt.jar:na]
   at javafx.scene.Scene$ClickGenerator.postProcess(Scene.java:3470) ~[jfxrt.jar:na]
   at javafx.scene.Scene$ClickGenerator.access$8100(Scene.java:3398) ~[jfxrt.jar:na]
   at javafx.scene.Scene$MouseHandler.process(Scene.java:3766) ~[jfxrt.jar:na]
   at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485) ~[jfxrt.jar:na]
   at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762) ~[jfxrt.jar:na]
   at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494) ~[jfxrt.jar:na]
   at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:394) ~[jfxrt.jar:na]
   at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:295) ~[jfxrt.jar:na]
   at java.security.AccessController.doPrivileged(Native Method) ~[na:1.8.0_181]
   at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$353(GlassViewEventHandler.java:432) ~[jfxrt.jar:na]
   at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389) ~[jfxrt.jar:na]
   at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:431) ~[jfxrt.jar:na]
   at com.sun.glass.ui.View.handleMouseEvent(View.java:555) ~[jfxrt.jar:na]
   at com.sun.glass.ui.View.notifyMouse(View.java:937) ~[jfxrt.jar:na]
   at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method) ~[jfxrt.jar:na]
   at com.sun.glass.ui.gtk.GtkApplication.lambda$null$48(GtkApplication.java:139) ~[jfxrt.jar:na]
   at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_181]

2018-09-09 21:51:37.250  INFO 9146 --- [ool-2-thread-12] c.f.c.patch.GameBinariesUpdateTaskImpl   : Updating binaries to 3698
2018-09-09 21:51:37.289  INFO 9146 --- [ool-2-thread-12] c.faforever.client.map.DownloadMapTask   : Downloading map adaptive_hilly_plateau.v0003 from http://content.faforever.com/faf/vault/maps/adaptive_hilly_plateau.v0003.zip
2018-09-09 21:51:37.644  INFO 9146 --- [lication Thread] c.f.c.c.TurnServerAccessorImpl           : Requesting address allocation at 148.251.238.131:3478/udp
2018-09-09 21:51:37.695  INFO 9146 --- [lication Thread] c.f.c.c.TurnServerAccessorImpl           : Relayed address: 148.251.238.131:55728/udp, mapped address: 84.236.96.143:43951/udp
2018-09-09 21:51:37.696  INFO 9146 --- [lication Thread] c.f.c.c.TurnServerAccessorImpl           : Permitting sends from /84.236.96.143:33819
2018-09-09 21:51:37.736  INFO 9146 --- [ool-2-thread-12] c.f.client.relay.LocalRelayServerImpl    : GPG relay server listening on port 33321
2018-09-09 21:51:38.004  INFO 9146 --- [      Thread-17] c.f.client.fa.ForgedAllianceService      : Starting Forged Alliance with command: [/home/test1/.faforever/bin/ForgedAlliance.exe, /init, init.lua, /nobugreport, /log, /home/test1/.faforever/logs/game.log, /gpgnet, 127.0.0.1:33321, /mean, 1104.89, /deviation, 100.788, /savereplay, gpgnet://127.0.0.1:40439/8531588/foodlfg.SCFAreplay, /country, HU, /numgames, 193] in directory: /home/test1/.faforever/bin
err:winedevice:ServiceMain driver L"WineBus" failed to load
err:module:import_dll Library X3DAudio1_2.dll (which is needed by L"Z:\\home\\test1\\.faforever\\bin\\ForgedAlliance.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\home\\test1\\.faforever\\bin\\ForgedAlliance.exe" failed, status c0000135
2018-09-09 21:51:38.742  INFO 9146 --- [ool-2-thread-13] com.faforever.client.game.GameService    : Forged Alliance terminated with exit code 53
2018-09-09 21:51:38.742  INFO 9146 --- [ool-2-thread-13] c.f.client.relay.LocalRelayServerImpl    : Closing relay server
Exception in thread "pool-2-thread-12" com.github.nocatch.NoCatchException: java.net.SocketException: Socket closed
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
   at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
   at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
   at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
2018-09-09 21:51:38.744  WARN 9146 --- [ool-2-thread-13] c.f.client.fa.relay.ice.IceAdapterImpl   : Ignoring call to ICE adapter as we are not connected: quit([])
   at com.github.nocatch.NoCatch.wrapException(NoCatch.java:61)
   at com.github.nocatch.NoCatch.noCatch(NoCatch.java:53)
   at com.github.nocatch.NoCatch.noCatch(NoCatch.java:34)
   at com.faforever.client.relay.LocalRelayServerImpl.innerStart(LocalRelayServerImpl.java:261)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
   at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketException: Socket closed
   at java.net.PlainSocketImpl.socketAccept(Native Method)
   at java.net.AbstractPlainSocketImpl.accept(AbstractPlainSocketImpl.java:409)
   at java.net.ServerSocket.implAccept(ServerSocket.java:545)
   at java.net.ServerSocket.accept(ServerSocket.java:513)
   at com.faforever.client.relay.LocalRelayServerImpl.lambda$innerStart$2(LocalRelayServerImpl.java:273)
   at com.github.nocatch.NoCatch.noCatch(NoCatch.java:49)
   ... 5 more
 
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 » 09 Sep 2018, 22:56

Your forged alliance isn't starting, this has nothing to do with the client. Are you using the correct wine version (ubuntu 18 problem)?

Code: Select all
2018-09-09 21:51:38.004  INFO 9146 --- [      Thread-17] c.f.client.fa.ForgedAllianceService      : Starting Forged Alliance with command: [/home/test1/.faforever/bin/ForgedAlliance.exe, /init, init.lua, /nobugreport, /log, /home/test1/.faforever/logs/game.log, /gpgnet, 127.0.0.1:33321, /mean, 1104.89, /deviation, 100.788, /savereplay, gpgnet://127.0.0.1:40439/8531588/foodlfg.SCFAreplay, /country, HU, /numgames, 193] in directory: /home/test1/.faforever/bin
err:winedevice:ServiceMain driver L"WineBus" failed to load
err:module:import_dll Library X3DAudio1_2.dll (which is needed by L"Z:\\home\\test1\\.faforever\\bin\\ForgedAlliance.exe") not found
err:module:LdrInitializeThunk Main exe initialization for L"Z:\\home\\test1\\.faforever\\bin\\ForgedAlliance.exe" failed, status c0000135
2018-09-09 21:51:38.742  INFO 9146 --- [ool-2-thread-13] com.faforever.client.game.GameService    : Forged Alliance terminated with exit code 53


Try heading over to .faforever/bin and make sure the ForgedAlliance.exe in starts. If you need to adapt the launch command, you can do so in the options of the java client, %s indicates the file itself.
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 foodlfg » 09 Sep 2018, 23:05

i have Ubuntu 16.04 so system default wine works (other wine versions work as well), the phyton client using system default wine too to launch the game.
i will look into it tomorrow, i guess...
Thanks!
 
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 » 16 Sep 2018, 14:03

I've made progress thanks to an ask ubuntu thread :

I've figured out that (theoretically) you should be able to run Proton-Steam FA yourself with the terminal, which, if true, would mean the bridge between native FAF and wined/protoned FA would be as good as made.

I'm hitting a wall though :

to run from Steam's proton dir (which I think is a necessity) :
Code: Select all
cd ~/.local/share/Steam/steamapps/common/Proton*


to run FA (or at least that's what I think it should be ) :
STEAM_COMPAT_DATA_PATH=/home/t/.local/share/Steam/steamapps/compatdata/9420 ./proton run /home/t/.local/share/Steam/steamapps/common/Supreme\ Commander\ Forged\ Alliance/bin/SupremeCommander.exe

the issue is steam probably adds run arguments that are not shown in the launch options box in the preferences of the game in steam.

or maybe steam does something else different , bottom line, I get this :
Screenshot from 2018-09-16 14-02-06.png
Screenshot from 2018-09-16 14-02-06.png (114.1 KiB) Viewed 3782 times


whereas with steam, Forged Alliance runs fine.

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

PreviousNext

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest