Installer battlefield-3-dxvk-reshade

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:
- directx: https://download.microsoft.com/download/1/7/1/1718CCC4-6315-4D8E-9543-8E28A4E18C4C/dxwebsetup.exe
- updater: https://lutris.nyc3.cdn.digitaloceanspaces.com/games/origin/updateorigin.sh
- origin: https://download.dm.origin.com/origin/live/OriginThinSetup.exe
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
- write_file:
    content: dxgi.nvapiHack = False
    file: $GAMEDIR/dxvk.conf
- execute:
    command: mkdir "$GAMEDIR/cache"
- chmodx: updater
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Origin
    src: updater
- task:
    app: win7 vcrun2008 d3dcompiler_47
    arch: win64
    description: Installing prerequisites...
    name: winetricks
    prefix: $GAMEDIR
- task:
    arch: win64
    description: Running DirectX web installer...
    executable: directx
    name: wineexec
    prefix: $GAMEDIR
- task:
    arch: win64
    args: /silent
    description: Installing Origin...
    exclude_processes: QtWebEngineProcess.exe OriginWebHelperService.exe Origin.exe
      OriginClientService.exe
    executable: origin
    name: wineexec
    prefix: $GAMEDIR
- task:
    name: winekill
    prefix: $GAMEDIR
system:
  env:
    DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
    DXVK_HUD: fps
    WINE_LARGE_ADDRESS_AWARE: 1
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR/cache
  exclude_processes: QtWebEngineProcess.exe OriginWebHelperService.exe ActivationUI.exe
  manual_command: $GAMEDIR/drive_c/Program Files (x86)/Origin/updateorigin.sh
wine:
  Desktop: true
  WineDesktop: 1366x768
  dxvk: true
  esync: true
  overrides:
    d3d11,dxgi: native, builtin
    nvapi,nvapi64: disabled
  version: lutris-vkchildwindow-5.0-rc2-x86_64
{
  "files": [
    {
      "directx": "https://download.microsoft.com/download/1/7/1/1718CCC4-6315-4D8E-9543-8E28A4E18C4C/dxwebsetup.exe"
    },
    {
      "updater": "https://lutris.nyc3.cdn.digitaloceanspaces.com/games/origin/updateorigin.sh"
    },
    {
      "origin": "https://download.dm.origin.com/origin/live/OriginThinSetup.exe"
    }
  ],
  "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"
      }
    },
    {
      "write_file": {
        "content": "dxgi.nvapiHack = False",
        "file": "$GAMEDIR/dxvk.conf"
      }
    },
    {
      "execute": {
        "command": "mkdir \"$GAMEDIR/cache\""
      }
    },
    {
      "chmodx": "updater"
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/Program Files (x86)/Origin",
        "src": "updater"
      }
    },
    {
      "task": {
        "app": "win7 vcrun2008 d3dcompiler_47",
        "arch": "win64",
        "description": "Installing prerequisites...",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Running DirectX web installer...",
        "executable": "directx",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win64",
        "args": "/silent",
        "description": "Installing Origin...",
        "exclude_processes": "QtWebEngineProcess.exe OriginWebHelperService.exe Origin.exe OriginClientService.exe",
        "executable": "origin",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    }
  ],
  "system": {
    "env": {
      "DXVK_CONFIG_FILE": "$GAMEDIR/dxvk.conf",
      "DXVK_HUD": "fps",
      "WINE_LARGE_ADDRESS_AWARE": 1,
      "__GL_SHADER_DISK_CACHE": 1,
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR/cache"
    },
    "exclude_processes": "QtWebEngineProcess.exe OriginWebHelperService.exe ActivationUI.exe",
    "manual_command": "$GAMEDIR/drive_c/Program Files (x86)/Origin/updateorigin.sh"
  },
  "wine": {
    "Desktop": true,
    "WineDesktop": "1366x768",
    "dxvk": true,
    "esync": true,
    "overrides": {
      "d3d11,dxgi": "native, builtin",
      "nvapi,nvapi64": "disabled"
    },
    "version": "lutris-vkchildwindow-5.0-rc2-x86_64"
  }
}
Back to game