Installer star-wars-knights-of-the-old-gog-ws-patch-hd-mods

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.

custom-name: Star Wars - Knights of the Old Republic - GOG
files:
- gogsetup: N/A:Please select the exe setup file downloaded from your GOG account.
- inno: https://constexpr.org/innoextract/files/innoextract-1.9/innoextract-1.9-linux.tar.xz
- script: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Star%20Wars%20-%20Knights%20of%20the%20Old%20Republic/clean.sh
game:
  arch: win64
  exe: drive_c/GOG Games/Star Wars - KotOR/swkotor.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    install_gecko: false
    install_mono: false
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $CACHE/innoextract
    file: inno
- execute:
    args: --extract --gog $gogsetup --output-dir "$CACHE/Star Wars - KotOR/"
    file: $CACHE/innoextract/innoextract
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Star Wars - KotOR/
    src: $CACHE/Star Wars - KotOR/
- copy:
    dst: $GAMEDIR/drive_c/GOG Games/Star Wars - KotOR/
    src: $GAMEDIR/drive_c/GOG Games/Star Wars - KotOR/__support/app/swkotor.ini
- write_config:
    data:
      Graphics Options:
        AllowWindowedMode: 1
        Anti Aliasing: 2
        FullScreen: 1
        Height: $RESOLUTION_HEIGHT
        RefreshRate: 60
        Texture Quality: 2
        V-Sync: 1
        Width: $RESOLUTION_WIDTH
    file: $GAMEDIR/drive_c/GOG Games/Star Wars - KotOR/swkotor.ini
- chmodx: script
- execute:
    args: $RESOLUTION_WIDTH $RESOLUTION_HEIGHT
    file: script
- task:
    arch: win64
    key: CSMT
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D\
    prefix: $GAMEDIR
    type: REG_DWORD
    value: '00000000'
- task:
    arch: win64
    key: background
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
wine:
  Desktop: true
{
  "custom-name": "Star Wars - Knights of the Old Republic - GOG",
  "files": [
    {
      "gogsetup": "N/A:Please select the exe setup file downloaded from your GOG account."
    },
    {
      "inno": "https://constexpr.org/innoextract/files/innoextract-1.9/innoextract-1.9-linux.tar.xz"
    },
    {
      "script": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Star%20Wars%20-%20Knights%20of%20the%20Old%20Republic/clean.sh"
    }
  ],
  "game": {
    "arch": "win64",
    "exe": "drive_c/GOG Games/Star Wars - KotOR/swkotor.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "task": {
        "arch": "win64",
        "install_gecko": false,
        "install_mono": false,
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "extract": {
        "dst": "$CACHE/innoextract",
        "file": "inno"
      }
    },
    {
      "execute": {
        "args": "--extract --gog $gogsetup --output-dir \"$CACHE/Star Wars - KotOR/\"",
        "file": "$CACHE/innoextract/innoextract"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Star Wars - KotOR/",
        "src": "$CACHE/Star Wars - KotOR/"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Star Wars - KotOR/",
        "src": "$GAMEDIR/drive_c/GOG Games/Star Wars - KotOR/__support/app/swkotor.ini"
      }
    },
    {
      "write_config": {
        "data": {
          "Graphics Options": {
            "AllowWindowedMode": 1,
            "Anti Aliasing": 2,
            "FullScreen": 1,
            "Height": "$RESOLUTION_HEIGHT",
            "RefreshRate": 60,
            "Texture Quality": 2,
            "V-Sync": 1,
            "Width": "$RESOLUTION_WIDTH"
          }
        },
        "file": "$GAMEDIR/drive_c/GOG Games/Star Wars - KotOR/swkotor.ini"
      }
    },
    {
      "chmodx": "script"
    },
    {
      "execute": {
        "args": "$RESOLUTION_WIDTH $RESOLUTION_HEIGHT",
        "file": "script"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "CSMT",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D\\",
        "prefix": "$GAMEDIR",
        "type": "REG_DWORD",
        "value": "00000000"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "background",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "0 0 0"
      }
    }
  ],
  "wine": {
    "Desktop": true
  }
}
Back to game