Installer rayman-2-the-great-escape-change-me-1

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: Rayman 2 - GOG
files:
- ngl:
    filename: nGlide210_setup.exe
    url: http://www.zeus-software.com/downloads/nglide/d-1.html
- inno: http://constexpr.org/innoextract/files/snapshots/innoextract-1.8-dev-2019-01-13/innoextract-1.8-dev-2019-01-13-linux.tar.xz
- gog: N/A:Select the GOG setup exe
game:
  arch: win64
  exe: drive_c/GOG Games/Rayman 2/Rayman2.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    install_gecko: false
    install_mono: false
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $CACHE
    file: inno
- execute:
    args: -d "$CACHE" "$gog"
    file: $CACHE/innoextract
- move:
    dst: $GAMEDIR/drive_c/GOG Games/Rayman 2
    src: $CACHE/app
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Rayman 2/
    src: $GAMEDIR/drive_c/GOG Games/Rayman 2/__support/app
- input_menu:
    description: 'Please choose your screen ratio:'
    id: RATIO
    options:
    - 16x9: 16/9
    - 16x10: 16/10
    preselect: 16x9
- execute:
    command: cd "$GAMEDIR/drive_c/GOG Games/Rayman 2/"; sed -i "s/16/32/g" ubi.ini;
      cd "$CACHE"; wget "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Rayman%202/ws/Rayman2_$INPUT_RATIO.zip";
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Rayman 2/
    src: $CACHE/Rayman2_$INPUT_RATIO.zip
- task:
    args: /S
    description: NGlide installation
    executable: $ngl
    name: wineexec
    prefix: $GAMEDIR
- task:
    arch: win64
    key: Resolution
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
    prefix: $GAMEDIR
    type: REG_SZ
    value: '1'
- task:
    arch: win64
    key: Vsync
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
    prefix: $GAMEDIR
    type: REG_SZ
    value: '1'
- 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: EAXEnabled
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\DirectSound\
    prefix: $GAMEDIR
    type: REG_SZ
    value: Y
- task:
    arch: win64
    key: background
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
- execute:
    command: cd "$GAMEDIR/drive_c/GOG Games/Rayman 2/"; rm -f -r __support 3DfxSpl*
      glide* goggame* GXSetup.exe nglide_* nGlideEULA.txt webcache.zip Offset* ;
wine:
  Desktop: true
{
  "custom-name": "Rayman 2 - GOG",
  "files": [
    {
      "ngl": {
        "filename": "nGlide210_setup.exe",
        "url": "http://www.zeus-software.com/downloads/nglide/d-1.html"
      }
    },
    {
      "inno": "http://constexpr.org/innoextract/files/snapshots/innoextract-1.8-dev-2019-01-13/innoextract-1.8-dev-2019-01-13-linux.tar.xz"
    },
    {
      "gog": "N/A:Select the GOG setup exe"
    }
  ],
  "game": {
    "arch": "win64",
    "exe": "drive_c/GOG Games/Rayman 2/Rayman2.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "task": {
        "arch": "win64",
        "install_gecko": false,
        "install_mono": false,
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "extract": {
        "dst": "$CACHE",
        "file": "inno"
      }
    },
    {
      "execute": {
        "args": "-d \"$CACHE\" \"$gog\"",
        "file": "$CACHE/innoextract"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Rayman 2",
        "src": "$CACHE/app"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Rayman 2/",
        "src": "$GAMEDIR/drive_c/GOG Games/Rayman 2/__support/app"
      }
    },
    {
      "input_menu": {
        "description": "Please choose your screen ratio:",
        "id": "RATIO",
        "options": [
          {
            "16x9": "16/9"
          },
          {
            "16x10": "16/10"
          }
        ],
        "preselect": "16x9"
      }
    },
    {
      "execute": {
        "command": "cd \"$GAMEDIR/drive_c/GOG Games/Rayman 2/\"; sed -i \"s/16/32/g\" ubi.ini; cd \"$CACHE\"; wget \"https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Rayman%202/ws/Rayman2_$INPUT_RATIO.zip\";"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Rayman 2/",
        "src": "$CACHE/Rayman2_$INPUT_RATIO.zip"
      }
    },
    {
      "task": {
        "args": "/S",
        "description": "NGlide installation",
        "executable": "$ngl",
        "name": "wineexec",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "Resolution",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Zeus Software\\nGlide2",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "1"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "Vsync",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Zeus Software\\nGlide2",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "1"
      }
    },
    {
      "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": "EAXEnabled",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\DirectSound\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "Y"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "background",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "0 0 0"
      }
    },
    {
      "execute": {
        "command": "cd \"$GAMEDIR/drive_c/GOG Games/Rayman 2/\"; rm -f -r __support 3DfxSpl* glide* goggame* GXSetup.exe nglide_* nGlideEULA.txt webcache.zip Offset* ;"
      }
    }
  ],
  "wine": {
    "Desktop": true
  }
}
Back to game