Installer rayman-2-the-great-escape-gog-ray2fix

files:
- wrapper: https://github.com/legluondunet/mlls-tools/raw/refs/heads/master/dgVoodoo2/dgVoodoo2_79_3.zip
- mod: https://github.com/spitfirex86/Ray2Fix/releases/download/v1.4.0/Ray2Fix_1.4.0.zip
- gogsetup: N/A:Select the GOG setup exe
game:
  exe: drive_c/GOG Games/Rayman 2/Rayman2.exe
  launch_configs:
  - exe: $GAMEDIR/drive_c/GOG Games/Rayman 2/R2FixCfg.exe
    name: Ray2Fix
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Rayman 2
    file: gogsetup
    format: gog
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Rayman 2
    file: mod
- write_config:
    data:
      Ray2Fix:
        HalfRefRate: 0
        PatchWidescreen: 1
        Tweaks: 0
      Rayman2:
        GLI_Device: Default
        GLI_Dll: Ray2Fix
        GLI_DllFile: GliFix
        GLI_Driver: Default
        GLI_Mode: 1 - $RESOLUTION_WIDTH x $RESOLUTION_HEIGHT x 16
    file: $GAMEDIR/drive_c/GOG Games/Rayman 2/ubi.ini
- extract:
    dst: $CACHE
    file: wrapper
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Rayman 2
    src: $CACHE/3Dfx/x86/Glide2x.dll
- execute:
    command: cd "$GAMEDIR/drive_c/GOG Games/Rayman 2"; sed -i "s/FullscreenAttributes\
      .*/FullscreenAttributes=fake/" dgVoodoo.conf; rm -f -r __support 3Dfx* D3DImm.dll
      DDraw.dll glide* goggame* GXSetup.exe nglide_* nGlideEULA.txt webcache.zip ;
wine:
  overrides:
    dinput: n,b
    dinput8: n,b
description: Play "Rayman 2" provided by GOG on Linux!
game_slug: rayman-2-the-great-escape
gogslug: rayman_2_the_great_escape
humblestoreid: ''
installer_slug: rayman-2-the-great-escape-gog-ray2fix
name: 'Rayman 2: The Great Escape'
notes: "- Using Ray2Fix that provides dgVoodoo2 for better graphic performance and\
  \ stability, widescreen support and xidi for modern gamepad support\r\n- At first\
  \ launch, the game will launch in windowed. Choose your preferred language, then\
  \ in menu select Ray2Fix to enable fullscreen and widescreen mode"
runner: wine
script:
  files:
  - wrapper: https://github.com/legluondunet/mlls-tools/raw/refs/heads/master/dgVoodoo2/dgVoodoo2_79_3.zip
  - mod: https://github.com/spitfirex86/Ray2Fix/releases/download/v1.4.0/Ray2Fix_1.4.0.zip
  - gogsetup: N/A:Select the GOG setup exe
  game:
    exe: drive_c/GOG Games/Rayman 2/Rayman2.exe
    launch_configs:
    - exe: $GAMEDIR/drive_c/GOG Games/Rayman 2/R2FixCfg.exe
      name: Ray2Fix
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      name: create_prefix
      prefix: $GAMEDIR
  - extract:
      dst: $GAMEDIR/drive_c/GOG Games/Rayman 2
      file: gogsetup
      format: gog
  - extract:
      dst: $GAMEDIR/drive_c/GOG Games/Rayman 2
      file: mod
  - write_config:
      data:
        Ray2Fix:
          HalfRefRate: 0
          PatchWidescreen: 1
          Tweaks: 0
        Rayman2:
          GLI_Device: Default
          GLI_Dll: Ray2Fix
          GLI_DllFile: GliFix
          GLI_Driver: Default
          GLI_Mode: 1 - $RESOLUTION_WIDTH x $RESOLUTION_HEIGHT x 16
      file: $GAMEDIR/drive_c/GOG Games/Rayman 2/ubi.ini
  - extract:
      dst: $CACHE
      file: wrapper
  - merge:
      dst: $GAMEDIR/drive_c/GOG Games/Rayman 2
      src: $CACHE/3Dfx/x86/Glide2x.dll
  - execute:
      command: cd "$GAMEDIR/drive_c/GOG Games/Rayman 2"; sed -i "s/FullscreenAttributes\
        .*/FullscreenAttributes=fake/" dgVoodoo.conf; rm -f -r __support 3Dfx* D3DImm.dll
        DDraw.dll glide* goggame* GXSetup.exe nglide_* nGlideEULA.txt webcache.zip
        ;
  wine:
    overrides:
      dinput: n,b
      dinput8: n,b
