Installer overwatch-2-battlenet

files:
- cache-updater: https://lutris.nyc3.cdn.digitaloceanspaces.com/games/overwatch/state-cache-update.sh
- dxvkcache: https://lutris.nyc3.cdn.digitaloceanspaces.com/games/overwatch/Overwatch.tar.xz
game:
  arch: win64
  args: --exec="launch Pro"
  exe: drive_c/Program Files (x86)/Battle.net/Battle.net.exe
  prefix: $GAMEDIR
installer:
- extract:
    description: Extracting DXVK state cache
    dst: $GAMEDIR
    file: dxvkcache
- write_file:
    content: '#!/bin/bash

      date="$(wget --server-response --spider https://lutris.nyc3.cdn.digitaloceanspaces.com/games/overwatch/Overwatch.tar.xz
      2>&1 | sed -n "s/  Last-Modified: //p")"

      date="$(date -d "$date" +%s)"

      echo "$date" > ./state-cache-merge/.state-cache-timestamp'
    file: $GAMEDIR/timestamp.sh
- merge:
    dst: $GAMEDIR/state-cache-merge
    src: cache-updater
- chmodx: $GAMEDIR/state-cache-merge/state-cache-update.sh
- chmodx: $GAMEDIR/timestamp.sh
- execute:
    file: $GAMEDIR/timestamp.sh
- move:
    dst: $CACHE
    src: $GAMEDIR/timestamp.sh
requires: blizzard-battlenet-standard
system:
  env:
    DXVK_HUD: compiler
    DXVK_STATE_CACHE_PATH: $GAMEDIR
    STAGING_SHARED_MEMORY: 1
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
    __GL_SHADER_DISK_CACHE_SKIP_CLEANUP: 1
  manual_command: $GAMEDIR/state-cache-merge/state-cache-update.sh
wine:
  battleye: false
  eac: false
  fsr: false
description: Script for existing install of Battle.net
game_slug: overwatch-2
gogslug: ''
humblestoreid: ''
installer_slug: overwatch-2-battlenet
name: Overwatch 2
notes: "**CONFIGURE AND INSTALL THE DEPENDENCIES FIRST**\r\n- Instructions for Vulkan\
  \ support:\r\nhttps://github.com/lutris/lutris/wiki/Installing-drivers\r\n- Instructions\
  \ to install 32 bits libraries dependencies:\r\nhttps://github.com/lutris/docs/blob/master/WineDependencies.md\r\
  \n- Instructions for proper functionality of Battle.Net (+ common problems)\r\n\
  https://github.com/lutris/docs/blob/master/Battle.Net.md\r\n**IMPORTANT NOTES**\r\
  \n- The installer provides a pre-generated DXVK state cache to provide stutter-free\
  \ experience. As a result, it will cause a temporary performance hit while the shaders\
  \ are being compiled. The FPS will rise back up after it has finished. \r\n **TROUBLESHOOTING**\r\
  \nFor game-specific troubleshooting information and minimum requirements, read Overwatch\
  \ page on Lutris Wiki: https://github.com/lutris/lutris/wiki/Game:-Overwatch\r\n\
  - if you encounter issues with this script installer, please report them on Lutris\
  \ Discord server, channel #lutris_support"
runner: wine
script:
  files:
  - cache-updater: https://lutris.nyc3.cdn.digitaloceanspaces.com/games/overwatch/state-cache-update.sh
  - dxvkcache: https://lutris.nyc3.cdn.digitaloceanspaces.com/games/overwatch/Overwatch.tar.xz
  game:
    arch: win64
    args: --exec="launch Pro"
    exe: drive_c/Program Files (x86)/Battle.net/Battle.net.exe
    prefix: $GAMEDIR
  installer:
  - extract:
      description: Extracting DXVK state cache
      dst: $GAMEDIR
      file: dxvkcache
  - write_file:
      content: '#!/bin/bash

        date="$(wget --server-response --spider https://lutris.nyc3.cdn.digitaloceanspaces.com/games/overwatch/Overwatch.tar.xz
        2>&1 | sed -n "s/  Last-Modified: //p")"

        date="$(date -d "$date" +%s)"

        echo "$date" > ./state-cache-merge/.state-cache-timestamp'
      file: $GAMEDIR/timestamp.sh
  - merge:
      dst: $GAMEDIR/state-cache-merge
      src: cache-updater
  - chmodx: $GAMEDIR/state-cache-merge/state-cache-update.sh
  - chmodx: $GAMEDIR/timestamp.sh
  - execute:
      file: $GAMEDIR/timestamp.sh
  - move:
      dst: $CACHE
      src: $GAMEDIR/timestamp.sh
  requires: blizzard-battlenet-standard
  system:
    env:
      DXVK_HUD: compiler
      DXVK_STATE_CACHE_PATH: $GAMEDIR
      STAGING_SHARED_MEMORY: 1
      __GL_SHADER_DISK_CACHE: 1
      __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
      __GL_SHADER_DISK_CACHE_SKIP_CLEANUP: 1
    manual_command: $GAMEDIR/state-cache-merge/state-cache-update.sh
  wine:
    battleye: false
    eac: false
    fsr: false
