Installer battlefield-4-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
- pbuster: http://websec.evenbalance.com/downloads/W/gui/pbsetup.zip
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
- 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 win81
    arch: win64
    name: winetricks
    prefix: $GAMEDIR
- task:
    arch: win64
    args: /silent
    description: Installing Origin... Login window might 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
- extract:
    dst: $GAMEDIR
    file: pbuster
system:
  disable_runtime: false
  env:
    DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
    DXVK_HUD: 0
wine:
  dxvk: true
  esync: true
  overrides:
    nvapi,nvapi64: disabled
    xaudio2_7: native,builtin
  version: tkg-protonified-3.21-x86_64
{
  "system": {
    "env": {
      "DXVK_CONFIG_FILE": "$GAMEDIR/dxvk.conf",
      "DXVK_HUD": 0
    },
    "disable_runtime": false
  },
  "installer": [
    {
      "task": {
        "prefix": "$GAMEDIR",
        "arch": "win64",
        "description": "Creating Wine prefix",
        "name": "create_prefix"
      }
    },
    {
      "input_menu": {
        "options": [
          {
            "Not needed for AMD. Ignore this.": "AMD"
          },
          {
            "dxgi.customVendorId = 10de\ndxgi.nvapiHack = False": "Nvidia"
          }
        ],
        "id": "GPU",
        "description": "Setting DXVK workarounds please choose your GPU:",
        "preselect": "Not needed for AMD. Ignore this."
      }
    },
    {
      "write_file": {
        "file": "$GAMEDIR/dxvk.conf",
        "content": "$INPUT_GPU"
      }
    },
    {
      "task": {
        "app": "nocrashdialog win81",
        "prefix": "$GAMEDIR",
        "arch": "win64",
        "name": "winetricks"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Installing Origin... Login window might pop-up and close.",
        "executable": "client",
        "prefix": "$GAMEDIR",
        "exclude_processes": "Origin.exe OriginClientService.exe OriginWebHelperService.exe QtWebEngineProcess.exe",
        "args": "/silent",
        "name": "wineexec"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "arch": "win64",
        "name": "winekill"
      }
    },
    {
      "chmodx": "updater"
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/Program Files (x86)/Origin",
        "src": "updater"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR",
        "file": "pbuster"
      }
    }
  ],
  "game": {
    "prefix": "$GAMEDIR",
    "arch": "win64",
    "exe": "drive_c/Program Files (x86)/Origin/Origin.exe"
  },
  "wine": {
    "esync": true,
    "dxvk": true,
    "overrides": {
      "nvapi,nvapi64": "disabled",
      "xaudio2_7": "native,builtin"
    },
    "version": "tkg-protonified-3.21-x86_64"
  },
  "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"
    },
    {
      "pbuster": "http://websec.evenbalance.com/downloads/W/gui/pbsetup.zip"
    }
  ]
}
Back to game