Installer rayman-2-the-great-escape-retail

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:
- glide:
    filename: nglide.exe
    referer: www.zeus-software.com
    url: http://www.zeus-software.com/downloads/nglide/d-1.html
- widescreenzip: 'N/A:Select the widescreen fix zip file

    https://raymanpc.com/forum/viewtopic.php?t=21665'
game:
  arch: win32
  exe: drive_c/UbiSoft/Rayman2/Rayman2.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win32
    description: Creating WINE prefix
    name: create_prefix
    prefix: $GAMEDIR
- task:
    arch: win32
    description: Installing nGlide
    executable: glide
    name: wineexec
- task:
    key: Aspect
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
    prefix: $GAMEDIR
    type: REG_SZ
    value: '0'
- task:
    key: Backend
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
    prefix: $GAMEDIR
    type: REG_SZ
    value: '2'
- task:
    key: Gamma
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
    prefix: $GAMEDIR
    type: REG_SZ
    value: '2'
- task:
    key: Refresh
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
    prefix: $GAMEDIR
    type: REG_SZ
    value: '2'
- task:
    key: Resolution
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
    prefix: $GAMEDIR
    type: REG_SZ
    value: '21'
- task:
    key: Splash
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
    prefix: $GAMEDIR
    type: REG_SZ
    value: '0'
- task:
    key: Vsync
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
    prefix: $GAMEDIR
    type: REG_SZ
    value: '1'
- insert-disc:
    requires: Rayman2.exe
- task:
    arch: win32
    description: Installing Rayman 2, don't change default settings.
    executable: $DISC/setup.exe
    name: wineexec
- copy:
    dst: $GAMEDIR/drive_c/UbiSoft/Rayman2/Data/
    src: $DISC/Data/Vignette.cnt
- copy:
    dst: $GAMEDIR/drive_c/UbiSoft/Rayman2/Data/World/Levels/
    src: $DISC/Data/World/Levels/LEVELS0.DAT
- execute:
    args: u+w $GAMEDIR/drive_c/UbiSoft/Rayman2/ -R
    file: chmod
- extract:
    dst: $GAMEDIR/widescreen
    file: widescreenzip
- merge:
    dst: $GAMEDIR/drive_c/UbiSoft/Rayman2
    src: $GAMEDIR/widescreen/
- write_config:
    data:
      Rayman2:
        GLI_Device: ''
        GLI_Dll: Glide2
        GLI_DllFile: GliVd1
        GLI_Driver: ''
        GLI_Mode: 1 - 1920 x 1080 x 32
        Language: English
    file: $GAMEDIR/drive_c/UbiSoft/Rayman2/ubi.ini
wine:
  Desktop: true
  WineDesktop: 1024x768
{
  "files": [
    {
      "glide": {
        "filename": "nglide.exe",
        "referer": "www.zeus-software.com",
        "url": "http://www.zeus-software.com/downloads/nglide/d-1.html"
      }
    },
    {
      "widescreenzip": "N/A:Select the widescreen fix zip file\nhttps://raymanpc.com/forum/viewtopic.php?t=21665"
    }
  ],
  "game": {
    "arch": "win32",
    "exe": "drive_c/UbiSoft/Rayman2/Rayman2.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "task": {
        "arch": "win32",
        "description": "Creating WINE prefix",
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "task": {
        "arch": "win32",
        "description": "Installing nGlide",
        "executable": "glide",
        "name": "wineexec"
      }
    },
    {
      "task": {
        "key": "Aspect",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Zeus Software\\nGlide2",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "0"
      }
    },
    {
      "task": {
        "key": "Backend",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Zeus Software\\nGlide2",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "2"
      }
    },
    {
      "task": {
        "key": "Gamma",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Zeus Software\\nGlide2",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "2"
      }
    },
    {
      "task": {
        "key": "Refresh",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Zeus Software\\nGlide2",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "2"
      }
    },
    {
      "task": {
        "key": "Resolution",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Zeus Software\\nGlide2",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "21"
      }
    },
    {
      "task": {
        "key": "Splash",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Zeus Software\\nGlide2",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "0"
      }
    },
    {
      "task": {
        "key": "Vsync",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Zeus Software\\nGlide2",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "1"
      }
    },
    {
      "insert-disc": {
        "requires": "Rayman2.exe"
      }
    },
    {
      "task": {
        "arch": "win32",
        "description": "Installing Rayman 2, don't change default settings.",
        "executable": "$DISC/setup.exe",
        "name": "wineexec"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c/UbiSoft/Rayman2/Data/",
        "src": "$DISC/Data/Vignette.cnt"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c/UbiSoft/Rayman2/Data/World/Levels/",
        "src": "$DISC/Data/World/Levels/LEVELS0.DAT"
      }
    },
    {
      "execute": {
        "args": "u+w $GAMEDIR/drive_c/UbiSoft/Rayman2/ -R",
        "file": "chmod"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/widescreen",
        "file": "widescreenzip"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/UbiSoft/Rayman2",
        "src": "$GAMEDIR/widescreen/"
      }
    },
    {
      "write_config": {
        "data": {
          "Rayman2": {
            "GLI_Device": "",
            "GLI_Dll": "Glide2",
            "GLI_DllFile": "GliVd1",
            "GLI_Driver": "",
            "GLI_Mode": "1 - 1920 x 1080 x 32",
            "Language": "English"
          }
        },
        "file": "$GAMEDIR/drive_c/UbiSoft/Rayman2/ubi.ini"
      }
    }
  ],
  "wine": {
    "Desktop": true,
    "WineDesktop": "1024x768"
  }
}
Back to game