Skip to content

Instantly share code, notes, and snippets.

@opekope2
Last active October 27, 2024 18:30
Show Gist options
  • Save opekope2/e02db7e526dadff0813a6ea2aebf820b to your computer and use it in GitHub Desktop.
Save opekope2/e02db7e526dadff0813a6ea2aebf820b to your computer and use it in GitHub Desktop.
Space Engineers Plugin Loader on Linux
#!/usr/bin/env python3
"""
Load https://github.com/sepluginloader/PluginLoader on Linux after Space Engineers 1.202 (Automatons update)
1. Download SpaceEngineersLauncher from https://github.com/sepluginloader/SpaceEngineersLauncher
2. Download this file (`SpaceEngineersLauncher.py`) into the `Bin64` folder of the game
3. Give it execute permissions (`chmod a+x SpaceEngineersLoader.py`)
4. Set the steam launch options for Space Engineers to `./SpaceEngineersLauncher.py %command%`
https://gist.github.com/opekope2/e02db7e526dadff0813a6ea2aebf820b
"""
import sys
import subprocess
def replace_with_launcher(arg):
if arg.endswith('SpaceEngineers.exe'):
arg = arg[:-len('SpaceEngineers.exe')]
return arg + 'SpaceEngineersLauncher.exe'
return arg
se_launcher_args = [replace_with_launcher(arg) for arg in sys.argv[1::]]
sys.exit(subprocess.call(se_launcher_args))
@opekope2
Copy link
Author

opekope2 commented Jun 10, 2024

I added a step to download SpaceEngineersLauncher because I forgot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment