Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save erlking/b32cd57c8b475ef5c17652d5b4f836c3 to your computer and use it in GitHub Desktop.

Select an option

Save erlking/b32cd57c8b475ef5c17652d5b4f836c3 to your computer and use it in GitHub Desktop.
Run Space Engineers with Plugin Loader on Linux
#!/usr/bin/env python3
"""
forked this because with SE 1.207 the good old spaceengineerslauncher broke, and it is eol.
all credits go to opekope2 https://gist.github.com/opekope2/e02db7e526dadff0813a6ea2aebf820b
1. Download Pulsar https://github.com/SpaceGT/Pulsar/releases
2. Extract to Steam\steamapps\common\SpaceEngineers\Bin64\pulsar
3. Download this file (`SpaceEngineersLauncher.py`) into the `Bin64` folder of the game
3. Give it execute permissions (`chmod a+x SpaceEngineersLoader.py`)
4. check your bin64_path, this one is for flatpak steam, adjust accordingly.
5. Set the steam launch options for Space Engineers to `./SpaceEngineersLauncher.py %command%`
"""
import sys
import subprocess
import os
def replace_with_launcher(arg):
if arg.endswith("SpaceEngineers.exe"):
# Path with $USER expansion
bin64_path = os.path.expandvars(
r"z:\var\home\$USER\.var\app\com.valvesoftware.Steam\.local\share\Steam\steamapps\common\SpaceEngineers\Bin64"
)
# Return command split into parts
return ["pulsar\Legacy.exe", "-bin64", bin64_path]
return [arg]
# Build final argument list
se_launcher_args = []
for arg in sys.argv[1:]:
se_launcher_args.extend(replace_with_launcher(arg))
# Run
sys.exit(subprocess.call(se_launcher_args))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment