Installer rayman-forever-gog-patches

files:
- game: N/A:Please select the GOG installer
- tpls: https://github.com/PluMGMK/rayman-tpls-tsr/releases/download/v3.1.1/rayman-tpls-tsr.zip
- cutscenes: https://www.dropbox.com/scl/fi/u2dtyz50id79urkp073vw/RAYMAN.zip?rlkey=0cao4y3vjsaci6netinv355g9&dl=1
- unlocklang: https://github.com/PluMGMK/ray1_unlocklang/releases/download/v0.2.0/ray1_unlocklang.exe
game:
  config_file: __support/app/dosboxRayman.conf
  launch_configs:
  - args: -c "set GAME=Rayman" -conf "$GAMEDIR/__support/app/dosboxRayman.conf" -conf
      "$GAMEDIR/__support/app/dosboxRayman_single.conf"
    name: Rayman
  - args: -c "set GAME=Designer" -conf "$GAMEDIR/__support/app/dosboxRayman.conf"
      -conf "$GAMEDIR/__support/app/dosboxRayman_single.conf"
    name: Rayman Designer
  - args: -c "set GAME=Fans" -conf "$GAMEDIR/__support/app/dosboxRayman.conf" -conf
      "$GAMEDIR/__support/app/dosboxRayman_single.conf"
    name: Rayman by his Fans
  - args: -conf "$GAMEDIR/__support/app/languageSelector.conf"
    name: Change Language
  main_file: $GAMEDIR/__support/app/dosboxRayman_single.conf
  working_dir: $GAMEDIR/Rayman
installer:
- input_menu:
    description: 'Choose your preferred game''s language:'
    id: LANG
    options:
    - en: English
    - fr: French
    - de: German
    preselect: en
- extract:
    description: Extracting game files
    dst: $GAMEDIR
    src: game
- extract:
    description: Extracting soundtrack patch
    dst: $GAMEDIR/tpls
    src: tpls
- mkdir: $GAMEDIR/cloud_saves
- task:
    args: $GAMEDIR/Rayman/RAYMAN.EXE
    description: Apply multi language patch
    executable: unlocklang
    name: wine.wineexec
- extract:
    dst: $GAMEDIR/Rayman
    file: cutscenes
- execute:
    command: dd if="$GAMEDIR/Rayman/RAYMAN.CFG" of="$GAMEDIR/Rayman/RAYMAN.cfg.tpl"
      bs=1 skip=1
- mkdir: $GAMEDIR/Rayman/lang
- execute:
    command: '{ echo -ne "\\x00"; cat $GAMEDIR/Rayman/RAYMAN.cfg.tpl; } > "$GAMEDIR/Rayman/lang/en.bin";

      { echo -ne "\\x01"; cat $GAMEDIR/Rayman/RAYMAN.cfg.tpl; } > "$GAMEDIR/Rayman/lang/fr.bin";

      { echo -ne "\\x02"; cat $GAMEDIR/Rayman/RAYMAN.cfg.tpl; } > "$GAMEDIR/Rayman/lang/de.bin";

      '
- write_file:
    content: set LANG=$INPUT_LANG
    file: $GAMEDIR/__support/app/lang.bat
- write_file:
    content: "[autoexec]\n@echo off\ncls\n\n@ECHO  ----------------------------\n\
      @ECHO  Select a Language\n@ECHO  ----------------------------\n@ECHO on\n@ECHO\
      \ off\n@ECHO  1) English\n@ECHO  2) Fran\xE7ais (French)\n@ECHO  3) Deutsch\
      \  (German)\n@ECHO on\n@ECHO off\n@ECHO  ----------------------------\n@ECHO\
      \  4) exit program             \n@ECHO  ----------------------------\n@ECHO\
      \ on \n@ECHO off\n@choice /c1234 /s Which language do you want to set? [1-4]:\
      \ /n\nif errorlevel 1 set LANG=en\nif errorlevel 2 set LANG=fr\nif errorlevel\
      \ 3 set LANG=de\nif errorlevel 4 goto exit\n\n\nmount C ../__support/app\nC:\n\
      echo set LANG=%LANG% > lang.bat\ncls\n:exit\nexit\n"
    file: $GAMEDIR/__support/app/languageSelector.conf.tpl
- execute:
    command: iconv -f utf-8 -t cp437 "$GAMEDIR/__support/app/languageSelector.conf.tpl"
      > "$GAMEDIR/__support/app/languageSelector.conf"
- execute:
    command: rm "$GAMEDIR/__support/app/languageSelector.conf.tpl"
