LINUX SUPPORT IS HERE

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Re: LINUX SUPPORT IS HERE

Postby ZeRen » 24 Aug 2019, 11:40

one more thing, do you factory attack move works through whole game? for me it stops work after some time, I dont know if it is random or not and I dont know when exactly

anyone have this problem or it is just me?
User avatar
ZeRen
Evaluator
 
Posts: 641
Joined: 03 Aug 2014, 08:22
Has liked: 154 times
Been liked: 49 times
FAF User Name: ZeRen

Re: LINUX SUPPORT IS HERE

Postby foodlfg » 24 Aug 2019, 12:07

ZeRen wrote:
foodlfg wrote:what is your linux distro exactly?

mint 19.2
kernel- Linux 4.15.0-20-generic


it's based on Ubuntu 18.04 LTS
i have Ubuntu 18.10 and i still have these libraries.

i don't know how Mint repositories work, can you use Ubuntu repositories maybe?

For Ubuntu 18.04 LTS (Bionic Beaver)
https://pkgs.org/download/libd3dadapter9-mesa
libd3dadapter9-mesa_19.0.8-0ubuntu0~18.04.1_i386.deb



----
Engineers with factory attack command reclaims until you have full mass bar and energy bar. Then they loose their factory attack command.
 
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 ZeRen » 25 Aug 2019, 20:09

thx it helped, I have the:
Code: Select all
PROTON_GALLIUM_NINE_MODULEPATH="/usr/lib/i386-linux-gnu/d3d/d3dadapter9.so.1:/usr/lib/x86_64-linux-gnu/d3d/d3dadapter9.so.1"


but the game dont even launch, I think I set everything right and the problem is driver, but I only can choice between 2 Nvidia and nouveau driver

now I am in dead end, so I guess I just play with normal proton

thx dude
User avatar
ZeRen
Evaluator
 
Posts: 641
Joined: 03 Aug 2014, 08:22
Has liked: 154 times
Been liked: 49 times
FAF User Name: ZeRen

Re: LINUX SUPPORT IS HERE

Postby foodlfg » 25 Aug 2019, 20:35

You can use D9VK too.This way you don't have to use the Nouveau driver either.
https://wiki.faforever.com/index.php?ti ... _game_time
 
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 ZeRen » 25 Aug 2019, 22:25

foodlfg wrote:You can use D9VK too.This way you don't have to use the Nouveau driver either.
https://wiki.faforever.com/index.php?ti ... _game_time


my graphic dont support Vulkan :cry:
User avatar
ZeRen
Evaluator
 
Posts: 641
Joined: 03 Aug 2014, 08:22
Has liked: 154 times
Been liked: 49 times
FAF User Name: ZeRen

Re: LINUX SUPPORT IS HERE

Postby artur453 » 25 Aug 2019, 22:35

