Installer warcraft-iii-the-frozen-thron-last-classic-digital

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.

custom-name: Warcraft III - Last Classic digital PTR version
files:
- regfile: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III/warcraft_iii_ptr_utf8.reg
- script: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III/resolution.sh
- w3: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III/Warcraft-III-Public-Test-Setup.exe
- wppa: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III/warcraft_iiia.bmp
- wppb: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III/warcraft_iiib.bmp
- menu: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III/warcraft_iii_ptr.bat
game:
  args: c:\\warcraft_iii_ptr.bat
  exe: drive_c/windows/syswow64/wineconsole.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    name: create_prefix
    prefix: $GAMEDIR
- task:
    arch: win64
    key: CSMT
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D\
    prefix: $GAMEDIR
    type: REG_DWORD
    value: '00000000'
- task:
    arch: win64
    key: background
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
- task:
    arch: win64
    key: ActiveTitle
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
- task:
    arch: win64
    key: GradientActiveTitle
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 255 255 255
- task:
    args: /desktop=WarcraftIII,1024x780 "$w3"
    description: Running setup of the game. Just proceed and keep all settings at
      their defaults
    executable: $GAMEDIR/drive_c/windows/explorer.exe
    include_processes: explorer.exe
    name: wineexec
    prefix: $GAMEDIR
- merge:
    dst: $GAMEDIR/drive_c/tmp
    src: regfile
- merge:
    dst: $GAMEDIR/drive_c/tmp/
    src: script
- chmodx: $GAMEDIR/drive_c/tmp/resolution.sh
- execute:
    args: $RESOLUTION_WIDTH $RESOLUTION_HEIGHT warcraft_iii_ptr_utf8.reg
    file: $GAMEDIR/drive_c/tmp/resolution.sh
- task:
    args: $GAMEDIR/drive_c/tmp/warcraft_iii.reg
    executable: regedit
    name: wineexec
    prefix: $GAMEDIR
- task:
    arch: win64
    key: wallpaper
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Desktop\
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\warcraft_iii.bmp
- copy:
    dst: $GAMEDIR/drive_c/
    src: menu
- copy:
    dst: $GAMEDIR/drive_c
    src: wppa
- copy:
    dst: $GAMEDIR/drive_c
    src: wppb
- execute:
    command: cd $GAMEDIR/drive_c; cp warcraft_iiia.bmp warcraft_iii.bmp;
wine:
  Desktop: true
{
  "custom-name": "Warcraft III - Last Classic digital PTR version",
  "files": [
    {
      "regfile": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III/warcraft_iii_ptr_utf8.reg"
    },
    {
      "script": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III/resolution.sh"
    },
    {
      "w3": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III/Warcraft-III-Public-Test-Setup.exe"
    },
    {
      "wppa": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III/warcraft_iiia.bmp"
    },
    {
      "wppb": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III/warcraft_iiib.bmp"
    },
    {
      "menu": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Warcraft%20III/warcraft_iii_ptr.bat"
    }
  ],
  "game": {
    "args": "c:\\\\warcraft_iii_ptr.bat",
    "exe": "drive_c/windows/syswow64/wineconsole.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "task": {
        "arch": "win64",
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "CSMT",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D\\",
        "prefix": "$GAMEDIR",
        "type": "REG_DWORD",
        "value": "00000000"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "background",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "0 0 0"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "ActiveTitle",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "0 0 0"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "GradientActiveTitle",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "255 255 255"
      }
    },
    {
      "task": {
        "args": "/desktop=WarcraftIII,1024x780 \"$w3\"",
        "description": "Running setup of the game. Just proceed and keep all settings at their defaults",
        "executable": "$GAMEDIR/drive_c/windows/explorer.exe",
        "include_processes": "explorer.exe",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/tmp",
        "src": "regfile"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/tmp/",
        "src": "script"
      }
    },
    {
      "chmodx": "$GAMEDIR/drive_c/tmp/resolution.sh"
    },
    {
      "execute": {
        "args": "$RESOLUTION_WIDTH $RESOLUTION_HEIGHT warcraft_iii_ptr_utf8.reg",
        "file": "$GAMEDIR/drive_c/tmp/resolution.sh"
      }
    },
    {
      "task": {
        "args": "$GAMEDIR/drive_c/tmp/warcraft_iii.reg",
        "executable": "regedit",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "wallpaper",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Desktop\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\warcraft_iii.bmp"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c/",
        "src": "menu"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c",
        "src": "wppa"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c",
        "src": "wppb"
      }
    },
    {
      "execute": {
        "command": "cd $GAMEDIR/drive_c; cp warcraft_iiia.bmp warcraft_iii.bmp;"
      }
    }
  ],
  "wine": {
    "Desktop": true
  }
}
Back to game