Installer need-for-speed-payback-dxvk

files:
- client: https://origin-a.akamaihd.net/Origin-Client-Download/origin/live/OriginThinSetup.exe
- dumbxemu: https://gitlab.com/cxf_/lutris_files/raw/master/old-dumbxinputemu.zip
- updater: https://raw.githubusercontent.com/DrDoctor13/wine-origin-updater/master/updateorigin.sh
- xreg: https://gitlab.com/cxf_/lutris_files/raw/master/xinput.reg
game:
  arch: win64
  exe: drive_c/Program Files (x86)/Origin/Origin.exe
  prefix: $GAMEDIR
installer:
- extract:
    dst: $CACHE
    file: dumbxemu
- task:
    arch: win64
    description: Creating Wine prefix
    name: create_prefix
    prefix: $GAMEDIR
- input_menu:
    description: 'Setting DXVK workarounds please choose your GPU:'
    id: GPU
    options:
    - Not needed for AMD. Ignore this.: AMD
    - ? 'dxgi.customVendorId = 10de

        dxgi.nvapiHack = False'
      : Nvidia
    preselect: Not needed for AMD. Ignore this.
- write_file:
    content: $INPUT_GPU
    file: $GAMEDIR/dxvk.conf
- task:
    app: nocrashdialog win7
    arch: win64
    name: winetricks
    prefix: $GAMEDIR
- move:
    dst: $GAMEDIR/drive_c/windows/system32
    src: $CACHE/x64/xinput9_1_0_fake.dll
- move:
    dst: $GAMEDIR/drive_c/windows/system32
    src: $CACHE/x64/xinput1_3_fake.dll
- move:
    dst: $GAMEDIR/drive_c/windows/syswow64
    src: $CACHE/x32/xinput1_3_fake.dll
- move:
    dst: $GAMEDIR/drive_c/windows/syswow64
    src: $CACHE/x32/xinput9_1_0_fake.dll
- task:
    arch: win64
    filename: xreg
    name: set_regedit_file
    prefix: $GAMEDIR
- task:
    arch: win64
    args: /silent
    description: Installing Origin... Login window will pop-up and close.
    exclude_processes: Origin.exe OriginClientService.exe OriginWebHelperService.exe
      QtWebEngineProcess.exe
    executable: client
    name: wineexec
    prefix: $GAMEDIR
- task:
    arch: win64
    name: winekill
    prefix: $GAMEDIR
- chmodx: updater
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Origin
    src: updater
system:
  disable_runtime: false
  env:
    DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
    DXVK_HUD: 0
wine:
  overrides:
    nvapi,nvapi64: disabled
    xaudio2_7: native,builtin
description: Only sets up Origin and DXVK you'll need to download Need for Speed Payback
  manually.
game_slug: need-for-speed-payback
gogslug: ''
humblestoreid: ''
installer_slug: need-for-speed-payback-dxvk
name: Need for Speed Payback
notes: "Virtual desktop required.\r\n\r\nPlease read before installing: https://github.com/lutris/lutris/wiki/Game:-Origin"
runner: wine
script:
  files:
  - client: https://origin-a.akamaihd.net/Origin-Client-Download/origin/live/OriginThinSetup.exe
  - dumbxemu: https://gitlab.com/cxf_/lutris_files/raw/master/old-dumbxinputemu.zip
  - updater: https://raw.githubusercontent.com/DrDoctor13/wine-origin-updater/master/updateorigin.sh
  - xreg: https://gitlab.com/cxf_/lutris_files/raw/master/xinput.reg
  game:
    arch: win64
    exe: drive_c/Program Files (x86)/Origin/Origin.exe
    prefix: $GAMEDIR
  installer:
  - extract:
      dst: $CACHE
      file: dumbxemu
  - task:
      arch: win64
      description: Creating Wine prefix
      name: create_prefix
      prefix: $GAMEDIR
  - input_menu:
      description: 'Setting DXVK workarounds please choose your GPU:'
      id: GPU
      options:
      - Not needed for AMD. Ignore this.: AMD
      - ? 'dxgi.customVendorId = 10de

          dxgi.nvapiHack = False'
        : Nvidia
      preselect: Not needed for AMD. Ignore this.
  - write_file:
      content: $INPUT_GPU
      file: $GAMEDIR/dxvk.conf
  - task:
      app: nocrashdialog win7
      arch: win64
      name: winetricks
      prefix: $GAMEDIR
  - move:
      dst: $GAMEDIR/drive_c/windows/system32
      src: $CACHE/x64/xinput9_1_0_fake.dll
  - move:
      dst: $GAMEDIR/drive_c/windows/system32
      src: $CACHE/x64/xinput1_3_fake.dll
  - move:
      dst: $GAMEDIR/drive_c/windows/syswow64
      src: $CACHE/x32/xinput1_3_fake.dll
  - move:
      dst: $GAMEDIR/drive_c/windows/syswow64
      src: $CACHE/x32/xinput9_1_0_fake.dll
  - task:
      arch: win64
      filename: xreg
      name: set_regedit_file
      prefix: $GAMEDIR
  - task:
      arch: win64
      args: /silent
      description: Installing Origin... Login window will pop-up and close.
      exclude_processes: Origin.exe OriginClientService.exe OriginWebHelperService.exe
        QtWebEngineProcess.exe
      executable: client
      name: wineexec
      prefix: $GAMEDIR
  - task:
      arch: win64
      name: winekill
      prefix: $GAMEDIR
  - chmodx: updater
  - merge:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Origin
      src: updater
  system:
    disable_runtime: false
    env:
      DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
      DXVK_HUD: 0
  wine:
    overrides:
      nvapi,nvapi64: disabled
      xaudio2_7: native,builtin
