Installer warcraft-iii-the-frozen-thron-digital-vulkan-wo-dx

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_script: https://github.com/doitsujin/dxvk/releases/download/v1.5.3/dxvk-1.5.3.tar.gz
- setup: https://github.com/s4iya/Warcraft-III-Classic-Linux/releases/download/1.0/wc3-setup.tar.gz
game:
  arch: win64
  exclude_processes: Agent.exe "Battle.net Helper.exe"
  exe: drive_c/Program Files (x86)/Warcraft III/Warcraft-III-Setup.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
- 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
- write_json:
    data:
      AdditionalLaunchArguments: -windowmode fullscreen
      Client: null
      GameLaunchWindowBehavior: '2'
      GameSearch:
        BackgroundSearch: 'true'
      HardwareAcceleration: 'false'
      Sound:
        Enabled: 'false'
      Streaming:
        StreamingEnabled: 'false'
      w3: null
    description: Writing a Battle.Net config file
    file: $GAMEDIR/drive_c/users/$USER/Application Data/Battle.net/Battle.net.config
- task:
    name: winekill
    prefix: $GAMEDIR
- merge:
    dst: $GAMEDIR/drive_c/tmp/
    src: setup
- extract:
    dst: $GAMEDIR/drive_c/tmp/
    file: setup
- chmodx: $GAMEDIR/drive_c/tmp/setup_warcraft_iii.sh
- execute:
    command: WINEPREFIX=$PWD bash $GAMEDIR/drive_c/tmp/setup_warcraft_iii.sh
    prefix: $GAMEDIR
- 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'
    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 Warcraft III: The Frozen Throne'
    executable: setup
    name: wineexec
    prefix: $GAMEDIR
- merge:
    dst: $GAMEDIR/drive_c/tmp/
    src: dxvk_script
- extract:
    dst: $GAMEDIR/drive_c/tmp/
    file: dxvk_script
- chmodx: $GAMEDIR/drive_c/tmp/setup_dxvk.sh
- execute:
    command: WINEPREFIX=$PWD bash $GAMEDIR/drive_c/tmp/setup_dxvk.sh install --without-dxgi
    prefix: $GAMEDIR
system:
  env:
    DXVK_CONFIG_FILE: $GAMEDIR/dxvk.conf
    DXVK_HUD: compiler
    DXVK_STATE_CACHE_PATH: $GAMEDIR
    STAGING_SHARED_MEMORY: 1
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
  exclude_processes: Agent.exe "Battle.net Helper.exe"
wine:
  dxvk: true
  dxvk_version: Manual
  esync: true
  overrides:
    api-ms-win-crt-private-l1-1-0: n,b
    d3d12: disabled
    nvapi: disabled
    nvapi64: disabled
    ucrtbase: n,b
{
  "files": [
    {
      "dxvk_script": "https://github.com/doitsujin/dxvk/releases/download/v1.5.3/dxvk-1.5.3.tar.gz"
    },
    {
      "setup": "https://github.com/s4iya/Warcraft-III-Classic-Linux/releases/download/1.0/wc3-setup.tar.gz"
    }
  ],
  "game": {
    "arch": "win64",
    "exclude_processes": "Agent.exe \"Battle.net Helper.exe\"",
    "exe": "drive_c/Program Files (x86)/Warcraft III/Warcraft-III-Setup.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"
      }
    },
    {
      "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"
      }
    },
    {
      "write_json": {
        "data": {
          "AdditionalLaunchArguments": "-windowmode fullscreen",
          "Client": null,
          "GameLaunchWindowBehavior": "2",
          "GameSearch": {
            "BackgroundSearch": "true"
          },
          "HardwareAcceleration": "false",
          "Sound": {
            "Enabled": "false"
          },
          "Streaming": {
            "StreamingEnabled": "false"
          },
          "w3": null
        },
        "description": "Writing a Battle.Net config file",
        "file": "$GAMEDIR/drive_c/users/$USER/Application Data/Battle.net/Battle.net.config"
      }
    },
    {
      "task": {
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/tmp/",
        "src": "setup"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/tmp/",
        "file": "setup"
      }
    },
    {
      "chmodx": "$GAMEDIR/drive_c/tmp/setup_warcraft_iii.sh"
    },
    {
      "execute": {
        "command": "WINEPREFIX=$PWD bash $GAMEDIR/drive_c/tmp/setup_warcraft_iii.sh",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "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"
            }
          }
        },
        "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 Warcraft III: The Frozen Throne",
        "executable": "setup",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/tmp/",
        "src": "dxvk_script"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/tmp/",
        "file": "dxvk_script"
      }
    },
    {
      "chmodx": "$GAMEDIR/drive_c/tmp/setup_dxvk.sh"
    },
    {
      "execute": {
        "command": "WINEPREFIX=$PWD bash $GAMEDIR/drive_c/tmp/setup_dxvk.sh install --without-dxgi",
        "prefix": "$GAMEDIR"
      }
    }
  ],
  "system": {
    "env": {
      "DXVK_CONFIG_FILE": "$GAMEDIR/dxvk.conf",
      "DXVK_HUD": "compiler",
      "DXVK_STATE_CACHE_PATH": "$GAMEDIR",
      "STAGING_SHARED_MEMORY": 1,
      "__GL_SHADER_DISK_CACHE": 1,
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR"
    },
    "exclude_processes": "Agent.exe \"Battle.net Helper.exe\""
  },
  "wine": {
    "dxvk": true,
    "dxvk_version": "Manual",
    "esync": true,
    "overrides": {
      "api-ms-win-crt-private-l1-1-0": "n,b",
      "d3d12": "disabled",
      "nvapi": "disabled",
      "nvapi64": "disabled",
      "ucrtbase": "n,b"
    }
  }
}
Back to game