Installer league-of-legends-d9vk-arch-testing

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:
- lol_installer: https://riotgamespatcher-a.akamaihd.net/releases/live/installer/deploy/League%20of%20Legends%20installer%20NA.exe
game:
  exe: drive_c/Riot Games/League of Legends/LeagueClient.exe
  prefix: $GAMEDIR
installer:
- input_menu:
    description: 'Choose the game''s language:'
    id: LOCALE
    options:
    - cs_CZ: "\u010Ce\u0161tina"
    - en_AU: English AUS
    - en_GB: English U.K.
    - en_US: English U.S.
    - fr_FR: "Fran\xE7ais"
    - de_DE: Deutsch
    - es_ES: "Espa\xF1ol"
    - es_MX: "Espa\xF1ol Mexicano"
    - it_IT: Italiano
    - ja_JP: "\u65E5\u672C\u8A9E"
    - hu_HU: Magyar
    - pl_PL: Polski
    - pt_BR: "Portugu\xEAs do Brasil"
    - ro_RO: Romanian
    - ru_RU: "\u0440\u0443\u0441\u0441\u043A\u0438\u0439"
    - tr_TR: "T\xFCrk\xE7e"
    preselect: en_US
- input_menu:
    description: 'Choose the game''s server region:'
    id: REGION
    options:
    - BR: Brazil
    - EUNE: Europe Nordic & East
    - EUW: Europe West
    - LAN: Latin America North
    - LAS: Latin America South
    - NA: North America
    - OCE: Oceania
    - RU: Russia
    - TR: Turkey
    - JP: Japan
    - SEA: South East Asia
    preselect: NA
- task:
    arch: win32
    description: Creating Wine prefix
    name: create_prefix
    prefix: $GAMEDIR
- task:
    app: d3dcompiler_43 d3dx9
    arch: win32
    name: winetricks
    prefix: $GAMEDIR
- task:
    arch: win32
    args: --mode unattended
    description: Installing League of Legends
    executable: lol_installer
    name: wineexec
    prefix: $GAMEDIR
- task:
    arch: win32
    name: winekill
    prefix: $GAMEDIR
- task:
    arch: win32
    key: GrabFullScreen
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\X11 Driver
    prefix: $GAMEDIR
    value: Y
- write_file:
    content: "install:\n    globals:\n        locale: \"$INPUT_LOCALE\"\n        region:\
      \ \"$INPUT_REGION\"\n"
    file: $GAMEDIR/drive_c/Riot Games/League of Legends/Config/LeagueClientSettings.yaml
- task:
    arch: win32
    name: winekill
    prefix: $GAMEDIR
system:
  env:
    DXVK_LOG_LEVEL: none
    DXVK_STATE_CACHE_PATH: $GAMEDIR
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
wine:
  MouseWarpOverride: enable
  d9vk: true
  overrides:
    msvcp140: native
  version: /opt/wine-lol/bin/wine
{
  "wine": {
    "MouseWarpOverride": "enable",
    "d9vk": true,
    "overrides": {
      "msvcp140": "native"
    },
    "version": "/opt/wine-lol/bin/wine"
  },
  "installer": [
    {
      "input_menu": {
        "preselect": "en_US",
        "description": "Choose the game's language:",
        "id": "LOCALE",
        "options": [
          {
            "cs_CZ": "\u010ce\u0161tina"
          },
          {
            "en_AU": "English AUS"
          },
          {
            "en_GB": "English U.K."
          },
          {
            "en_US": "English U.S."
          },
          {
            "fr_FR": "Fran\u00e7ais"
          },
          {
            "de_DE": "Deutsch"
          },
          {
            "es_ES": "Espa\u00f1ol"
          },
          {
            "es_MX": "Espa\u00f1ol Mexicano"
          },
          {
            "it_IT": "Italiano"
          },
          {
            "ja_JP": "\u65e5\u672c\u8a9e"
          },
          {
            "hu_HU": "Magyar"
          },
          {
            "pl_PL": "Polski"
          },
          {
            "pt_BR": "Portugu\u00eas do Brasil"
          },
          {
            "ro_RO": "Romanian"
          },
          {
            "ru_RU": "\u0440\u0443\u0441\u0441\u043a\u0438\u0439"
          },
          {
            "tr_TR": "T\u00fcrk\u00e7e"
          }
        ]
      }
    },
    {
      "input_menu": {
        "preselect": "NA",
        "description": "Choose the game's server region:",
        "id": "REGION",
        "options": [
          {
            "BR": "Brazil"
          },
          {
            "EUNE": "Europe Nordic & East"
          },
          {
            "EUW": "Europe West"
          },
          {
            "LAN": "Latin America North"
          },
          {
            "LAS": "Latin America South"
          },
          {
            "NA": "North America"
          },
          {
            "OCE": "Oceania"
          },
          {
            "RU": "Russia"
          },
          {
            "TR": "Turkey"
          },
          {
            "JP": "Japan"
          },
          {
            "SEA": "South East Asia"
          }
        ]
      }
    },
    {
      "task": {
        "description": "Creating Wine prefix",
        "prefix": "$GAMEDIR",
        "name": "create_prefix",
        "arch": "win32"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "name": "winetricks",
        "arch": "win32",
        "app": "d3dcompiler_43 d3dx9"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "description": "Installing League of Legends",
        "executable": "lol_installer",
        "arch": "win32",
        "name": "wineexec",
        "args": "--mode unattended"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "name": "winekill",
        "arch": "win32"
      }
    },
    {
      "task": {
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\X11 Driver",
        "prefix": "$GAMEDIR",
        "key": "GrabFullScreen",
        "value": "Y",
        "arch": "win32",
        "name": "set_regedit"
      }
    },
    {
      "write_file": {
        "file": "$GAMEDIR/drive_c/Riot Games/League of Legends/Config/LeagueClientSettings.yaml",
        "content": "install:\n    globals:\n        locale: \"$INPUT_LOCALE\"\n        region: \"$INPUT_REGION\"\n"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "name": "winekill",
        "arch": "win32"
      }
    }
  ],
  "system": {
    "env": {
      "DXVK_STATE_CACHE_PATH": "$GAMEDIR",
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR",
      "DXVK_LOG_LEVEL": "none",
      "__GL_SHADER_DISK_CACHE": 1
    }
  },
  "files": [
    {
      "lol_installer": "https://riotgamespatcher-a.akamaihd.net/releases/live/installer/deploy/League%20of%20Legends%20installer%20NA.exe"
    }
  ],
  "game": {
    "exe": "drive_c/Riot Games/League of Legends/LeagueClient.exe",
    "prefix": "$GAMEDIR"
  }
}
Back to game