sorry,for not answering
Here my client.prefs
Spoiler: show
{
"mainWindow": {
"width": 1310,
"height": 792,
"maximized": false,
"lastView": "PLAY",
"lastChildViews": {},
"x": 183.0,
"y": 120.0
},
"forgedAlliance": {
"path": "/home/artur/Games/SteamGames/Supreme Commander Forged Alliance",
"installationPath": "/home/artur/Games/SteamGames/Supreme Commander Forged Alliance",
"preferencesFile": "/home/artur/.wine/drive_c/users/artur/Application Data/Gas Powered Games/Supreme Commander Forged Alliance/Game.prefs",
"officialMapsDirectory": "/home/artur/faf/./maps",
"vaultBaseDirectory": "/home/artur/.faforever/user/My Games/Gas Powered Games/Supreme Commander Forged Alliance",
"forceRelay": false,
"autoDownloadMaps": true,
"vaultCheckDone": true,
"executableDecorator": "\"%s\""
},
"login": {
"username": "artur453",
"password": "password",
"autoLogin": true
},
"chat": {
"zoom": 1.0,
"learnedAutoComplete": false,
"previewImageUrls": true,
"maxMessages": 500,
"chatColorMode": "CUSTOM",
"channelTabScrollPaneWidth": 250,
"userToColor": {},
"hideFoeMessages": true,
"timeFormat": "AUTO",
"chatFormat": "COMPACT",
"idleThreshold": 10
},
"notification": {
"soundsEnabled": true,
"transientNotificationsEnabled": true,
"mentionSoundEnabled": true,
"infoSoundEnabled": true,
"warnSoundEnabled": true,
"errorSoundEnabled": true,
"friendOnlineToastEnabled": true,
"friendOfflineToastEnabled": true,
"ladder1v1ToastEnabled": true,
"friendOnlineSoundEnabled": false,
"friendOfflineSoundEnabled": false,
"friendJoinsGameSoundEnabled": true,
"friendPlaysGameSoundEnabled": false,
"friendPlaysGameToastEnabled": false,
"privateMessageSoundEnabled": true,
"privateMessageToastEnabled": true,
"friendJoinsGameToastEnabled": true,
"notifyOnAtMentionOnlyEnabled": false,
"afterGameReviewEnabled": true,
"toastPosition": "BOTTOM_RIGHT",
"toastScreen": 0,
"toastDisplayTime": 5000
},
"themeName": "default",
"lastGameType": "faf",
"localization": {
"language": "en_US"
},
"rememberLastTab": true,
"showPasswordProtectedGames": false,
"showModdedGames": false,
"ignoredNotifications": [],
"lastGameMinRating": 800,
"lastGameMaxRating": 1300,
"gamesViewMode": "tilesButton",
"ladder1v1": {
"factions": [
"aeon",
"cybran",
"uef",
"seraphim"
]
},
"news": {
"lastReadNewsUrl": "http://direct.faforever.com/2019/08/server-problems-during-peak-time/"
},
"developer": {
"gameRepositoryUrl": "https://github.com/FAForever/fa.git"
},
"vaultPrefs": {
"onlineReplaySortConfig": {
"sortProperty": "startTime",
"sortOrder": "DESC"
},
"mapSortConfig": {
"sortProperty": "statistics.plays",
"sortOrder": "DESC"
},
"modVaultConfig": {
"sortProperty": "latestVersion.createTime",
"sortOrder": "DESC"
}
},
"gameListSorting": [],
"gameTileSortingOrder": "PLAYER_DES",
"unitDataBaseType": "RACKOVER",
"storedCookies": {},
"lastGameOnlyFriends": false,
"disallowJoinsViaDiscord": false,
"showGameDetailsSidePane": true
}

@foodlfg idk where steam-generated executable file
nothing found in ~/faf/run - folder like this not exist

"executableDecorator": "\"%s\""
maybe it`s a problem,but idk what to do

Sorry,if solution contained in guide https://github.com/tatsujb/installFAFscript and i missed it
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 ZeRen » 26 Aug 2019, 10:02

about that attack move...

I am not this dumb, come on dude :lol:

thing is, when game start and I select factory and click attack move factory it works, but after some time in game when I select factory I cant give it attack move it does nothing (yes I know how to do attack move) ,

but when I select factory and give move command and hold shift and give attack move, then it is works, but it is just normal attack move, not factory attack move

same with units, when I select units I cant give them attack move, I have to make normal move and then attack move command to make it work

I dont know when it starts and why, did testing but cant find out

so I guess it is just me, cause no one else wrote about it
User avatar
ZeRen
Evaluator
 
Posts: 641
Joined: 03 Aug 2014, 08:22
Has liked: 154 times
Been liked: 49 times
FAF User Name: ZeRen

Re: LINUX SUPPORT IS HERE

Postby foodlfg » 27 Aug 2019, 19:26

artur453 wrote:sorry,for not answering
Here my client.prefs
Spoiler: show
...

@foodlfg idk where steam-generated executable file
nothing found in ~/faf/run - folder like this not exist

"executableDecorator": "\"%s\""
maybe it`s a problem,but idk what to do

Sorry,if solution contained in guide https://github.com/tatsujb/installFAFscript and i missed it


That is not good at all.
I'm sure Tatsu's script prompts you to fill this in (later) during the installation process... I'm too lazy finding out how/when he does it. :p

