Installer watch-dogs-2-ubisoft-connect

files:
- dx2010: https://lutris.net/files/tools/directx-2010.tar.gz
- ubiconnect: https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UbisoftConnectInstaller.exe
- cache: https://github.com/Cervoxx/DXVKCACHE/raw/master/WD2-cache.tar.xz
game:
  arch: win64
  args: uplay://launch/2688/0 -eac_launcher -nosplash
  exe: drive_c/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/UbisoftConnect.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating 64bit Wine prefix...
    name: create_prefix
    prefix: $GAMEDIR
- write_file:
    content: "overlay: \n  enabled: false\n"
    file: $GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/Ubisoft Game
      Launcher/settings.yml
- extract:
    dst: $CACHE/dxsetup
    file: dx2010
- extract:
    dst: $GAMEDIR
    file: cache
- task:
    arch: win64
    args: /silent
    description: Installing prerequisites...
    executable: $CACHE/dxsetup/DXSETUP.exe
    name: wineexec
    prefix: $GAMEDIR
- task:
    app: arial vcrun2010 vcrun2012 win7 d3dcompiler_43
    description: Installing prerequisites...
    name: winetricks
    prefix: $GAMEDIR
- task:
    args: /S
    description: Installing Ubisoft Connect...
    executable: ubiconnect
    name: wineexec
    prefix: $GAMEDIR
system:
  env:
    DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
    DXVK_HUD: compiler
    DXVK_STATE_CACHE_PATH: $GAMEDIR
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
description: Installs and sets up the game via Ubisoft Connect.
game_slug: watch-dogs-2
gogslug: ''
humblestoreid: ''
installer_slug: watch-dogs-2-ubisoft-connect
name: Watch Dogs 2
notes: "-The installer provides a pre-generated DXVK state cache to provide a mostly\
  \ 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-The Uplay overlay is automatically disabled, and will cause problems if enabled.\
  \ Do not enable it.\r\n-Easy Anti Cheat does not work and as a result any multiplayer\
  \ functionality will not work, it is also disabled using the launch commands from\
  \ above.\r\n-If alt-tabbing, the game will sometimes rapidly try to regain focus\
  \ and then lose focus. As if its spazzing out."
runner: wine
script:
  files:
  - dx2010: https://lutris.net/files/tools/directx-2010.tar.gz
  - ubiconnect: https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UbisoftConnectInstaller.exe
  - cache: https://github.com/Cervoxx/DXVKCACHE/raw/master/WD2-cache.tar.xz
  game:
    arch: win64
    args: uplay://launch/2688/0 -eac_launcher -nosplash
    exe: drive_c/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/UbisoftConnect.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      description: Creating 64bit Wine prefix...
      name: create_prefix
      prefix: $GAMEDIR
  - write_file:
      content: "overlay: \n  enabled: false\n"
      file: $GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/Ubisoft Game
        Launcher/settings.yml
  - extract:
      dst: $CACHE/dxsetup
      file: dx2010
  - extract:
      dst: $GAMEDIR
      file: cache
  - task:
      arch: win64
      args: /silent
      description: Installing prerequisites...
      executable: $CACHE/dxsetup/DXSETUP.exe
      name: wineexec
      prefix: $GAMEDIR
  - task:
      app: arial vcrun2010 vcrun2012 win7 d3dcompiler_43
      description: Installing prerequisites...
      name: winetricks
      prefix: $GAMEDIR
  - task:
      args: /S
      description: Installing Ubisoft Connect...
      executable: ubiconnect
      name: wineexec
      prefix: $GAMEDIR
  system:
    env:
      DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
      DXVK_HUD: compiler
      DXVK_STATE_CACHE_PATH: $GAMEDIR
      __GL_SHADER_DISK_CACHE: 1
      __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
slug: watch-dogs-2-ubisoft-connect
steamid: 447040
version: Ubisoft Connect
year: 2016
{
  "game_slug": "watch-dogs-2",
  "version": "Ubisoft Connect",
  "description": "Installs and sets up the game via Ubisoft Connect.",
  "notes": "-The installer provides a pre-generated DXVK state cache to provide a mostly 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-The Uplay overlay is automatically disabled, and will cause problems if enabled. Do not enable it.\r\n-Easy Anti Cheat does not work and as a result any multiplayer functionality will not work, it is also disabled using the launch commands from above.\r\n-If alt-tabbing, the game will sometimes rapidly try to regain focus and then lose focus. As if its spazzing out.",
  "name": "Watch Dogs 2",
  "year": 2016,
  "steamid": 447040,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "watch-dogs-2-ubisoft-connect",
  "installer_slug": "watch-dogs-2-ubisoft-connect",
  "script": {
    "files": [
      {
        "dx2010": "https://lutris.net/files/tools/directx-2010.tar.gz"
      },
      {
        "ubiconnect": "https://ubistatic3-a.akamaihd.net/orbit/launcher_installer/UbisoftConnectInstaller.exe"
      },
      {
        "cache": "https://github.com/Cervoxx/DXVKCACHE/raw/master/WD2-cache.tar.xz"
      }
    ],
    "game": {
      "arch": "win64",
      "args": "uplay://launch/2688/0 -eac_launcher -nosplash",
      "exe": "drive_c/Program Files (x86)/Ubisoft/Ubisoft Game Launcher/UbisoftConnect.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "description": "Creating 64bit Wine prefix...",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "write_file": {
          "content": "overlay: \n  enabled: false\n",
          "file": "$GAMEDIR/drive_c/users/$USER/Local Settings/Application Data/Ubisoft Game Launcher/settings.yml"
        }
      },
      {
        "extract": {
          "dst": "$CACHE/dxsetup",
          "file": "dx2010"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR",
          "file": "cache"
        }
      },
      {
        "task": {
          "arch": "win64",
          "args": "/silent",
          "description": "Installing prerequisites...",
          "executable": "$CACHE/dxsetup/DXSETUP.exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "app": "arial vcrun2010 vcrun2012 win7 d3dcompiler_43",
          "description": "Installing prerequisites...",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "args": "/S",
          "description": "Installing Ubisoft Connect...",
          "executable": "ubiconnect",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      }
    ],
    "system": {
      "env": {
        "DXVK_CONFIG_FILE": "$GAMEDIR/dxvk.conf",
        "DXVK_HUD": "compiler",
        "DXVK_STATE_CACHE_PATH": "$GAMEDIR",
        "__GL_SHADER_DISK_CACHE": 1,
        "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR"
      }
    }
  }
}
Back to game