slug: need-for-speed-payback-dxvk
steamid: null
version: DXVK
year: 2017
{
  "game_slug": "need-for-speed-payback",
  "version": "DXVK",
  "description": "Only sets up Origin and DXVK you'll need to download Need for Speed Payback manually.",
  "notes": "Virtual desktop required.\r\n\r\nPlease read before installing: https://github.com/lutris/lutris/wiki/Game:-Origin",
  "name": "Need for Speed Payback",
  "year": 2017,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "need-for-speed-payback-dxvk",
  "installer_slug": "need-for-speed-payback-dxvk",
  "script": {
    "files": [
      {
        "client": "https://origin-a.akamaihd.net/Origin-Client-Download/origin/live/OriginThinSetup.exe"
      },
      {
        "dumbxemu": "https://gitlab.com/cxf_/lutris_files/raw/master/old-dumbxinputemu.zip"
      },
      {
        "updater": "https://raw.githubusercontent.com/DrDoctor13/wine-origin-updater/master/updateorigin.sh"
      },
      {
        "xreg": "https://gitlab.com/cxf_/lutris_files/raw/master/xinput.reg"
      }
    ],
    "game": {
      "arch": "win64",
      "exe": "drive_c/Program Files (x86)/Origin/Origin.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "extract": {
          "dst": "$CACHE",
          "file": "dumbxemu"
        }
      },
      {
        "task": {
          "arch": "win64",
          "description": "Creating Wine prefix",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "input_menu": {
          "description": "Setting DXVK workarounds please choose your GPU:",
          "id": "GPU",
          "options": [
            {
              "Not needed for AMD. Ignore this.": "AMD"
            },
            {
              "dxgi.customVendorId = 10de\ndxgi.nvapiHack = False": "Nvidia"
            }
          ],
          "preselect": "Not needed for AMD. Ignore this."
        }
      },
      {
        "write_file": {
          "content": "$INPUT_GPU",
          "file": "$GAMEDIR/dxvk.conf"
        }
      },
      {
        "task": {
          "app": "nocrashdialog win7",
          "arch": "win64",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/windows/system32",
          "src": "$CACHE/x64/xinput9_1_0_fake.dll"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/windows/system32",
          "src": "$CACHE/x64/xinput1_3_fake.dll"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/windows/syswow64",
          "src": "$CACHE/x32/xinput1_3_fake.dll"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/windows/syswow64",
          "src": "$CACHE/x32/xinput9_1_0_fake.dll"
        }
      },
      {
        "task": {
          "arch": "win64",
          "filename": "xreg",
          "name": "set_regedit_file",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "arch": "win64",
          "args": "/silent",
          "description": "Installing Origin... Login window will pop-up and close.",
          "exclude_processes": "Origin.exe OriginClientService.exe OriginWebHelperService.exe QtWebEngineProcess.exe",
          "executable": "client",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "arch": "win64",
          "name": "winekill",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "chmodx": "updater"
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Origin",
          "src": "updater"
        }
      }
    ],
    "system": {
      "disable_runtime": false,
      "env": {
        "DXVK_CONFIG_FILE": "$GAMEDIR/dxvk.conf",
        "DXVK_HUD": 0
      }
    },
    "wine": {
      "overrides": {
        "nvapi,nvapi64": "disabled",
        "xaudio2_7": "native,builtin"
      }
    }
  }
}
Back to game