Installer star-wars-x-wing-alliance-xwaupgrade-gog

This script is for reference only and can't be directly used to install the game in the Lutris client. To install the game, download the full script.

files:
- install: N/A:Select the installer provided by GOG.
- xwahacker: https://managedway.dl.sourceforge.net/project/xwahacker/xwahacker-3.2.zip
- xwaupgrade: https://www.xwaupgrade.com/download/installers/XWAU2020.exe
- patch: https://www.xwaupgrade.com/download/installers/XWAU2020update_v2.1.exe
- radiobutton: https://github.com/dhollinger/lutris_installers/raw/master/installers/xwa/RadioButtonBox.exe
- launcher: https://raw.githubusercontent.com/dhollinger/lutris_installers/master/installers/xwa/xwa.bat
- cmdow: https://github.com/dhollinger/lutris_installers/releases/download/v1.0.0/cmdow.zip
game:
  arch: win64
  args: /run /hid xwa.bat
  exe: drive_c/GOG Games/Star Wars - X-Wing Alliance/cmdow.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    name: create_prefix
    prefix: $GAMEDIR
- task:
    app: dotnet461
    arch: win64
    description: Installing .NET 4.6.1
    name: winetricks
    prefix: $GAMEDIR
- task:
    app: directplay
    arch: win64
    description: Installing DirectPlay
    name: winetricks
    prefix: $GAMEDIR
- task:
    arch: win64
    description: Running installer. Please quit the installer at the end, do not run
      the game until this script finishes installing.
    executable: install
    name: wineexec
    prefix: $GAMEDIR
- extract:
    dst: $CACHE/cmdow
    file: cmdow
- move:
    dst: $GAMEDIR/drive_c/GOG Games/Star Wars - X-Wing Alliance/cmdow.exe
    src: $CACHE/cmdow/bin/Release/cmdow.exe
- move:
    dst: $GAMEDIR/drive_c/GOG Games/Star Wars - X-Wing Alliance/xwa.bat
    src: launcher
- move:
    dst: $GAMEDIR/drive_c/GOG Games/Star Wars - X-Wing Alliance/RadioButtonBox.exe
    src: radiobutton
- chmodx: $GAMEDIR/drive_c/GOG Games/Star Wars - X-Wing Alliance/xwa.bat
- chmodx: $GAMEDIR/drive_c/GOG Games/Star Wars - X-Wing Alliance/RadioButtonBox.exe
- task:
    arch: win64
    description: Installing XWA Upgrade 2020
    executable: xwaupgrade
    name: wineexec
    prefix: $GAMEDIR
- task:
    arch: win64
    description: Installing XWA Upgrade 2020 Patch 2.1
    executable: patch
    name: wineexec
    prefix: $GAMEDIR
- extract:
    description: Prepare XWAHacker
    dst: $CACHE/xwahacker
    file: xwahacker
    format: zip
- task:
    args: XWINGALLIANCE.EXE -c 0
    executable: $CACHE/xwahacker/xwahacker.exe
    name: wineexec
    prefix: $GAMEDIR
    working_dir: $GAMEDIR/drive_c/GOG Games/Star Wars - X-Wing Alliance/
- task:
    args: XWINGALLIANCE.EXE -c 7
    executable: $CACHE/xwahacker/xwahacker.exe
    name: wineexec
    prefix: $GAMEDIR
    working_dir: $GAMEDIR/drive_c/GOG Games/Star Wars - X-Wing Alliance/
- task:
    args: XWINGALLIANCE.EXE -r 3 1920 1080
    description: Set resolution, FoV, and HUD scaling
    executable: $CACHE/xwahacker/xwahacker.exe
    name: wineexec
    prefix: $GAMEDIR
    working_dir: $GAMEDIR/drive_c/GOG Games/Star Wars - X-Wing Alliance/
- task:
    app: dxvk
    arch: win64
    description: setup DXVK manually
    name: winetricks
    prefix: $GAMEDIR
- task:
    key: d3d9
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\AppDefaults\BabuFriksConfigurator.exe\DllOverrides
    type: REG_SZ
    value: builtin
- task:
    key: d3d9
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\AppDefaults\PalpatineTotalConverter.exe\DllOverrides
    type: REG_SZ
    value: builtin
- task:
    key: d3d9
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\AppDefaults\XWAU2020update_v1.0.exe\DllOverrides
    type: REG_SZ
    value: builtin
- task:
    app: win10
    arch: win64
    description: Setting Windows 10 mode
    name: winetricks
    prefix: $GAMEDIR
system:
  env:
    DXVK_STATE_CACHE: '0'
  reset_desktop: true
