Installer warcraft-iii-reign-of-chaos-cd-update-127b-ws

files:
- mod: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III%20-%20Reign%20of%20Chaos/RenderEdge_Widescreen.mix
- script: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III%20-%20Reign%20of%20Chaos/resolution.sh
- reg_file: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III%20-%20Reign%20of%20Chaos/warcraft_iii_cd_utf8.reg
game:
  args: -opengl -window
  exe: drive_c/Program Files (x86)/Warcraft III/Warcraft III.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    name: create_prefix
    prefix: $GAMEDIR
- task:
    app: baekmuk arial lavfilters
    name: winetricks
    prefix: $GAMEDIR
- insert-disc:
    requires: war3.ico
- task:
    description: Installing Warcraft III...
    executable: $DISC/autoplay.exe
    name: wineexec
    return_code: 25856
- input_menu:
    description: Please choose your CD native language in the list. Do not choose
      another language than the one from your CD or the update will not install and
      you will have to reinstall all the game.
    id: LANG
    options:
    - English: English
    - Francais: "Fran\xE7ais"
    - Italiano: Italiano
    - Deutsch: Deutsch
    - Castellano: Castellano
    - Cesky: Cesky
    - Chinese_Simp: simplified Chinese
    - Chinese_Trad: traditionnal Chinese
    - Japanese: Japanese
    - Korean: Korean
    - Polski: Polski
    - Russian: Russian
    preselect: English
- execute:
    command: cd "$CACHE"; wget --no-check-certificate http://ftp.blizzard.com/pub/war3x/patches/pc/War3ROC_127b_$INPUT_LANG.exe;
- task:
    args: /desktop=WarcraftIIIupdate,640x480 '$CACHE/War3ROC_127b_'$INPUT_LANG'.exe'
    description: Updating Warcraft III to 1.27b...
    executable: $GAMEDIR/drive_c/windows/explorer.exe
    include_processes: explorer.exe
    name: wineexec
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Warcraft III
    src: reg_file
- chmodx: script
- execute:
    args: $RESOLUTION_WIDTH $RESOLUTION_HEIGHT
    file: script
- task:
    filename: $GAMEDIR/drive_c/Program Files (x86)/Warcraft III/warcraft_iii_cd_utf8.reg
    name: set_regedit_file
- copy:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Warcraft III
    src: mod
system:
  env:
    MESA_LOADER_DRIVER_OVERRIDE: zink
  gamescope: false
  gamescope_fps_limiter: '60'
  gamescope_game_res: 1920x1080
  gamescope_output_res: 1920x1080
wine:
  dxvk: false
description: Play "Warcraft III - Reign of Chaos" CD edition on Linux!
game_slug: warcraft-iii-reign-of-chaos
gogslug: ''
humblestoreid: ''
installer_slug: warcraft-iii-reign-of-chaos-cd-update-127b-ws
name: 'Warcraft III: Reign of Chaos'
notes: "- Included latest 1.27b update and widescreen patch\r\n- This script would\
  \ be compatible with all \"Warcraft III - ROC\" PC CD version whatever the language\
  \ is\r\n- You will need the CD only one time during install\r\n- Multiplayer online\
  \ is no more functionnal, but you can still play local network games (LAN)\r\n-\
  \ Running with Wine, this game could be a little unstable, it's advised to save\
  \ regularly your party\r\n- This game have issues playing cinematics. During my\
  \ tests, game can play cinematics if: DXVK off, game launched in window mode (-window)\
  \ with opengl renderer (-opengl). Depending on the graphics card used, MESA Zink\
  \ and Gamescope could help too"
runner: wine
script:
  files:
  - mod: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III%20-%20Reign%20of%20Chaos/RenderEdge_Widescreen.mix
  - script: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III%20-%20Reign%20of%20Chaos/resolution.sh
  - reg_file: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III%20-%20Reign%20of%20Chaos/warcraft_iii_cd_utf8.reg
  game:
    args: -opengl -window
    exe: drive_c/Program Files (x86)/Warcraft III/Warcraft III.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      name: create_prefix
      prefix: $GAMEDIR
  - task:
      app: baekmuk arial lavfilters
      name: winetricks
      prefix: $GAMEDIR
  - insert-disc:
      requires: war3.ico
  - task:
      description: Installing Warcraft III...
      executable: $DISC/autoplay.exe
      name: wineexec
      return_code: 25856
  - input_menu:
      description: Please choose your CD native language in the list. Do not choose
        another language than the one from your CD or the update will not install
        and you will have to reinstall all the game.
      id: LANG
      options:
      - English: English
      - Francais: "Fran\xE7ais"
      - Italiano: Italiano
      - Deutsch: Deutsch
      - Castellano: Castellano
      - Cesky: Cesky
      - Chinese_Simp: simplified Chinese
      - Chinese_Trad: traditionnal Chinese
      - Japanese: Japanese
      - Korean: Korean
      - Polski: Polski
      - Russian: Russian
      preselect: English
  - execute:
      command: cd "$CACHE"; wget --no-check-certificate http://ftp.blizzard.com/pub/war3x/patches/pc/War3ROC_127b_$INPUT_LANG.exe;
  - task:
      args: /desktop=WarcraftIIIupdate,640x480 '$CACHE/War3ROC_127b_'$INPUT_LANG'.exe'
      description: Updating Warcraft III to 1.27b...
      executable: $GAMEDIR/drive_c/windows/explorer.exe
      include_processes: explorer.exe
      name: wineexec
  - merge:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Warcraft III
      src: reg_file
  - chmodx: script
  - execute:
      args: $RESOLUTION_WIDTH $RESOLUTION_HEIGHT
      file: script
  - task:
      filename: $GAMEDIR/drive_c/Program Files (x86)/Warcraft III/warcraft_iii_cd_utf8.reg
      name: set_regedit_file
  - copy:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Warcraft III
      src: mod
  system:
    env:
      MESA_LOADER_DRIVER_OVERRIDE: zink
    gamescope: false
    gamescope_fps_limiter: '60'
    gamescope_game_res: 1920x1080
    gamescope_output_res: 1920x1080
  wine:
    dxvk: false
