I am wondering how people are managing their Windows GOG games on Linux. Obviously the base game works fine on Steam Proton, but I run into trouble when I try to install DLC. If I add the addons to Steam, they can’t see the base game, as they are a separate instance/container.

Is there some way I can get around this, and run the DLC installers in the same Proton instance as the base game? Is there another solution for managing Proton that isn’t Steam, which allows this? A whole third option I haven’t thought of?

Thank you.


In the interest of providing solutions for future travelers, a solution was posted here https://lemmy.dbzer0.com/post/59375112/23092038

Please stop suggesting Heroic; I saw it the first 10 times.

  • shadow@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    24
    ·
    3 days ago

    Use a simple script to run the installers in the same container as the base game:

    #!/bin/bash
    
    export STEAM_COMPAT_CLIENT_INSTALL_PATH="$HOME/.local/share/Steam"
    export STEAM_COMPAT_DATA_PATH="/$HOME/.local/share/Steam/steamapps/compatdata/*prefix number*/"
    
    "$HOME/.local/share/Steam/steamapps/common/Proton 10.0/proton" run "$HOME/Downloads/StellarisExp1.exe"
    

    Just change the relevant parts to run the other installers, e.g. the installer name and location and the prefix number to match what Steam has generated

    • drkt@lemmy.dbzer0.comOP
      link
      fedilink
      English
      arrow-up
      23
      ·
      edit-2
      3 days ago

      It was really that simple! Thank you so much, I had no idea proton could just be run like this.

      Full tutorial for potential future readers:

      First add the base game installer as a non-steam game and run it, then close the installer when it is done.

      Go to the shortcut settings for the non-steam game (the installer) and set TARGET to "C:\GOG Games\Stellaris\stellaris.exe" and START IN to "C:\GOG Games\Stellaris"

      Run the game to confirm it works. Close the game, then adjust and run the script. Start the game and confirm the DLC were added. It should just work.

      I have also uploaded this script here https://drkt.eu/files/scripts/install-stellaris-gog-dlc-on-proton.sh

      #!/bin/bash
      
      # PROTON="$HOME/.steam/steam/steamapps/common/Proton 10/proton"
      PROTON="/mnt/450G/SteamLibrary/steamapps/common/Proton 10.0/proton"
      PREFIX="$HOME/.steam/steam/steamapps/compatdata/3543916168"
      
      DLC_DIR="$HOME/Downloads/stellaris_4.2.3_(86961)_win_gog/DLC"
      
      export STEAM_COMPAT_CLIENT_INSTALL_PATH="$HOME/.steam/steam"
      export STEAM_COMPAT_DATA_PATH="$PREFIX"
      
      INSTALLERS=$(find "$DLC_DIR" -maxdepth 1 -type f -iname "setup_stellaris*.exe")
      
      if [ -z "$INSTALLERS" ]; then
          echo "No DLC installers found."
          exit 1
      fi
      
      echo "Running Stellaris DLC installers in silent mode under Proton..."
      echo
      
      for inst in $INSTALLERS; do
          echo "Installing: $(basename "$inst")"
          # /silent or /VERYSILENT
          "$PROTON" run "$inst" /silent
          echo
      done
      
      echo "Done. DLC should now be installed inside the Proton prefix."