Installer overwatch-chinese

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:
- setup:
    filename: Battle.net-Setup-CN.exe
    url: https://www.battlenet.com.cn/download/getInstaller?os=win&installer=Battle.net-Setup-CN.exe
- dxvkcache: https://github.com/tannisroot/dxvk-caches/raw/master/Overwatch.tar.xz
game:
  arch: win64
  args: --exec="launch Pro"
  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
- task:
    app: arial
    arch: win64
    description: Installing Arial font...
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- 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:
    name: winekill
    prefix: $GAMEDIR
- write_json:
    data:
      Client:
        GameLaunchWindowBehavior: '2'
        GameSearch:
          BackgroundSearch: 'true'
        HardwareAcceleration: 'false'
        Sound:
          Enabled: 'false'
        Streaming:
          StreamingEnabled: 'false'
    description: Writing a Battle.Net config file
    file: $GAMEDIR/drive_c/users/$USER/Application Data/Battle.net/Battle.net.config
- write_config:
    description: Enabling Borderless Windowed mode
    file: $GAMEDIR/drive_c/users/$USER/My Documents/Overwatch/Settings/Settings_v0.ini
    key: WindowMode
    section: Render.13
    value: '"1"'
- write_config:
    description: Switching to WEBM format for saving Highlights
    file: $GAMEDIR/drive_c/users/$USER/My Documents/Overwatch/Settings/Settings_v0.ini
    key: Type
    section: MovieExport.1
    value: '"1"'
- write_config:
    description: Disabling hardware acceleration for saving Highlights
    file: $GAMEDIR/drive_c/users/$USER/My Documents/Overwatch/Settings/Settings_v0.ini
    key: UseHardware
    section: MovieExport.1
    value: '"0"'
- task:
    arch: win64
    description: 'Wine Staging: Enabling DXVA2'
    key: backend
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\DXVA2
    prefix: $GAMEDIR
    value: va
- extract:
    description: Extracting DXVK state cache
    dst: $GAMEDIR
    file: dxvkcache
- task:
    name: winekill
    prefix: $GAMEDIR
- task:
    arch: win64
    description: 'Installing Blizzard App. An installer will open.

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

      To progress, manually continue installation in that window.'
    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
  esync: true
  overrides:
    d3d12: disabled
    nvapi: disabled
    nvapi64: disabled
  version: tkg-4.0-x86_64
{
  "system": {
    "exclude_processes": "Agent.exe \"Battle.net Helper.exe\"",
    "env": {
      "__GL_SHADER_DISK_CACHE": 1,
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR",
      "DXVK_HUD": 0,
      "DXVK_STATE_CACHE_PATH": "$GAMEDIR"
    }
  },
  "game": {
    "prefix": "$GAMEDIR",
    "args": "--exec=\"launch Pro\"",
    "arch": "win64",
    "exe": "drive_c/Program Files (x86)/Battle.net/Battle.net.exe"
  },
  "installer": [
    {
      "task": {
        "prefix": "$GAMEDIR",
        "arch": "win64",
        "description": "Creating 64bit Wine prefix.",
        "name": "create_prefix"
      }
    },
    {
      "task": {
        "silent": true,
        "arch": "win64",
        "description": "Installing Arial font...",
        "prefix": "$GAMEDIR",
        "app": "arial",
        "name": "winetricks"
      }
    },
    {
      "task": {
        "name": "set_regedit",
        "description": "Setting Windows 10 mode for Wine",
        "prefix": "$GAMEDIR",
        "arch": "win64",
        "value": "win10",
        "path": "HKEY_CURRENT_USER\\Software\\Wine",
        "key": "Version"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "name": "winekill"
      }
    },
    {
      "write_json": {
        "file": "$GAMEDIR/drive_c/users/$USER/Application Data/Battle.net/Battle.net.config",
        "description": "Writing a Battle.Net config file",
        "data": {
          "Client": {
            "HardwareAcceleration": "false",
            "Streaming": {
              "StreamingEnabled": "false"
            },
            "Sound": {
              "Enabled": "false"
            },
            "GameLaunchWindowBehavior": "2",
            "GameSearch": {
              "BackgroundSearch": "true"
            }
          }
        }
      }
    },
    {
      "write_config": {
        "description": "Enabling Borderless Windowed mode",
        "file": "$GAMEDIR/drive_c/users/$USER/My Documents/Overwatch/Settings/Settings_v0.ini",
        "value": "\"1\"",
        "section": "Render.13",
        "key": "WindowMode"
      }
    },
    {
      "write_config": {
        "description": "Switching to WEBM format for saving Highlights",
        "file": "$GAMEDIR/drive_c/users/$USER/My Documents/Overwatch/Settings/Settings_v0.ini",
        "value": "\"1\"",
        "section": "MovieExport.1",
        "key": "Type"
      }
    },
    {
      "write_config": {
        "description": "Disabling hardware acceleration for saving Highlights",
        "file": "$GAMEDIR/drive_c/users/$USER/My Documents/Overwatch/Settings/Settings_v0.ini",
        "value": "\"0\"",
        "section": "MovieExport.1",
        "key": "UseHardware"
      }
    },
    {
      "task": {
        "name": "set_regedit",
        "description": "Wine Staging: Enabling DXVA2",
        "prefix": "$GAMEDIR",
        "arch": "win64",
        "value": "va",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\DXVA2",
        "key": "backend"
      }
    },
    {
      "extract": {
        "file": "dxvkcache",
        "dst": "$GAMEDIR",
        "description": "Extracting DXVK state cache"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "name": "winekill"
      }
    },
    {
      "task": {
        "description": "Installing Blizzard App. An installer will open.\n------------------------------\nTo progress, manually continue installation in that window.",
        "exclude_processes": "Battle.net.exe Agent.exe \"Battle.net Helper.exe\"",
        "arch": "win64",
        "executable": "setup",
        "name": "wineexec"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "name": "winekill"
      }
    }
  ],
  "wine": {
    "version": "tkg-4.0-x86_64",
    "overrides": {
      "nvapi": "disabled",
      "nvapi64": "disabled",
      "d3d12": "disabled"
    },
    "esync": true,
    "dxvk": true
  },
  "files": [
    {
      "setup": {
        "url": "https://www.battlenet.com.cn/download/getInstaller?os=win&installer=Battle.net-Setup-CN.exe",
        "filename": "Battle.net-Setup-CN.exe"
      }
    },
    {
      "dxvkcache": "https://github.com/tannisroot/dxvk-caches/raw/master/Overwatch.tar.xz"
    }
  ]
}
Back to game