- execute:
    args: -i -e "/^imgmount/{ x; d }" -e "/\[autoexec\]/{" -e 'a mount X ../__support/app'
      -e 'a call X:\\LANG.bat' -e 'a mount -u X' -e 'a if "%GAME%" == "Rayman" goto
      rayman' -e 'a if "%GAME%" == "Designer" goto designer' -e 'a if "%GAME%" ==
      "Fans" goto fans' -e "}" -e "/:\(designer\|fans\)/{ p; g; }" -e "/:rayman/{"
      -e 'p; g; s/".*"/"..\\tpls\\TPLSTSR4.cue"/;' -e 'a D:\\TPLSTSR4.EXE' -e "}"
      -e "/RAYMAN\\.EXE/{" -e 'i copy "lang\\%LANG%.bin" "RAYMAN.CFG"' -e 'i cls'
      -e "}" -e "/RAYKIT\\.EXE/{" -e 'i set VERSION=usa' -e 'i if "%LANG%" == "fr"
      set VERSION=fr' -e 'i if "%LANG%" == "de" set VERSION=al' -e 's/ver=usa/ver=%VERSION%/'
      -e "}" $GAMEDIR/__support/app/dosboxRayman_single.conf
    file: sed
description: Freely change the language after the installation
game_slug: rayman-forever
gogslug: rayman_bundle
humblestoreid: ''
installer_slug: rayman-forever-gog-patches
name: Rayman Forever
notes: Use the "Change Language" start entry to change the language at any time.
runner: dosbox
script:
  files:
  - game: N/A:Please select the GOG installer
  - tpls: https://github.com/PluMGMK/rayman-tpls-tsr/releases/download/v3.1.1/rayman-tpls-tsr.zip
  - cutscenes: https://www.dropbox.com/scl/fi/u2dtyz50id79urkp073vw/RAYMAN.zip?rlkey=0cao4y3vjsaci6netinv355g9&dl=1
  - unlocklang: https://github.com/PluMGMK/ray1_unlocklang/releases/download/v0.2.0/ray1_unlocklang.exe
  game:
    config_file: __support/app/dosboxRayman.conf
    launch_configs:
    - args: -c "set GAME=Rayman" -conf "$GAMEDIR/__support/app/dosboxRayman.conf"
        -conf "$GAMEDIR/__support/app/dosboxRayman_single.conf"
      name: Rayman
    - args: -c "set GAME=Designer" -conf "$GAMEDIR/__support/app/dosboxRayman.conf"
        -conf "$GAMEDIR/__support/app/dosboxRayman_single.conf"
      name: Rayman Designer
    - args: -c "set GAME=Fans" -conf "$GAMEDIR/__support/app/dosboxRayman.conf" -conf
        "$GAMEDIR/__support/app/dosboxRayman_single.conf"
      name: Rayman by his Fans
    - args: -conf "$GAMEDIR/__support/app/languageSelector.conf"
      name: Change Language
    main_file: $GAMEDIR/__support/app/dosboxRayman_single.conf
    working_dir: $GAMEDIR/Rayman
  installer:
  - input_menu:
      description: 'Choose your preferred game''s language:'
      id: LANG
      options:
      - en: English
      - fr: French
      - de: German
      preselect: en
  - extract:
      description: Extracting game files
      dst: $GAMEDIR
      src: game
  - extract:
      description: Extracting soundtrack patch
      dst: $GAMEDIR/tpls
      src: tpls
  - mkdir: $GAMEDIR/cloud_saves
  - task:
      args: $GAMEDIR/Rayman/RAYMAN.EXE
      description: Apply multi language patch
      executable: unlocklang
      name: wine.wineexec
  - extract:
      dst: $GAMEDIR/Rayman
      file: cutscenes
  - execute:
      command: dd if="$GAMEDIR/Rayman/RAYMAN.CFG" of="$GAMEDIR/Rayman/RAYMAN.cfg.tpl"
        bs=1 skip=1
  - mkdir: $GAMEDIR/Rayman/lang
  - execute:
      command: '{ echo -ne "\\x00"; cat $GAMEDIR/Rayman/RAYMAN.cfg.tpl; } > "$GAMEDIR/Rayman/lang/en.bin";

        { echo -ne "\\x01"; cat $GAMEDIR/Rayman/RAYMAN.cfg.tpl; } > "$GAMEDIR/Rayman/lang/fr.bin";

        { echo -ne "\\x02"; cat $GAMEDIR/Rayman/RAYMAN.cfg.tpl; } > "$GAMEDIR/Rayman/lang/de.bin";

        '
  - write_file:
      content: set LANG=$INPUT_LANG
      file: $GAMEDIR/__support/app/lang.bat
  - write_file:
      content: "[autoexec]\n@echo off\ncls\n\n@ECHO  ----------------------------\n\
        @ECHO  Select a Language\n@ECHO  ----------------------------\n@ECHO on\n\
        @ECHO off\n@ECHO  1) English\n@ECHO  2) Fran\xE7ais (French)\n@ECHO  3) Deutsch\
        \  (German)\n@ECHO on\n@ECHO off\n@ECHO  ----------------------------\n@ECHO\
        \  4) exit program             \n@ECHO  ----------------------------\n@ECHO\
        \ on \n@ECHO off\n@choice /c1234 /s Which language do you want to set? [1-4]:\
        \ /n\nif errorlevel 1 set LANG=en\nif errorlevel 2 set LANG=fr\nif errorlevel\
        \ 3 set LANG=de\nif errorlevel 4 goto exit\n\n\nmount C ../__support/app\n\
        C:\necho set LANG=%LANG% > lang.bat\ncls\n:exit\nexit\n"
      file: $GAMEDIR/__support/app/languageSelector.conf.tpl
  - execute:
      command: iconv -f utf-8 -t cp437 "$GAMEDIR/__support/app/languageSelector.conf.tpl"
        > "$GAMEDIR/__support/app/languageSelector.conf"
  - execute:
      command: rm "$GAMEDIR/__support/app/languageSelector.conf.tpl"
  - execute:
      args: -i -e "/^imgmount/{ x; d }" -e "/\[autoexec\]/{" -e 'a mount X ../__support/app'
        -e 'a call X:\\LANG.bat' -e 'a mount -u X' -e 'a if "%GAME%" == "Rayman" goto
        rayman' -e 'a if "%GAME%" == "Designer" goto designer' -e 'a if "%GAME%" ==
        "Fans" goto fans' -e "}" -e "/:\(designer\|fans\)/{ p; g; }" -e "/:rayman/{"
        -e 'p; g; s/".*"/"..\\tpls\\TPLSTSR4.cue"/;' -e 'a D:\\TPLSTSR4.EXE' -e "}"
        -e "/RAYMAN\\.EXE/{" -e 'i copy "lang\\%LANG%.bin" "RAYMAN.CFG"' -e 'i cls'
        -e "}" -e "/RAYKIT\\.EXE/{" -e 'i set VERSION=usa' -e 'i if "%LANG%" == "fr"
        set VERSION=fr' -e 'i if "%LANG%" == "de" set VERSION=al' -e 's/ver=usa/ver=%VERSION%/'
        -e "}" $GAMEDIR/__support/app/dosboxRayman_single.conf
      file: sed
