LINUX SUPPORT IS HERE

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Re: LINUX SUPPORT IS HERE

Postby foodlfg » 05 Aug 2018, 14:56

artur453 wrote:Hello
i`m trying to join some game (or create) and get black screen for few seconds and blackscreen winwos closing
su:fa via wine runs Ok
faf launcher configured
...

as for me,
i have no idea why you get "Game has exited with status code: 5". i don't even know what error code 5 is.
i guess, this error is thrown by the game, not by the faf client (terminal). right?

and you say that if you launch the game from playonlinux, everything works fine.
but if the faf client starts the game, it doesn't load, and you get an error.
right?


generally, if you can start the game using wine or playonlinux-wine, it should run fine with launched by the client and with the same wine version. :/
maybe try out different wine versions using playonlinux...? i don't know.

what is your system default wine version?
terminal: zzz@pc1:~$ wine --version

what happens if you delete the exe row from the FA Lobby.ini? or both lines?
[wine]
exe=/home/artur/.PlayOnLinux/wine/linux-x86/2.12-staging/bin/wine <- delete this
prefix=/home/artur/.PlayOnLinux/wineprefix/Faf
 
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 » 05 Aug 2018, 19:15

I've now compiled a version of the java (downlord's) client without ICE that should run on linux natively. It requires you to install openjdk and openjfk version 1.8.0 (162+) or oracle java.

https://geosearchef.de/dfc_linux_0_9_0-beta-rc_3.deb

After installing, you need to set the java location, head into /opt/downlor..../ and execute 'downlords-faf-client' there. You also need to set the faf-uid file in the lib folder as executable.

Keep in mind this is a release candidate.

If there error persists, please send the log file of the client.
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 » 05 Aug 2018, 20:44

@Geosearchef
i'm not into java development so probably i'm missing something, but why do you need to compile java code for linux separately?
isn't the source code the same?

anyways,
can we set the wine executable we want to use somehow?
can we give custom command line options to wine?

https://github.com/FAForever/downlords-faf-client
do we need special tools to comply the source code? (just compilation, not opening the project with IntelliJ Ultimate)
i'm just curious, i don't really want to comply it.
 
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 » 05 Aug 2018, 21:04

For compiling you need gradle. For packaging you need install4j. That's why I needed to "compile" for linux, I created a seperate package, as the client needs features of the installer for launching and e.g. displaying a spalsh screen. Currently there was just a windows setup file available which won't help you much.
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 artur453 » 05 Aug 2018, 23:33

foodlfg wrote:
artur453 wrote:Hello
i`m trying to join some game (or create) and get black screen for few seconds and blackscreen winwos closing
su:fa via wine runs Ok
faf launcher configured
...

as for me,
i have no idea why you get "Game has exited with status code: 5". i don't even know what error code 5 is.
i guess, this error is thrown by the game, not by the faf client (terminal). right?

and you say that if you launch the game from playonlinux, everything works fine.
but if the faf client starts the game, it doesn't load, and you get an error.
right?


generally, if you can start the game using wine or playonlinux-wine, it should run fine with launched by the client and with the same wine version. :/
maybe try out different wine versions using playonlinux...? i don't know.

what is your system default wine version?
terminal: zzz@pc1:~$ wine --version

what happens if you delete the exe row from the FA Lobby.ini? or both lines?
[wine]
exe=/home/artur/.PlayOnLinux/wine/linux-x86/2.12-staging/bin/wine <- delete this
prefix=/home/artur/.PlayOnLinux/wineprefix/Faf


my wine version is 3.02
if i deleting this row (exe or both) (as i understand) game runs on standard wine and i get CD3D errors
thats reason i configured playonlinux and wine 2.12

"Game has exited with status code: 5" i have in gamesession.log .In game.uid .... logs i havent any errors or warning

Do you have database for exit codes?
artur453
Crusader
 
Posts: 12
Joined: 08 Apr 2018, 20:56
Has liked: 1 time
Been liked: 0 time
FAF User Name: artur453

Re: LINUX SUPPORT IS HERE

Postby foodlfg » 18 Aug 2018, 12:52

artur453 wrote:my wine version is 3.02
if i deleting this row (exe or both) (as i understand) game runs on standard wine and i get CD3D errors
thats reason i configured playonlinux and wine 2.12

"Game has exited with status code: 5" i have in gamesession.log .In game.uid .... logs i havent any errors or warning

Do you have database for exit codes?


No, i don't have any list for the exit codes.

It's funny since you get the same CD3D errors with wine 3.02 as we get using ubuntu and Wine 3.0. Wine 3.0 is broken.
Wine 3.10 solved the problem for me btw.

