Installer wargaming-game-center-all-regions

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.

game:
  arch: win64
  exe: drive_c/ProgramData/Wargaming.net/GameCenter/wgc.exe
  prefix: $GAMEDIR
installer:
- input_menu:
    description: 'Please choose your preferred client localisation:'
    id: LOCAL
    options:
    - EU: Europe
    - NA: US
    - ASIA: Asia
    - RU: Russia
    preselect: EU
- execute:
    command: cd "$CACHE"; wget https://redirect.wargaming.net/WGC/Wargaming_Game_Center_Install_WoT_$INPUT_LOCAL.exe
      -O Wargaming_Game_Center_Install_WoT_$INPUT_LOCAL.exe;
- task:
    arch: win64
    description: Creating Wine prefix
    name: create_prefix
    prefix: $GAMEDIR
- task:
    app: corefonts win7
    arch: win64
    name: winetricks
    prefix: $GAMEDIR
- task:
    args: /SP- /SILENT
    description: Installing Wargaming center...
    exclude_processes: WargamingErrorMonitor.exe wgc.exe wgc_renderer_host.exe
    executable: $CACHE/Wargaming_Game_Center_Install_WoT_$INPUT_LOCAL.exe
    include_processes: Wargaming_Game_Center_Install_WoT_$INPUT_LOCAL.exe start.exe
      7za.exe
    name: wineexec
- task:
    arch: win64
    name: winekill
    prefix: $GAMEDIR
- input_menu:
    description: Please choose your preferred game's language. You will find more
      languages choice in Wargaming.net Center general tab.
    id: LANG
    options:
    - en: English
    - fr: French
    - de: Deutsch
    - sp: Spanish
    - it: Italian
    - ru: Russian
    preselect: en
- write_file:
    content: '<?xml version="1.0" encoding="utf-8"?>

      <protocol version="3.19" name="preferences">

      <application>

      <localization_manager>

      <current_localization>$INPUT_LANG</current_localization>

      </localization_manager>

      </application>

      </protocol>'
    file: $GAMEDIR/drive_c/ProgramData/Wargaming.net/GameCenter/preferences.xml
system:
  env:
    __GL_SHADER_DISK_CACHE: 1
    __GL_SHADER_DISK_CACHE_PATH: $GAMEDIR
  require-binaries: wget
{
  "game": {
    "arch": "win64",
    "exe": "drive_c/ProgramData/Wargaming.net/GameCenter/wgc.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "input_menu": {
        "description": "Please choose your preferred client localisation:",
        "id": "LOCAL",
        "options": [
          {
            "EU": "Europe"
          },
          {
            "NA": "US"
          },
          {
            "ASIA": "Asia"
          },
          {
            "RU": "Russia"
          }
        ],
        "preselect": "EU"
      }
    },
    {
      "execute": {
        "command": "cd \"$CACHE\"; wget https://redirect.wargaming.net/WGC/Wargaming_Game_Center_Install_WoT_$INPUT_LOCAL.exe -O Wargaming_Game_Center_Install_WoT_$INPUT_LOCAL.exe;"
      }
    },
    {
      "task": {
        "arch": "win64",
        "description": "Creating Wine prefix",
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "app": "corefonts win7",
        "arch": "win64",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "args": "/SP- /SILENT",
        "description": "Installing Wargaming center...",
        "exclude_processes": "WargamingErrorMonitor.exe wgc.exe wgc_renderer_host.exe",
        "executable": "$CACHE/Wargaming_Game_Center_Install_WoT_$INPUT_LOCAL.exe",
        "include_processes": "Wargaming_Game_Center_Install_WoT_$INPUT_LOCAL.exe start.exe 7za.exe",
        "name": "wineexec"
      }
    },
    {
      "task": {
        "arch": "win64",
        "name": "winekill",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "input_menu": {
        "description": "Please choose your preferred game's language. You will find more languages choice in Wargaming.net Center general tab.",
        "id": "LANG",
        "options": [
          {
            "en": "English"
          },
          {
            "fr": "French"
          },
          {
            "de": "Deutsch"
          },
          {
            "sp": "Spanish"
          },
          {
            "it": "Italian"
          },
          {
            "ru": "Russian"
          }
        ],
        "preselect": "en"
      }
    },
    {
      "write_file": {
        "content": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<protocol version=\"3.19\" name=\"preferences\">\n<application>\n<localization_manager>\n<current_localization>$INPUT_LANG</current_localization>\n</localization_manager>\n</application>\n</protocol>",
        "file": "$GAMEDIR/drive_c/ProgramData/Wargaming.net/GameCenter/preferences.xml"
      }
    }
  ],
  "system": {
    "env": {
      "__GL_SHADER_DISK_CACHE": 1,
      "__GL_SHADER_DISK_CACHE_PATH": "$GAMEDIR"
    },
    "require-binaries": "wget"
  }
}
Back to game