Installer prince-of-persia-warrior-with-uplay

files:
- dx2010: https://lutris.net/files/tools/directx-2010.tar.gz
- uplay: https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UplayInstaller.exe
game:
  arch: win64
  args: uplay://launch/121/0
  exe: drive_c/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/Uplay.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    name: create_prefix
    prefix: $GAMEDIR
- write_file:
    content: "overlay: \n  enabled: false\n"
    file: $GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/Ubisoft Game
      Launcher/settings.yml
- input_menu:
    description: 'Setting DXVK workarounds please choose your GPU:'
    id: GPU
    options:
    - dxgi.maxFrameLatency = 1: AMD
    - ? 'dxgi.customVendorId = 10de

        dxgi.nvapiHack = False

        dxgi.FrameLatency = 1'
      : Nvidia
    preselect: dxgi.maxFrameLatency = 1
- write_file:
    content: $INPUT_GPU
    file: $GAMEDIR/dxvk.conf
- extract:
    dst: $CACHE/dxsetup
    file: dx2010
- task:
    arch: win64
    args: /silent
    executable: $CACHE/dxsetup/DXSETUP.exe
    name: wineexec
    prefix: $GAMEDIR
- task:
    app: arial win7 d3dcompiler_43
    name: winetricks
    prefix: $GAMEDIR
- task:
    args: /S
    executable: uplay
    name: wineexec
    prefix: $GAMEDIR
system:
  env:
    DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
    DXVK_HUD: compiler
wine:
  overrides:
    nvapi,nvapi64: disabled
description: Uplay Installer for PoP Warrior Within.
game_slug: prince-of-persia-warrior-within
gogslug: prince_of_persia_warrior_within
humblestoreid: ''
installer_slug: prince-of-persia-warrior-with-uplay
name: 'Prince of Persia: Warrior Within'
notes: Will launch on first boot.
runner: wine
script:
  files:
  - dx2010: https://lutris.net/files/tools/directx-2010.tar.gz
  - uplay: https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UplayInstaller.exe
  game:
    arch: win64
    args: uplay://launch/121/0
    exe: drive_c/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/Uplay.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      name: create_prefix
      prefix: $GAMEDIR
  - write_file:
      content: "overlay: \n  enabled: false\n"
      file: $GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/Ubisoft Game
        Launcher/settings.yml
  - input_menu:
      description: 'Setting DXVK workarounds please choose your GPU:'
      id: GPU
      options:
      - dxgi.maxFrameLatency = 1: AMD
      - ? 'dxgi.customVendorId = 10de

          dxgi.nvapiHack = False

          dxgi.FrameLatency = 1'
        : Nvidia
      preselect: dxgi.maxFrameLatency = 1
  - write_file:
      content: $INPUT_GPU
      file: $GAMEDIR/dxvk.conf
  - extract:
      dst: $CACHE/dxsetup
      file: dx2010
  - task:
      arch: win64
      args: /silent
      executable: $CACHE/dxsetup/DXSETUP.exe
      name: wineexec
      prefix: $GAMEDIR
  - task:
      app: arial win7 d3dcompiler_43
      name: winetricks
      prefix: $GAMEDIR
  - task:
      args: /S
      executable: uplay
      name: wineexec
      prefix: $GAMEDIR
  system:
    env:
      DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
      DXVK_HUD: compiler
  wine:
    overrides:
      nvapi,nvapi64: disabled
slug: prince-of-persia-warrior-with-uplay
steamid: 13500
version: UPlay
year: 2004
{
  "game_slug": "prince-of-persia-warrior-within",
  "version": "UPlay",
  "description": "Uplay Installer for PoP Warrior Within.",
  "notes": "Will launch on first boot.",
  "name": "Prince of Persia: Warrior Within",
  "year": 2004,
  "steamid": 13500,
  "gogslug": "prince_of_persia_warrior_within",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "prince-of-persia-warrior-with-uplay",
  "installer_slug": "prince-of-persia-warrior-with-uplay",
  "script": {
    "files": [
      {
        "dx2010": "https://lutris.net/files/tools/directx-2010.tar.gz"
      },
      {
        "uplay": "https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UplayInstaller.exe"
      }
    ],
    "game": {
      "arch": "win64",
      "args": "uplay://launch/121/0",
      "exe": "drive_c/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/Uplay.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "write_file": {
          "content": "overlay: \n  enabled: false\n",
          "file": "$GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/Ubisoft Game Launcher/settings.yml"
        }
      },
      {
        "input_menu": {
          "description": "Setting DXVK workarounds please choose your GPU:",
          "id": "GPU",
          "options": [
            {
              "dxgi.maxFrameLatency = 1": "AMD"
            },
            {
              "dxgi.customVendorId = 10de\ndxgi.nvapiHack = False\ndxgi.FrameLatency = 1": "Nvidia"
            }
          ],
          "preselect": "dxgi.maxFrameLatency = 1"
        }
      },
      {
        "write_file": {
          "content": "$INPUT_GPU",
          "file": "$GAMEDIR/dxvk.conf"
        }
      },
      {
        "extract": {
          "dst": "$CACHE/dxsetup",
          "file": "dx2010"
        }
      },
      {
        "task": {
          "arch": "win64",
          "args": "/silent",
          "executable": "$CACHE/dxsetup/DXSETUP.exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "app": "arial win7 d3dcompiler_43",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "args": "/S",
          "executable": "uplay",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      }
    ],
    "system": {
      "env": {
        "DXVK_CONFIG_FILE": "$GAMEDIR/dxvk.conf",
        "DXVK_HUD": "compiler"
      }
    },
    "wine": {
      "overrides": {
        "nvapi,nvapi64": "disabled"
      }
    }
  }
}
Back to game