Installer world-of-warcraft-battlenet-manual-dow

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:
- dxvk: https://github.com/tannisroot/installer-fixes/raw/master/dxvk-wow-fix.tar.xz
- setup: N/A:Select the game's setup file
game:
  arch: win64
  exe: drive_c/Program Files (x86)/Battle.net/Battle.net.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating 64bit Wine prefix.
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $HOME/.local/share/lutris/runtime/dxvk/dxvk-wow-fix
    file: dxvk
- task:
    app: arial
    arch: win64
    description: Installing Arial font
    name: winetricks
    prefix: $GAMEDIR
- task:
    arch: win64
    description: Setting Windows 10 mode for Wine
    key: Version
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine
    prefix: $GAMEDIR
    value: win10
- task:
    arch: win64
    description: 'Wine Staging: Enabling DXVA2'
    key: backend
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\DXVA2
    prefix: $GAMEDIR
    value: va
- task:
    name: winekill
    prefix: $GAMEDIR
- write_json:
    data:
      Client:
        GameLaunchWindowBehavior: '2'
        HardwareAcceleration: 'false'
        Sound:
          Enabled: 'false'
        Streaming:
          StreamingEnabled: 'false'
    description: Disabling Sound/Hardware Acceleration/Streaming in Blizzard App
    file: $GAMEDIR/drive_c/users/$USER/Application Data/Battle.net/Battle.net.config
- task:
    arch: win64
    description: 'Installing Blizzard App

      ------------------------------

      Do not try to log into Battle.net. Lutris will automatically close the login
      window. After Lutris installer is finished, you can start Blizzard App with
      "Launch the game", and install / locate your Blizzard game.'
    exclude_processes: Battle.net.exe Agent.exe "Battle.net Helper.exe"
    executable: setup
    name: wineexec
- task:
    name: winekill
    prefix: $GAMEDIR
system:
  env:
    DXVK_HUD: 0
    DXVK_STATE_CACHE_PATH: $GAMEDIR
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
  exclude_processes: Agent.exe "Battle.net Helper.exe"
wine:
  dxvk: true
  dxvk_version: dxvk-wow-fix
  esync: true
  version: tkg-4.0-x86_64
{
  "game": {
    "exe": "drive_c/Program Files (x86)/Battle.net/Battle.net.exe",
    "arch": "win64",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "task": {
        "description": "Creating 64bit Wine prefix.",
        "name": "create_prefix",
        "arch": "win64",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "extract": {
        "file": "dxvk",
        "dst": "$HOME/.local/share/lutris/runtime/dxvk/dxvk-wow-fix"
      }
    },
    {
      "task": {
        "description": "Installing Arial font",
        "name": "winetricks",
        "arch": "win64",
        "app": "arial",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "description": "Setting Windows 10 mode for Wine",
        "arch": "win64",
        "prefix": "$GAMEDIR",
        "name": "set_regedit",
        "value": "win10",
        "path": "HKEY_CURRENT_USER\\Software\\Wine",
        "key": "Version"
      }
    },
    {
      "task": {
        "description": "Wine Staging: Enabling DXVA2",
        "arch": "win64",
        "prefix": "$GAMEDIR",
        "name": "set_regedit",
        "value": "va",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\DXVA2",
        "key": "backend"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "write_json": {
        "description": "Disabling Sound/Hardware Acceleration/Streaming in Blizzard App",
        "file": "$GAMEDIR/drive_c/users/$USER/Application Data/Battle.net/Battle.net.config",
        "data": {
          "Client": {
            "GameLaunchWindowBehavior": "2",
            "Streaming": {
              "StreamingEnabled": "false"
            },
            "HardwareAcceleration": "false",
            "Sound": {
              "Enabled": "false"
            }
          }
        }
      }
    },
    {
      "task": {
        "exclude_processes": "Battle.net.exe Agent.exe \"Battle.net Helper.exe\"",
        "description": "Installing Blizzard App\n------------------------------\nDo not try to log into Battle.net. Lutris will automatically close the login window. After Lutris installer is finished, you can start Blizzard App with \"Launch the game\", and install / locate your Blizzard game.",
        "arch": "win64",
        "executable": "setup",
        "name": "wineexec"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    }
  ],
  "files": [
    {
      "dxvk": "https://github.com/tannisroot/installer-fixes/raw/master/dxvk-wow-fix.tar.xz"
    },
    {
      "setup": "N/A:Select the game's setup file"
    }
  ],
  "system": {
    "exclude_processes": "Agent.exe \"Battle.net Helper.exe\"",
    "env": {
      "__GL_SHADER_DISK_CACHE": 1,
      "DXVK_HUD": 0,
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR",
      "DXVK_STATE_CACHE_PATH": "$GAMEDIR"
    }
  },
  "wine": {
    "dxvk_version": "dxvk-wow-fix",
    "dxvk": true,
    "esync": true,
    "version": "tkg-4.0-x86_64"
  }
}
Back to game