Anyways, back to the topic.
Could you modify your client to see what arguments the client uses to launch the game?
Add the red lines to [the client's directory]/src/fa/game_process.py file:
(i know there is a logger there but i couldn't make it work so... printf and fk python xD)
Spoiler: show
if util.wine_prefix:
wine_env = QtCore.QProcessEnvironment.systemEnvironment()
wine_env.insert("WINEPREFIX", util.wine_prefix)
QtCore.QProcess.setProcessEnvironment(self, wine_env)
logger.info("Running FA with info: " + str(info))
logger.info("Running FA via command: " + command)
logger.info("Running FA via executable: " + executable)
print("Running FA with info: " + str(info))
print("Running FA via command: " + command)
print("Running FA via executable: " + executable)


# Launch the game as a stand alone process
if not instance.running():

self.setWorkingDirectory(os.path.dirname(executable))
if not detach:
print("detach")
self.start(command)
else:

Then launch the client from terminal.
Then launch a game (host a game).

What can you see in the terminal at this point?
for me it's:
Code: Select all
Running FA with info: {'featured_mod': 'faf', 'recorder': 'foodlfg', 'launched_at': 1534531010.217885, 'complete': False, 'uid': 9999999}
Running FA via command:  /usr/bin/wine "/home/test1/FAForever/bin/ForgedAlliance.exe" /mean 1050.89 /deviation 102.554 /init init_faf.lua /numgames 179 /log "/home/test1/FAForever/logs/game.log" /nobugreport /savereplay "gpgnet://localhost/8420570/foodlfg.SCFAreplay" /gpgnet 127.0.0.1:46669
Running FA via executable: /home/test1/FAForever/bin/ForgedAlliance.exe
detach


Also, try to use wine 3.10 and above 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 » 18 Aug 2018, 13:05

Geosearchef wrote:For compiling you need gradle. For packaging you need install4j. That's why I needed to "compile" for linux, I created a seperate package, as the client needs features of the installer for launching and e.g. displaying a spalsh screen. Currently there was just a windows setup file available which won't help you much.


Thanks!

If you need linux testers for ICE + faf, pls post here.
I cannot use faf discord, they began requesting my phone number. Discord says it's because of the change in the faf discord server settings, it's not them, it's the owner of the discord server. Anyways, I don't want to give them anything so only the forum remains. (:

it looks like i can receive pm-s tho on the faf discord at least...
 
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 artur453 » 22 Aug 2018, 20:48

foodlfg wrote:
artur453 wrote:my wine version is 3.02
if i deleting this row (exe or both) (as i understand) game runs on standard wine and i get CD3D errors
thats reason i configured playonlinux and wine 2.12

"Game has exited with status code: 5" i have in gamesession.log .In game.uid .... logs i havent any errors or warning

Do you have database for exit codes?


No, i don't have any list for the exit codes.

It's funny since you get the same CD3D errors with wine 3.02 as we get using ubuntu and Wine 3.0. Wine 3.0 is broken.
Wine 3.10 solved the problem for me btw.

Also, try to use wine 3.10 and above too.

thx for help
I deleted all linked with faf and reinstall it another time
but
in playonlinux i set wine version 3.10
in Fa lobby.ini
Code: Select all
[wine]
exe=/home/artur/PlayOnLinux/wine/linux-x86/3.10/bin/wine
prefix=/home/artur/.PlayOnLinux/wineprefix/Faf

and IT work
maybe problem in wine version,but dont f*** with that 2-3 month more
artur453
Crusader
 
Posts: 12
Joined: 08 Apr 2018, 20:56
Has liked: 1 time
Been liked: 0 time
FAF User Name: artur453

Re: LINUX SUPPORT IS HERE

Postby foodlfg » 22 Aug 2018, 23:13

artur453 wrote:and IT work
maybe problem in wine version,but dont f*** with that 2-3 month 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 foodlfg » 24 Aug 2018, 17:46

Something is happening at Valve / Steam regarding running Windows games on Linux.
They try to use a modified version of Wine and pair this up with other things to make Linux gaming less tedious.
Currently it's in beta status.

Valve’s “Steam Play” uses Vulkan to bring more Windows games to Linux
https://arstechnica.com/gaming/2018/08/ ... -to-linux/

Valve Launches Wine-based “Proton” To Let You Play Windows Games On Linux
https://fossbytes.com/wine-based-proton ... -on-linux/

Introducing a new version of Steam Play
https://steamcommunity.com/games/221410 ... 5739350561

FYI: Steam Proton for non Steam applications (like faf)
https://www.reddit.com/r/Steam/comments ... lications/

I say, YES!
 
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