wine:
  dxvk: false
  overrides:
    ddraw.dll: n, b
    dinput.dll: n, b
  version: lutris-5.6-5-x86_64
{
  "files": [
    {
      "install": "N/A:Select the installer provided by GOG."
    },
    {
      "xwahacker": "https://managedway.dl.sourceforge.net/project/xwahacker/xwahacker-3.2.zip"
    },
    {
      "xwaupgrade": "https://www.xwaupgrade.com/download/installers/XWAU2020.exe"
    },
    {
      "patch": "https://www.xwaupgrade.com/download/installers/XWAU2020update_v2.1.exe"
    },
    {
      "radiobutton": "https://github.com/dhollinger/lutris_installers/raw/master/installers/xwa/RadioButtonBox.exe"
    },
    {
      "launcher": "https://raw.githubusercontent.com/dhollinger/lutris_installers/master/installers/xwa/xwa.bat"
    },
    {
      "cmdow": "https://github.com/dhollinger/lutris_installers/releases/download/v1.0.0/cmdow.zip"
    }
  ],
  "game": {
    "arch": "win64",
    "args": "/run /hid xwa.bat",
    "exe": "drive_c/GOG Games/Star Wars - X-Wing Alliance/cmdow.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "task": {
        "arch": "win64",
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "app": "dotnet461",
        "arch": "win64",
        "description": "Installing .NET 4.6.1",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "app": "directplay",
        "arch": "win64",
        "description": "Installing DirectPlay",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Running installer. Please quit the installer at the end, do not run the game until this script finishes installing.",
        "executable": "install",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "extract": {
        "dst": "$CACHE/cmdow",
        "file": "cmdow"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Star Wars - X-Wing Alliance/cmdow.exe",
        "src": "$CACHE/cmdow/bin/Release/cmdow.exe"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Star Wars - X-Wing Alliance/xwa.bat",
        "src": "launcher"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Star Wars - X-Wing Alliance/RadioButtonBox.exe",
        "src": "radiobutton"
      }
    },
    {
      "chmodx": "$GAMEDIR/drive_c/GOG Games/Star Wars - X-Wing Alliance/xwa.bat"
    },
    {
      "chmodx": "$GAMEDIR/drive_c/GOG Games/Star Wars - X-Wing Alliance/RadioButtonBox.exe"
    },
    {
      "task": {
        "arch": "win64",
        "description": "Installing XWA Upgrade 2020",
        "executable": "xwaupgrade",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Installing XWA Upgrade 2020 Patch 2.1",
        "executable": "patch",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "extract": {
        "description": "Prepare XWAHacker",
        "dst": "$CACHE/xwahacker",
        "file": "xwahacker",
        "format": "zip"
      }
    },
    {
      "task": {
        "args": "XWINGALLIANCE.EXE -c 0",
        "executable": "$CACHE/xwahacker/xwahacker.exe",
        "name": "wineexec",
        "prefix": "$GAMEDIR",
        "working_dir": "$GAMEDIR/drive_c/GOG Games/Star Wars - X-Wing Alliance/"
      }
    },
    {
      "task": {
        "args": "XWINGALLIANCE.EXE -c 7",
        "executable": "$CACHE/xwahacker/xwahacker.exe",
        "name": "wineexec",
        "prefix": "$GAMEDIR",
        "working_dir": "$GAMEDIR/drive_c/GOG Games/Star Wars - X-Wing Alliance/"
      }
    },
    {
      "task": {
        "args": "XWINGALLIANCE.EXE -r 3 1920 1080",
        "description": "Set resolution, FoV, and HUD scaling",
        "executable": "$CACHE/xwahacker/xwahacker.exe",
        "name": "wineexec",
        "prefix": "$GAMEDIR",
        "working_dir": "$GAMEDIR/drive_c/GOG Games/Star Wars - X-Wing Alliance/"
      }
    },
    {
      "task": {
        "app": "dxvk",
        "arch": "win64",
        "description": "setup DXVK manually",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "key": "d3d9",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\BabuFriksConfigurator.exe\\DllOverrides",
        "type": "REG_SZ",
        "value": "builtin"
      }
    },
    {
      "task": {
        "key": "d3d9",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\PalpatineTotalConverter.exe\\DllOverrides",
        "type": "REG_SZ",
        "value": "builtin"
      }
    },
    {
      "task": {
        "key": "d3d9",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\AppDefaults\\XWAU2020update_v1.0.exe\\DllOverrides",
        "type": "REG_SZ",
        "value": "builtin"
      }
    },
    {
      "task": {
        "app": "win10",
        "arch": "win64",
        "description": "Setting Windows 10 mode",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    }
  ],
  "system": {
    "env": {
      "DXVK_STATE_CACHE": "0"
    },
    "reset_desktop": true
  },
  "wine": {
    "dxvk": false,
    "overrides": {
      "ddraw.dll": "n, b",
      "dinput.dll": "n, b"
    },
    "version": "lutris-5.6-5-x86_64"
  }
}
Back to game