What you should do is:
1. Run the game from Steam with the launch options you already have (those are ok).
2. Follow the wiki Copy the Steam RUN script:
https://wiki.faforever.com/index.php?ti ... RUN_script
3. Follow the Client Setup section too:
https://wiki.faforever.com/index.php?ti ... ient_Setup

Tatsu's script probably installed the java client to somewhere else but that's ok. You already know where it is, just replace the wiki directories with your actual directories.

Tell us what happened. : )
Post your files again if you have a problem (run, client.prefs).
 
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 » 27 Aug 2019, 21:40

yo! sorry I haven't been around so much. real sorry! 人(_ _*)

Life kinda caught up with me. eventually a newer and cooler version of the script will come out but in the meantime a couple notes on what's changed :

1. latest version of proton now totally works, no desyncs or anything. I've done buttloads of testing. so that's cool.

2. no longer needs maps and mods symlinking. FAF now detects linux and does it for you and very well at that.

3. 1v1 and featured mods work thanks to this extra script :

Code: Select all
#!/usr/bin/python3

import os
import time
import signal
import sys
import itertools

USERHOME = os.path.expanduser('~')
INITFILES = []
FILE_PATHS = [
    USERHOME + '/.faforever/bin/init.lua',
    USERHOME +'/.faforever/bin/SupComDataPath.lua'
]

CAN_LOOP = True

SPINNER = itertools.cycle(['|','/','-','\\']) #Just for visuals

def main():
    global CAN_LOOP
    global SPINNER

    print("==== Starting FAF File Watcher ====\n")
    print("           Ctrl+C to exit  \n")
    for path in FILE_PATHS:
        INITFILES.append(InitFile(path))

    while CAN_LOOP:
        writeSpinner()
        for initFile in INITFILES:
            initFile.replaceIfModified()
        time.sleep(0.5)
   
    print("\n==== Exiting FAF File Watcher ====")
    sys.exit(0)

def writeSpinner():
    sys.stdout.write(next(SPINNER))
    sys.stdout.flush() 
    sys.stdout.write('\b')

def signal_handler(sig, frame):
    global CAN_LOOP

    print('\nSIGINT Recieved, Cleanly Exiting')
    CAN_LOOP = False

class InitFile():
    replace = "dofile('init_faf.lua')"
    replaceWith = "dofile(InitFileDir .. '\\\\init_faf.lua')"

    path = ''
    lastReplaceTime = -1 #Causes it to replace the text first pass

    def __init__(self, path):
        self.path = path

    def modifiedAfterReplace(self):
        modified = os.path.getmtime(self.path) > self.lastReplaceTime
        return modified

    def replaceIfModified(self):
        if self.modifiedAfterReplace():
            print(f"File modified at {os.path.getmtime(self.path)}, reading and replacing")
            self.readAndReplace()
           
    def readAndReplace(self):
        filedata = ''

        print('Reading: ' + self.path)
        with open(self.path, 'r') as file :
            filedata = file.read()

        filedata = filedata.replace(self.replace, self.replaceWith)


        print('Writing: ' + self.path)
        with open(self.path, 'w') as file:
            file.write(filedata)
       
        self.lastReplaceTime = os.path.getmtime(self.path)
        print(f"Read and Replace Complete At: {self.lastReplaceTime}")


signal.signal(signal.SIGINT, signal_handler)
main()


save it as "fixFAFPaths.py" and fun it with :
Code: Select all
./FixFAFPaths.py


4. run arg line (in faf settings) works like this :
Code: Select all
/home/t/faf/run %s
(no quotes needed)
before running FAF. for the rest manual installation should do.
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 Little Miss Murder » 28 Aug 2019, 19:56

tatsu wrote:人(_ _*)


That is the cutest thing I have ever seen.
Little Miss Murder
Avatar-of-War
 
Posts: 229
Joined: 30 Mar 2019, 12:20
Has liked: 132 times
Been liked: 29 times
FAF User Name: Little Miss Murder

PreviousNext

Return to General Discussions

Who is online

Users browsing this forum: Google [Bot] and 1 guest