slug: overwatch-2-battlenet
steamid: 2357570
version: Battle.net
year: 2022
{
  "game_slug": "overwatch-2",
  "version": "Battle.net",
  "description": "Script for existing install of Battle.net",
  "notes": "**CONFIGURE AND INSTALL THE DEPENDENCIES FIRST**\r\n- Instructions for Vulkan support:\r\nhttps://github.com/lutris/lutris/wiki/Installing-drivers\r\n- Instructions to install 32 bits libraries dependencies:\r\nhttps://github.com/lutris/docs/blob/master/WineDependencies.md\r\n- Instructions for proper functionality of Battle.Net (+ common problems)\r\nhttps://github.com/lutris/docs/blob/master/Battle.Net.md\r\n**IMPORTANT NOTES**\r\n- The installer provides a pre-generated DXVK state cache to provide stutter-free experience. As a result, it will cause a temporary performance hit while the shaders are being compiled. The FPS will rise back up after it has finished. \r\n **TROUBLESHOOTING**\r\nFor game-specific troubleshooting information and minimum requirements, read Overwatch page on Lutris Wiki: https://github.com/lutris/lutris/wiki/Game:-Overwatch\r\n- if you encounter issues with this script installer, please report them on Lutris Discord server, channel #lutris_support",
  "name": "Overwatch 2",
  "year": 2022,
  "steamid": 2357570,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "overwatch-2-battlenet",
  "installer_slug": "overwatch-2-battlenet",
  "script": {
    "files": [
      {
        "cache-updater": "https://lutris.nyc3.cdn.digitaloceanspaces.com/games/overwatch/state-cache-update.sh"
      },
      {
        "dxvkcache": "https://lutris.nyc3.cdn.digitaloceanspaces.com/games/overwatch/Overwatch.tar.xz"
      }
    ],
    "game": {
      "arch": "win64",
      "args": "--exec=\"launch Pro\"",
      "exe": "drive_c/Program Files (x86)/Battle.net/Battle.net.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "extract": {
          "description": "Extracting DXVK state cache",
          "dst": "$GAMEDIR",
          "file": "dxvkcache"
        }
      },
      {
        "write_file": {
          "content": "#!/bin/bash\ndate=\"$(wget --server-response --spider https://lutris.nyc3.cdn.digitaloceanspaces.com/games/overwatch/Overwatch.tar.xz 2>&1 | sed -n \"s/  Last-Modified: //p\")\"\ndate=\"$(date -d \"$date\" +%s)\"\necho \"$date\" > ./state-cache-merge/.state-cache-timestamp",
          "file": "$GAMEDIR/timestamp.sh"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/state-cache-merge",
          "src": "cache-updater"
        }
      },
      {
        "chmodx": "$GAMEDIR/state-cache-merge/state-cache-update.sh"
      },
      {
        "chmodx": "$GAMEDIR/timestamp.sh"
      },
      {
        "execute": {
          "file": "$GAMEDIR/timestamp.sh"
        }
      },
      {
        "move": {
          "dst": "$CACHE",
          "src": "$GAMEDIR/timestamp.sh"
        }
      }
    ],
    "requires": "blizzard-battlenet-standard",
    "system": {
      "env": {
        "DXVK_HUD": "compiler",
        "DXVK_STATE_CACHE_PATH": "$GAMEDIR",
        "STAGING_SHARED_MEMORY": 1,
        "__GL_SHADER_DISK_CACHE": 1,
        "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR",
        "__GL_SHADER_DISK_CACHE_SKIP_CLEANUP": 1
      },
      "manual_command": "$GAMEDIR/state-cache-merge/state-cache-update.sh"
    },
    "wine": {
      "battleye": false,
      "eac": false,
      "fsr": false
    }
  }
}
Back to game