Installer plants-vs-zombies-garden-warf-origin-with-dxvk

files:
- updater: https://lutris.nyc3.cdn.digitaloceanspaces.com/games/origin/updateorigin.sh
- client: https://download.dm.origin.com/origin/live/OriginSetup.exe
game:
  exe: drive_c/Program Files (x86)/Origin/Origin.exe
  prefix: $GAMEDIR
installer:
- task:
    description: Creating Wine prefix
    name: create_prefix
    prefix: $GAMEDIR
- execute:
    command: mkdir "$GAMEDIR/nv-shaders"
- write_file:
    content: dxgi.nvapiHack = False
    file: $GAMEDIR/dxvk.conf
- chmodx: updater
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Origin
    src: updater
- task:
    app: arial
    name: winetricks
    prefix: $GAMEDIR
- task:
    args: /silent
    description: Installing Origin... Login window will pop-up and close.
    exclude_processes: Origin.exe OriginClientService.exe OriginWebHelperService.exe
      QtWebEngineProcess.exe explorer.exe
    executable: client
    name: wineexec
    prefix: $GAMEDIR
- task:
    name: winekill
    prefix: $GAMEDIR
system:
  env:
    DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
    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
  manual_command: $GAMEDIR/drive_c/Program Files (x86)/Origin/updateorigin.sh
wine:
  overrides:
    nvapi,nvapi64: disabled
description: 'Only sets up Origin and DXVK, you''ll need to download Plants vs. Zombies:
  Garden Warfare 2 manually. Multiplayer works. Origin Ingame overlay has to be disabled
  for the game to be started. Join online friends via friends menu, which starts the
  game.'
game_slug: plants-vs-zombies-garden-warfare-2
gogslug: ''
humblestoreid: ''
installer_slug: plants-vs-zombies-garden-warf-origin-with-dxvk
name: 'Plants vs. Zombies: Garden Warfare 2'
notes: 'Please read before installing: <a href="https://github.com/lutris/lutris/wiki/Game:-Origin">https://github.com/lutris/lutris/wiki/Game:-Origin</a>'
runner: wine
script:
  files:
  - updater: https://lutris.nyc3.cdn.digitaloceanspaces.com/games/origin/updateorigin.sh
  - client: https://download.dm.origin.com/origin/live/OriginSetup.exe
  game:
    exe: drive_c/Program Files (x86)/Origin/Origin.exe
    prefix: $GAMEDIR
  installer:
  - task:
      description: Creating Wine prefix
      name: create_prefix
      prefix: $GAMEDIR
  - execute:
      command: mkdir "$GAMEDIR/nv-shaders"
  - write_file:
      content: dxgi.nvapiHack = False
      file: $GAMEDIR/dxvk.conf
  - chmodx: updater
  - merge:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Origin
      src: updater
  - task:
      app: arial
      name: winetricks
      prefix: $GAMEDIR
  - task:
      args: /silent
      description: Installing Origin... Login window will pop-up and close.
      exclude_processes: Origin.exe OriginClientService.exe OriginWebHelperService.exe
        QtWebEngineProcess.exe explorer.exe
      executable: client
      name: wineexec
      prefix: $GAMEDIR
  - task:
      name: winekill
      prefix: $GAMEDIR
  system:
    env:
      DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
      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
    manual_command: $GAMEDIR/drive_c/Program Files (x86)/Origin/updateorigin.sh
  wine:
    overrides:
      nvapi,nvapi64: disabled
slug: plants-vs-zombies-garden-warf-origin-with-dxvk
steamid: null
version: Origin with DXVK
year: 2016
{
  "game_slug": "plants-vs-zombies-garden-warfare-2",
  "version": "Origin with DXVK",
  "description": "Only sets up Origin and DXVK, you'll need to download Plants vs. Zombies: Garden Warfare 2 manually. Multiplayer works. Origin Ingame overlay has to be disabled for the game to be started. Join online friends via friends menu, which starts the game.",
  "notes": "Please read before installing: <a href=\"https://github.com/lutris/lutris/wiki/Game:-Origin\">https://github.com/lutris/lutris/wiki/Game:-Origin</a>",
  "name": "Plants vs. Zombies: Garden Warfare 2",
  "year": 2016,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "plants-vs-zombies-garden-warf-origin-with-dxvk",
  "installer_slug": "plants-vs-zombies-garden-warf-origin-with-dxvk",
  "script": {
    "files": [
      {
        "updater": "https://lutris.nyc3.cdn.digitaloceanspaces.com/games/origin/updateorigin.sh"
      },
      {
        "client": "https://download.dm.origin.com/origin/live/OriginSetup.exe"
      }
    ],
    "game": {
      "exe": "drive_c/Program Files (x86)/Origin/Origin.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "description": "Creating Wine prefix",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "execute": {
          "command": "mkdir \"$GAMEDIR/nv-shaders\""
        }
      },
      {
        "write_file": {
          "content": "dxgi.nvapiHack = False",
          "file": "$GAMEDIR/dxvk.conf"
        }
      },
      {
        "chmodx": "updater"
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Origin",
          "src": "updater"
        }
      },
      {
        "task": {
          "app": "arial",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "args": "/silent",
          "description": "Installing Origin... Login window will pop-up and close.",
          "exclude_processes": "Origin.exe OriginClientService.exe OriginWebHelperService.exe QtWebEngineProcess.exe explorer.exe",
          "executable": "client",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "name": "winekill",
          "prefix": "$GAMEDIR"
        }
      }
    ],
    "system": {
      "env": {
        "DXVK_CONFIG_FILE": "$GAMEDIR/dxvk.conf",
        "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",
      "manual_command": "$GAMEDIR/drive_c/Program Files (x86)/Origin/updateorigin.sh"
    },
    "wine": {
      "overrides": {
        "nvapi,nvapi64": "disabled"
      }
    }
  }
}
Back to game