slug: warcraft-iii-reign-of-chaos-cd-update-127b-ws
steamid: null
version: CD + update 1.27b + WS
year: 2002
{
  "game_slug": "warcraft-iii-reign-of-chaos",
  "version": "CD + update 1.27b + WS",
  "description": "Play \"Warcraft III - Reign of Chaos\" CD edition on Linux!",
  "notes": "- Included latest 1.27b update and widescreen patch\r\n- This script would be compatible with all \"Warcraft III - ROC\" PC CD version whatever the language is\r\n- You will need the CD only one time during install\r\n- Multiplayer online is no more functionnal, but you can still play local network games (LAN)\r\n- Running with Wine, this game could be a little unstable, it's advised to save regularly your party\r\n- This game have issues playing cinematics. During my tests, game can play cinematics if: DXVK off, game launched in window mode (-window) with opengl renderer (-opengl). Depending on the graphics card used, MESA Zink and Gamescope could help too",
  "name": "Warcraft III: Reign of Chaos",
  "year": 2002,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "warcraft-iii-reign-of-chaos-cd-update-127b-ws",
  "installer_slug": "warcraft-iii-reign-of-chaos-cd-update-127b-ws",
  "script": {
    "files": [
      {
        "mod": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III%20-%20Reign%20of%20Chaos/RenderEdge_Widescreen.mix"
      },
      {
        "script": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III%20-%20Reign%20of%20Chaos/resolution.sh"
      },
      {
        "reg_file": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III%20-%20Reign%20of%20Chaos/warcraft_iii_cd_utf8.reg"
      }
    ],
    "game": {
      "args": "-opengl -window",
      "exe": "drive_c/Program Files (x86)/Warcraft III/Warcraft III.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "app": "baekmuk arial lavfilters",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "insert-disc": {
          "requires": "war3.ico"
        }
      },
      {
        "task": {
          "description": "Installing Warcraft III...",
          "executable": "$DISC/autoplay.exe",
          "name": "wineexec",
          "return_code": 25856
        }
      },
      {
        "input_menu": {
          "description": "Please choose your CD native language in the list. Do not choose another language than the one from your CD or the update will not install and you will have to reinstall all the game.",
          "id": "LANG",
          "options": [
            {
              "English": "English"
            },
            {
              "Francais": "Fran\u00e7ais"
            },
            {
              "Italiano": "Italiano"
            },
            {
              "Deutsch": "Deutsch"
            },
            {
              "Castellano": "Castellano"
            },
            {
              "Cesky": "Cesky"
            },
            {
              "Chinese_Simp": "simplified Chinese"
            },
            {
              "Chinese_Trad": "traditionnal Chinese"
            },
            {
              "Japanese": "Japanese"
            },
            {
              "Korean": "Korean"
            },
            {
              "Polski": "Polski"
            },
            {
              "Russian": "Russian"
            }
          ],
          "preselect": "English"
        }
      },
      {
        "execute": {
          "command": "cd \"$CACHE\"; wget --no-check-certificate http://ftp.blizzard.com/pub/war3x/patches/pc/War3ROC_127b_$INPUT_LANG.exe;"
        }
      },
      {
        "task": {
          "args": "/desktop=WarcraftIIIupdate,640x480 '$CACHE/War3ROC_127b_'$INPUT_LANG'.exe'",
          "description": "Updating Warcraft III to 1.27b...",
          "executable": "$GAMEDIR/drive_c/windows/explorer.exe",
          "include_processes": "explorer.exe",
          "name": "wineexec"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Warcraft III",
          "src": "reg_file"
        }
      },
      {
        "chmodx": "script"
      },
      {
        "execute": {
          "args": "$RESOLUTION_WIDTH $RESOLUTION_HEIGHT",
          "file": "script"
        }
      },
      {
        "task": {
          "filename": "$GAMEDIR/drive_c/Program Files (x86)/Warcraft III/warcraft_iii_cd_utf8.reg",
          "name": "set_regedit_file"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Warcraft III",
          "src": "mod"
        }
      }
    ],
    "system": {
      "env": {
        "MESA_LOADER_DRIVER_OVERRIDE": "zink"
      },
      "gamescope": false,
      "gamescope_fps_limiter": "60",
      "gamescope_game_res": "1920x1080",
      "gamescope_output_res": "1920x1080"
    },
    "wine": {
      "dxvk": false
    }
  }
}
Back to game