slug: rayman-forever-gog-patches
steamid: null
version: GOG + Patches
year: 1998
{
  "game_slug": "rayman-forever",
  "version": "GOG + Patches",
  "description": "Freely change the language after the installation",
  "notes": "Use the \"Change Language\" start entry to change the language at any time.",
  "name": "Rayman Forever",
  "year": 1998,
  "steamid": null,
  "gogslug": "rayman_bundle",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "rayman-forever-gog-patches",
  "installer_slug": "rayman-forever-gog-patches",
  "script": {
    "files": [
      {
        "game": "N/A:Please select the GOG installer"
      },
      {
        "tpls": "https://github.com/PluMGMK/rayman-tpls-tsr/releases/download/v3.1.1/rayman-tpls-tsr.zip"
      },
      {
        "cutscenes": "https://www.dropbox.com/scl/fi/u2dtyz50id79urkp073vw/RAYMAN.zip?rlkey=0cao4y3vjsaci6netinv355g9&dl=1"
      },
      {
        "unlocklang": "https://github.com/PluMGMK/ray1_unlocklang/releases/download/v0.2.0/ray1_unlocklang.exe"
      }
    ],
    "game": {
      "config_file": "__support/app/dosboxRayman.conf",
      "launch_configs": [
        {
          "args": "-c \"set GAME=Rayman\" -conf \"$GAMEDIR/__support/app/dosboxRayman.conf\" -conf \"$GAMEDIR/__support/app/dosboxRayman_single.conf\"",
          "name": "Rayman"
        },
        {
          "args": "-c \"set GAME=Designer\" -conf \"$GAMEDIR/__support/app/dosboxRayman.conf\" -conf \"$GAMEDIR/__support/app/dosboxRayman_single.conf\"",
          "name": "Rayman Designer"
        },
        {
          "args": "-c \"set GAME=Fans\" -conf \"$GAMEDIR/__support/app/dosboxRayman.conf\" -conf \"$GAMEDIR/__support/app/dosboxRayman_single.conf\"",
          "name": "Rayman by his Fans"
        },
        {
          "args": "-conf \"$GAMEDIR/__support/app/languageSelector.conf\"",
          "name": "Change Language"
        }
      ],
      "main_file": "$GAMEDIR/__support/app/dosboxRayman_single.conf",
      "working_dir": "$GAMEDIR/Rayman"
    },
    "installer": [
      {
        "input_menu": {
          "description": "Choose your preferred game's language:",
          "id": "LANG",
          "options": [
            {
              "en": "English"
            },
            {
              "fr": "French"
            },
            {
              "de": "German"
            }
          ],
          "preselect": "en"
        }
      },
      {
        "extract": {
          "description": "Extracting game files",
          "dst": "$GAMEDIR",
          "src": "game"
        }
      },
      {
        "extract": {
          "description": "Extracting soundtrack patch",
          "dst": "$GAMEDIR/tpls",
          "src": "tpls"
        }
      },
      {
        "mkdir": "$GAMEDIR/cloud_saves"
      },
      {
        "task": {
          "args": "$GAMEDIR/Rayman/RAYMAN.EXE",
          "description": "Apply multi language patch",
          "executable": "unlocklang",
          "name": "wine.wineexec"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/Rayman",
          "file": "cutscenes"
        }
      },
      {
        "execute": {
          "command": "dd if=\"$GAMEDIR/Rayman/RAYMAN.CFG\" of=\"$GAMEDIR/Rayman/RAYMAN.cfg.tpl\" bs=1 skip=1"
        }
      },
      {
        "mkdir": "$GAMEDIR/Rayman/lang"
      },
      {
        "execute": {
          "command": "{ echo -ne \"\\\\x00\"; cat $GAMEDIR/Rayman/RAYMAN.cfg.tpl; } > \"$GAMEDIR/Rayman/lang/en.bin\";\n{ echo -ne \"\\\\x01\"; cat $GAMEDIR/Rayman/RAYMAN.cfg.tpl; } > \"$GAMEDIR/Rayman/lang/fr.bin\";\n{ echo -ne \"\\\\x02\"; cat $GAMEDIR/Rayman/RAYMAN.cfg.tpl; } > \"$GAMEDIR/Rayman/lang/de.bin\";\n"
        }
      },
      {
        "write_file": {
          "content": "set LANG=$INPUT_LANG",
          "file": "$GAMEDIR/__support/app/lang.bat"
        }
      },
      {
        "write_file": {
          "content": "[autoexec]\n@echo off\ncls\n\n@ECHO  ----------------------------\n@ECHO  Select a Language\n@ECHO  ----------------------------\n@ECHO on\n@ECHO off\n@ECHO  1) English\n@ECHO  2) Fran\u00e7ais (French)\n@ECHO  3) Deutsch  (German)\n@ECHO on\n@ECHO off\n@ECHO  ----------------------------\n@ECHO  4) exit program             \n@ECHO  ----------------------------\n@ECHO on \n@ECHO off\n@choice /c1234 /s Which language do you want to set? [1-4]: /n\nif errorlevel 1 set LANG=en\nif errorlevel 2 set LANG=fr\nif errorlevel 3 set LANG=de\nif errorlevel 4 goto exit\n\n\nmount C ../__support/app\nC:\necho set LANG=%LANG% > lang.bat\ncls\n:exit\nexit\n",
          "file": "$GAMEDIR/__support/app/languageSelector.conf.tpl"
        }
      },
      {
        "execute": {
          "command": "iconv -f utf-8 -t cp437 \"$GAMEDIR/__support/app/languageSelector.conf.tpl\" > \"$GAMEDIR/__support/app/languageSelector.conf\""
        }
      },
      {
        "execute": {
          "command": "rm \"$GAMEDIR/__support/app/languageSelector.conf.tpl\""
        }
      },
      {
        "execute": {
          "args": "-i -e \"/^imgmount/{ x; d }\" -e \"/\\[autoexec\\]/{\" -e 'a mount X ../__support/app' -e 'a call X:\\\\LANG.bat' -e 'a mount -u X' -e 'a if \"%GAME%\" == \"Rayman\" goto rayman' -e 'a if \"%GAME%\" == \"Designer\" goto designer' -e 'a if \"%GAME%\" == \"Fans\" goto fans' -e \"}\" -e \"/:\\(designer\\|fans\\)/{ p; g; }\" -e \"/:rayman/{\" -e 'p; g; s/\".*\"/\"..\\\\tpls\\\\TPLSTSR4.cue\"/;' -e 'a D:\\\\TPLSTSR4.EXE' -e \"}\" -e \"/RAYMAN\\\\.EXE/{\" -e 'i copy \"lang\\\\%LANG%.bin\" \"RAYMAN.CFG\"' -e 'i cls' -e \"}\" -e \"/RAYKIT\\\\.EXE/{\" -e 'i set VERSION=usa' -e 'i if \"%LANG%\" == \"fr\" set VERSION=fr' -e 'i if \"%LANG%\" == \"de\" set VERSION=al' -e 's/ver=usa/ver=%VERSION%/' -e \"}\" $GAMEDIR/__support/app/dosboxRayman_single.conf",
          "file": "sed"
        }
      }
    ]
  }
}
Back to game