slug: rayman-2-the-great-escape-gog-ray2fix
steamid: null
version: GOG + Ray2Fix
year: 1999
{
  "game_slug": "rayman-2-the-great-escape",
  "version": "GOG + Ray2Fix",
  "description": "Play \"Rayman 2\" provided by GOG on Linux!",
  "notes": "- Using Ray2Fix that provides dgVoodoo2 for better graphic performance and stability, widescreen support and xidi for modern gamepad support\r\n- At first launch, the game will launch in windowed. Choose your preferred language, then in menu select Ray2Fix to enable fullscreen and widescreen mode",
  "name": "Rayman 2: The Great Escape",
  "year": 1999,
  "steamid": null,
  "gogslug": "rayman_2_the_great_escape",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "rayman-2-the-great-escape-gog-ray2fix",
  "installer_slug": "rayman-2-the-great-escape-gog-ray2fix",
  "script": {
    "files": [
      {
        "wrapper": "https://github.com/legluondunet/mlls-tools/raw/refs/heads/master/dgVoodoo2/dgVoodoo2_79_3.zip"
      },
      {
        "mod": "https://github.com/spitfirex86/Ray2Fix/releases/download/v1.4.0/Ray2Fix_1.4.0.zip"
      },
      {
        "gogsetup": "N/A:Select the GOG setup exe"
      }
    ],
    "game": {
      "exe": "drive_c/GOG Games/Rayman 2/Rayman2.exe",
      "launch_configs": [
        {
          "exe": "$GAMEDIR/drive_c/GOG Games/Rayman 2/R2FixCfg.exe",
          "name": "Ray2Fix"
        }
      ],
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Rayman 2",
          "file": "gogsetup",
          "format": "gog"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Rayman 2",
          "file": "mod"
        }
      },
      {
        "write_config": {
          "data": {
            "Ray2Fix": {
              "HalfRefRate": 0,
              "PatchWidescreen": 1,
              "Tweaks": 0
            },
            "Rayman2": {
              "GLI_Device": "Default",
              "GLI_Dll": "Ray2Fix",
              "GLI_DllFile": "GliFix",
              "GLI_Driver": "Default",
              "GLI_Mode": "1 - $RESOLUTION_WIDTH x $RESOLUTION_HEIGHT x 16"
            }
          },
          "file": "$GAMEDIR/drive_c/GOG Games/Rayman 2/ubi.ini"
        }
      },
      {
        "extract": {
          "dst": "$CACHE",
          "file": "wrapper"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Rayman 2",
          "src": "$CACHE/3Dfx/x86/Glide2x.dll"
        }
      },
      {
        "execute": {
          "command": "cd \"$GAMEDIR/drive_c/GOG Games/Rayman 2\"; sed -i \"s/FullscreenAttributes\\ .*/FullscreenAttributes=fake/\" dgVoodoo.conf; rm -f -r __support 3Dfx* D3DImm.dll DDraw.dll glide* goggame* GXSetup.exe nglide_* nGlideEULA.txt webcache.zip ;"
        }
      }
    ],
    "wine": {
      "overrides": {
        "dinput": "n,b",
        "dinput8": "n,b"
      }
    }
  }
}
Back to game