Installer madden-nfl-19-origin-w-dxvk

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:
- client: https://origin-a.akamaihd.net/Origin-Client-Download/origin/live/OriginThinSetup.exe
- updater: https://raw.githubusercontent.com/DrDoctor13/wine-origin-updater/master/updateorigin.sh
game:
  arch: win64
  exe: drive_c/Program Files (x86)/Origin/Origin.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating Wine prefix
    name: create_prefix
    prefix: $GAMEDIR
- execute:
    command: mkdir "$GAMEDIR/nv-shaders"
- input_menu:
    description: 'Setting DXVK workarounds please choose your GPU:'
    id: GPU
    options:
    - '#Not needed for AMD. Ignore this.': AMD
    - ? 'dxgi.nvapiHack = False

        d3d11.zeroInitWorkgroupMemory = True'
      : Nvidia
    preselect: '#Not needed for AMD. Ignore this.'
- write_file:
    content: $INPUT_GPU
    file: $GAMEDIR/dxvk.conf
- task:
    app: nocrashdialog vcrun2017 win7
    arch: win64
    name: winetricks
    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:
  env:
    DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
    DXVK_HUD: 0
    STAGING_SHARED_MEMORY: 0
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR/nv-shaders
  exclude_processes: QtWebEngineProcess.exe ActivationUI.exe OriginWebHelperService.exe
wine:
  dxvk: true
  overrides:
    nvapi,nvapi64: disabled
    xaudio2_7: native,builtin
  version: tkg-protonified-3.21-x86_64
{
  "wine": {
    "dxvk": true,
    "overrides": {
      "xaudio2_7": "native,builtin",
      "nvapi,nvapi64": "disabled"
    },
    "version": "tkg-protonified-3.21-x86_64"
  },
  "installer": [
    {
      "task": {
        "description": "Creating Wine prefix",
        "prefix": "$GAMEDIR",
        "name": "create_prefix",
        "arch": "win64"
      }
    },
    {
      "execute": {
        "command": "mkdir \"$GAMEDIR/nv-shaders\""
      }
    },
    {
      "input_menu": {
        "preselect": "#Not needed for AMD. Ignore this.",
        "description": "Setting DXVK workarounds please choose your GPU:",
        "id": "GPU",
        "options": [
          {
            "#Not needed for AMD. Ignore this.": "AMD"
          },
          {
            "dxgi.nvapiHack = False\nd3d11.zeroInitWorkgroupMemory = True": "Nvidia"
          }
        ]
      }
    },
    {
      "write_file": {
        "file": "$GAMEDIR/dxvk.conf",
        "content": "$INPUT_GPU"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "name": "winetricks",
        "arch": "win64",
        "app": "nocrashdialog vcrun2017 win7"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "description": "Installing Origin... Login window will pop-up and close.",
        "exclude_processes": "Origin.exe OriginClientService.exe OriginWebHelperService.exe QtWebEngineProcess.exe",
        "executable": "client",
        "arch": "win64",
        "name": "wineexec",
        "args": "/silent"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "name": "winekill",
        "arch": "win64"
      }
    },
    {
      "chmodx": "updater"
    },
    {
      "merge": {
        "src": "updater",
        "dst": "$GAMEDIR/drive_c/Program Files (x86)/Origin"
      }
    }
  ],
  "system": {
    "env": {
      "DXVK_HUD": 0,
      "DXVK_CONFIG_FILE": "$GAMEDIR/dxvk.conf",
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR/nv-shaders",
      "STAGING_SHARED_MEMORY": 0,
      "__GL_SHADER_DISK_CACHE": 1
    },
    "exclude_processes": "QtWebEngineProcess.exe ActivationUI.exe OriginWebHelperService.exe"
  },
  "files": [
    {
      "client": "https://origin-a.akamaihd.net/Origin-Client-Download/origin/live/OriginThinSetup.exe"
    },
    {
      "updater": "https://raw.githubusercontent.com/DrDoctor13/wine-origin-updater/master/updateorigin.sh"
    }
  ],
  "game": {
    "exe": "drive_c/Program Files (x86)/Origin/Origin.exe",
    "prefix": "$GAMEDIR",
    "arch": "win64"
  }
}
Back to game