Installer league-of-legends-latest

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://lol.secure.dyn.riotcdn.net/channels/public/x/installer/current/live.eune.exe
- script1: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/League%20of%20Legends/launchhelper.sh
- script2: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/League%20of%20Legends/syscall_check.sh
game:
  args: --locale=$INPUT_LOCALE
  exe: $GAMEDIR/drive_c/Riot Games/League of Legends/LeagueClient.exe
  prefix: $GAMEDIR
installer:
- input_menu:
    description: 'Choose your preferred 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
- 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
    description: Installing...Please do not connect to your "League of Legends" account
      or launching game during setup, just close the client once it finished downloading.
    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
- task:
    arch: win32
    key: UseXVidMode
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\X11 Driver
    prefix: $GAMEDIR
    value: N
- chmodx: script1
- chmodx: script2
- copy:
    dst: $GAMEDIR
    src: script1
- copy:
    dst: $GAMEDIR
    src: script2
- task:
    arch: win32
    key: background
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 40 40 40
require-binaries: zenity, openssl
system:
  disable_compositor: true
  env:
    DXVK_LOG_LEVEL: none
    DXVK_STATE_CACHE_PATH: $GAMEDIR
    STAGING_SHARED_MEMORY: 1
    WINE_LARGE_ADDRESS_AWARE: 1
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
  prelaunch_command: $GAMEDIR/launchhelper.sh
wine:
  MouseWarpOverride: enable
  version: lutris-lol-5.5-2-x86_64
{
  "files": [
    {
      "lol_installer": "https://lol.secure.dyn.riotcdn.net/channels/public/x/installer/current/live.eune.exe"
    },
    {
      "script1": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/League%20of%20Legends/launchhelper.sh"
    },
    {
      "script2": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/League%20of%20Legends/syscall_check.sh"
    }
  ],
  "game": {
    "args": "--locale=$INPUT_LOCALE",
    "exe": "$GAMEDIR/drive_c/Riot Games/League of Legends/LeagueClient.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "input_menu": {
        "description": "Choose your preferred 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"
          }
        ],
        "preselect": "en_US"
      }
    },
    {
      "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",
        "description": "Installing...Please do not connect to your \"League of Legends\" account or launching game during setup, just close the client once it finished downloading.",
        "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"
      }
    },
    {
      "task": {
        "arch": "win32",
        "key": "UseXVidMode",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\X11 Driver",
        "prefix": "$GAMEDIR",
        "value": "N"
      }
    },
    {
      "chmodx": "script1"
    },
    {
      "chmodx": "script2"
    },
    {
      "copy": {
        "dst": "$GAMEDIR",
        "src": "script1"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR",
        "src": "script2"
      }
    },
    {
      "task": {
        "arch": "win32",
        "key": "background",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "40 40 40"
      }
    }
  ],
  "require-binaries": "zenity, openssl",
  "system": {
    "disable_compositor": true,
    "env": {
      "DXVK_LOG_LEVEL": "none",
      "DXVK_STATE_CACHE_PATH": "$GAMEDIR",
      "STAGING_SHARED_MEMORY": 1,
      "WINE_LARGE_ADDRESS_AWARE": 1,
      "__GL_SHADER_DISK_CACHE": 1,
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR"
    },
    "prelaunch_command": "$GAMEDIR/launchhelper.sh"
  },
  "wine": {
    "MouseWarpOverride": "enable",
    "version": "lutris-lol-5.5-2-x86_64"
  }
}
Back to game