Forged Alliance Forever Forged Alliance Forever Forums 2020-02-14T09:09:15+02:00 /feed.php?f=53&t=18776 2020-02-14T09:09:15+02:00 2020-02-14T09:09:15+02:00 /viewtopic.php?t=18776&p=182005#p182005 <![CDATA[Re: OZONEX'S EDITOR RUNNING ON LINUX, WOOT!]]>
The solution is to make a copy of your FA installation and point the FA path in the settings to the copy. You can leave the maps directory to point to the "live" version, otherwise you will have to manually copy your maps.

Statistics: Posted by Little Miss Murder — 14 Feb 2020, 09:09


]]>
2020-02-12T17:31:42+02:00 2020-02-12T17:31:42+02:00 /viewtopic.php?t=18776&p=181973#p181973 <![CDATA[OZONEX'S EDITOR RUNNING ON LINUX, WOOT!]]>
I finally got it working. It will launch but not run properly (missing widgets & textures and basic instability) under the default Wine prefix even if you stand on your head. The default prefix's libraries aren't up to the task. The trick is to employ Proton and use Steam's appcompat fileset for FA by setting the STEAM_COMPAT_DATA_PATH" variable and then launching the exe using the Proton launcher script.

Check it out:

Screenshot from 2020-02-12 16-58-15.png

Here's how to roll your own.

1) Create a shell script to launch it

Take this snippet of python script and paste it into a file; what you call it and where you put it is up to you.

Code:
#!/usr/bin/env python

import os, sys

os.environ["STEAM_COMPAT_DATA_PATH"] =  "/home/<yourname>/.steam/steam/steamapps/compatdata/9420"

run = "run"
exe = "\"" + "/home/<yourname>/.steam/steam/steamapps/common/FAF Map Editor/FAForeverMapEditor.exe\""

cmd = "\"" + "/home/<yourname>/.steam/steam/steamapps/common/Proton 3.7/proton\" "+ run + " " + exe

for arg in sys.argv[1:]:
    cmd += " " + arg

os.system(cmd)


You will need to edit the paths to suit your own installation. The Steam appid for FA is 9420 - this folder is the prefix that Wine will be using when launched by the Proton script. You will also note that I copied the editor directory into the .../steamapps/common directory, this isn't necessary but it's where it ended up while I was experimenting. Just change the path to the exe to where it's copied on your file system.

You will also note that I am using the Proton 3.7 runtime, even though I am using 3-16 for the actual game itself. Try whatever version you like, if you don't have 3.7 ferinstance installed, change the FA compatibility layer in your steam client and Steam will install it for you. I have not tried any other versions than 3.7, but this might change if I discover it isn't QUITE as stable as I'd like. So far so good though.

You will note that any args you pass to the script will be appended to the final command line. I have no idea whether the editor accepts any but there you go.

Save the file and make it executable:
Code:
chmod +x <yournewscript>


Now you can simply launch the script.

2) Setting it up

Since the editor is a Winbloze app, setting it up is not entirely straightforward. Initially, you will be presented with the settings dialog. The default paths are worthless, you will need to type the path to the relevant folders, since the file browser does not show dot files (hidden files) and you can't browse into .steam (for example) like the civilized human being you are.

You will not find anything under C:, but Wine mounts your root filesystem under another drive letter, in my case it is Z:
The paths are straightforward from there. Herewith a screenshot of my settings:

Screenshot from 2020-02-12 17-21-20.png

Add a backup folder to taste.

3) Profit!

4) Caveats

I have never used the editor at all in any sort of anger, so I don't know what works and what doesn't. In other words, I can't say what is normal behaviour and what isn't. For example, selecting the "Resource Browser" menu item leads to an exception, I have no idea what it is or what it does.

GlHf and please let me know how it goes for you. I'm off to diddle with it now!

Rhianne

Statistics: Posted by Little Miss Murder — 12 Feb 2020, 17:31


]]>