XCOM 2
59 ratings
Use Alternative Mod Launcher on Linux
By TheMinotauros
This is how you can use the Alternative Mod Launcher on Linux. You will have to run XCOM2 through Proton.
4
2
3
   
Award
Favorite
Favorited
Unfavorite
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.
24 Comments
Valektra 12 Jun @ 5:50pm 
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 @ 12:46am 
Thank you, it works with Proton-GE on Manjaro.
Astaroth 17 Apr @ 10:22am 
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 @ 1:01pm 
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
@R+5 7 Apr @ 12:58pm 
i can confirm the native version for linux is not working with mods
Kobold 2 Mar @ 2:28am 
The older comments are outdated, since i no longer see a launcher in Linux... the newest updates destroyed native linux support.

The game without mods are working without a launcher, but there is no way to play this game when we need mods and this makes the launcher require?
juhavsnn 25 May, 2023 @ 1:46pm 
Yes. I agree with Lilly, there is no need for ALM in linux.
juhavsnn 22 May, 2023 @ 4:38am 
Thanks. Got tired of Microsofts endless problems. So i changed to linux, and this is really helping. :)
Giggles 25 Apr, 2023 @ 12:05am 
"mkdir alt_launcher
cd alt_launcher
unzip ~/Downloads/XCOM2_AlternativeModLauncher_1.4.1.zip"

What the hell does this mean?