XCOM 2
62 betyg
Use Alternative Mod Launcher on Linux
Av TheMinotauros
This is how you can use the Alternative Mod Launcher on Linux. You will have to run XCOM2 through Proton.
4
2
3
   
Utmärkelse
Favorit
Favoritmarkerad
Avfavoritmarkerad
Howto
Install the windows XCOM2 binaries by opening the XCOM2 properties before the actual install.. Go to "Compatibility" and select "Force the use of a specific Steam Play compatibility tool". You can select a different proton version if you want to.

Start the game once. You only need to let it go to the default launcher. Then exit. Just to make sure everything works so far.

After XCOM2 is installed go to the .../steamapps/common/XCOM 2 directory and create a directory there and unzip the alt launcher there
mkdir alt_launcher cd alt_launcher unzip ~/Downloads/XCOM2_AlternativeModLauncher_1.4.1.zip

Now the alt launcher is parallel to the regular launcher.


Change Launch options (the easy way)

If you installed the AML in parallel as described above then replace the Launch Options in the properties of the game with the following:
eval $(echo "%command%" | sed 's|2KLauncher/LauncherPatcher.exe|alt_launcher/XCOM2 Launcher.exe|')

Thanks to Xeloses for the hint. Below is the first (hard) way that I did. A bit over engineered but works as well.

Change Launch options (the hard way)

Why would you use the hard way? If you want to set certain environment variables or do additinal things, then it is easier to do that in the script we will create before

Go back to the XCOM 2 properties. In the "General" tab  change the "Launch options" to. Replace "user" with your username. If your home directory is somewhere else change it to that.
echo "%COMMAND%" > ~/xcom2_run
Then start the game. It will not start. Instead there will now be a file xcom2_run in your home directory that gives you the exact command that steam executes here.

Now there should be a file called xcom2_run in your home directory that looks like this. The user would be the name of your user. My steam library is installed in /opt/software/SteamLibrary/. That path should be different for you.
/home/user/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=268500 -- '/home/user/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/user/.local/share/Steam/steamapps/common/Proton 6.3'/proton waitforexitandrun '/opt/software/SteamLibrary/steamapps/common/XCOM 2/2KLauncher/LauncherPatcher.exe' -steam_auto_login -game-61483=-review -game-61483=-noRedscreens

Now edit that file with your favorite text editor and replace 2KLauncher/LauncherPatcher.exe with the directory you created and the launcher  executable. In my example:  alt_launcher/XCOM2 Launcher.exe
Also add a #!/bin/bash in the first line. Your file should now look something like this:

#!/bin/bash /home/user/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=268500 -- '/home/user/.local/share/Steam/steamapps/common/SteamLinuxRuntime_soldier'/_v2-entry-point --verb=waitforexitandrun -- '/home/user/.local/share/Steam/steamapps/common/Proton 6.3'/proton waitforexitandrun '/opt/software/SteamLibrary/steamapps/common/XCOM 2/alt_launcher/XCOM2 Launcher.exe' -steam_auto_login -game-61483=-review -game-61483=-noRedscreens

Make the file executable with
chmod +x xcom2_run

Finally go back to your XCOM 2 properties and change the launch options from the echo we put there before to
/home/user/xcom2_run "%COMMAND%"
The %COMMAND% is important, else steam will just add the script at the end of the command instead of "replacing" it. The script itself does nothing with the %COMMAND%.

Run the game again and it should start the Alternative Mod Launcher.

Because I had moved my steam library to a different drive, the launcher couldn't find my mods. I had to add
export STEAM_COMPAT_MOUNTS=/opt/software
to the xcom2_run script. Right between the "#!/bin/bash" and the command.
29 kommentarer
Eyshma 21 jun @ 9:10 
The 2KLauncher folder has been removed. I don't think this works anymore. At the very least, the command above failed to achieve anything.
Twice 12 jun @ 8:41 
Hi, I have a error on start launcher: “please make sure that:
Steam is running
The file steam_appid.txt exists in the AML folder
Neither (or both) of Steam and AML are running with admin privileges”
What a problem is this? Pls help
Ku 12 jun @ 3:17 
Set launch options to new launcher and change to
eval $(echo "%command%" | sed 's|Launcher/launcher.exe|alt_launcher/XCOM2 Launcher.exe|')
Quake_Sinatra 29 jan @ 9:37 
With the new launcher (Nov 25, 2024) I had to move my alt_launcher folder to the Binaries directory and change my launch option line to eval $(echo "%command%" | sed 's|Launcher/ModLauncherWPF.exe|alt_launcher/XCOM2 Launcher.exe|') .. and that got it back up and working (I use the Open Original mod launcher option)
ColStuckInMyTeeth 24 dec, 2024 @ 7:48 
Definitely do NOT do what Nc said to do. That is not for 'normal people'. That is the dumb way to do it. Don't just copy and paste files around. Your steam installation will detect a file integrity issue and wipe that all away the first chance it gets. That is highly stupid.
Nc 25 jul, 2024 @ 11:06 
Valektra 12 jun, 2024 @ 17:50 
I just run native and use the game launcher. It's not the same dumpster fire windows launcher and actually works pretty decent.
DER RÜTTLER 9 jun, 2024 @ 0:46 
Thank you, it works with Proton-GE on Manjaro.
Astaroth 17 apr, 2024 @ 10:22 
AML used to work for me 1~2 years ago (proton experimental at the time) but now AML crashes whenever I hover over any button at the top bar (including the button to launch WOTC).

Changing to Proton version 6.3-8 fixed it
@R+5 7 apr, 2024 @ 13:01 
i also request help to run aml in linux: the aml launcher runs but when i try to start the game (run xcom2) the launcher reports error and crashes, and the game wont run