Installer the-legacy-realm-of-terror-gog

files:
- game: N/A:Select GOG installer
- inno: https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz
game:
  main_file: $GAMEDIR/terror.conf
installer:
- write_file:
    content: '#!/bin/bash

      src=$1

      dst=$2

      find "$src" -maxdepth 1  -type d \( -iname "animatio" -o -iname "*configs" -o
      -iname "eng" -o -iname "ger" -o -iname "text" -o -iname "fra"  \) -exec cp {}
      -r "$dst" \;

      find "$src" -maxdepth 1  -type f \( -iname "*.bin" -o -iname "*.cat" -o -iname
      "*.rsc" -o -iname "*.rdf" -o -iname "*.fli" -o -iname "HVR08" -o -iname "*.gam"
      -o -iname "*.bat" -o -iname "*.cfg" -o -iname "*.scr" -o -iname "*MCC" -o -iname
      "*.lbm" -o -iname "*.lay" -o -iname "TM*" -o -iname "README*" -o -iname "*.com"
      -o -iname "outro.*" -o -iname "*.exe"  \) -exec cp {} "$dst" \;'
    file: $CACHE/selectcopy.sh
- chmodx: $CACHE/selectcopy.sh
- extract:
    dst: $CACHE
    file: $inno
- execute:
    args: -d "$CACHE" "$game"
    file: $CACHE/innoextract
- execute:
    args: $GAMEDIR/terror
    file: mkdir
- copy:
    dst: $GAMEDIR
    src: $CACHE/MANUAL.PDF
- execute:
    args: $CACHE $GAMEDIR/terror
    file: $CACHE/selectcopy.sh
- write_file:
    content: '[sdl]

      sensitivity=30

      fullresolution=desktop

      windowresolution=original

      fullscreen=true

      output=opengl

      capture_mouse = onstart middlerelease

      [render]

      aspect=true

      scaler=normal2x

      [autoexec]

      mount C "$GAMEDIR" -t dir

      C:

      cd terror

      cls

      ECHO OFF

      goto launcher

      :launcher

      cls

      ECHO  -------------------------------------------

      ECHO     The Legacy: Realm of Terror Launcher

      ECHO  -------------------------------------------

      ECHO   1) English

      ECHO   2) Deutsch

      ECHO   3) Francais

      ECHO  -------------------------------------------

      ECHO   4) Exit Program

      ECHO  -------------------------------------------


      choice /c1234 /s Which program do you want to run? [1-4]: /n

      if errorlevel 4 goto exit

      if errorlevel 3 goto fra

      if errorlevel 2 goto deu

      if errorlevel 1 goto eng


      :eng

      cls

      copy C:\terror\eng\legacy.cfg C:\terror\legacy.cfg

      legacy

      goto exit


      :deu

      cls

      copy C:\terror\ger\legacy.cfg C:\terror\legacy.cfg

      legacy

      goto exit


      :fra

      cls

      copy C:\terror\fra\legacy.cfg C:\terror\legacy.cfg

      legacy

      goto exit




      :exit

      exit'
    file: $GAMEDIR/terror.conf
description: null
game_slug: the-legacy-realm-of-terror
gogslug: retro_first_friday_collection_2
humblestoreid: ''
installer_slug: the-legacy-realm-of-terror-gog
name: 'The Legacy: Realm of Terror'
notes: ''
runner: dosbox
script:
  files:
  - game: N/A:Select GOG installer
  - inno: https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz
  game:
    main_file: $GAMEDIR/terror.conf
  installer:
  - write_file:
      content: '#!/bin/bash

        src=$1

        dst=$2

        find "$src" -maxdepth 1  -type d \( -iname "animatio" -o -iname "*configs"
        -o -iname "eng" -o -iname "ger" -o -iname "text" -o -iname "fra"  \) -exec
        cp {} -r "$dst" \;

        find "$src" -maxdepth 1  -type f \( -iname "*.bin" -o -iname "*.cat" -o -iname
        "*.rsc" -o -iname "*.rdf" -o -iname "*.fli" -o -iname "HVR08" -o -iname "*.gam"
        -o -iname "*.bat" -o -iname "*.cfg" -o -iname "*.scr" -o -iname "*MCC" -o
        -iname "*.lbm" -o -iname "*.lay" -o -iname "TM*" -o -iname "README*" -o -iname
        "*.com" -o -iname "outro.*" -o -iname "*.exe"  \) -exec cp {} "$dst" \;'
      file: $CACHE/selectcopy.sh
  - chmodx: $CACHE/selectcopy.sh
  - extract:
      dst: $CACHE
      file: $inno
  - execute:
      args: -d "$CACHE" "$game"
      file: $CACHE/innoextract
  - execute:
      args: $GAMEDIR/terror
      file: mkdir
  - copy:
      dst: $GAMEDIR
      src: $CACHE/MANUAL.PDF
  - execute:
      args: $CACHE $GAMEDIR/terror
      file: $CACHE/selectcopy.sh
  - write_file:
      content: '[sdl]

        sensitivity=30

        fullresolution=desktop

        windowresolution=original

        fullscreen=true

        output=opengl

        capture_mouse = onstart middlerelease

        [render]

        aspect=true

        scaler=normal2x

        [autoexec]

        mount C "$GAMEDIR" -t dir

        C:

        cd terror

        cls

        ECHO OFF

        goto launcher

        :launcher

        cls

        ECHO  -------------------------------------------

        ECHO     The Legacy: Realm of Terror Launcher

        ECHO  -------------------------------------------

        ECHO   1) English

        ECHO   2) Deutsch

        ECHO   3) Francais

        ECHO  -------------------------------------------

        ECHO   4) Exit Program

        ECHO  -------------------------------------------


        choice /c1234 /s Which program do you want to run? [1-4]: /n

        if errorlevel 4 goto exit

        if errorlevel 3 goto fra

        if errorlevel 2 goto deu

        if errorlevel 1 goto eng


        :eng

        cls

        copy C:\terror\eng\legacy.cfg C:\terror\legacy.cfg

        legacy

        goto exit


        :deu

        cls

        copy C:\terror\ger\legacy.cfg C:\terror\legacy.cfg

        legacy

        goto exit


        :fra

        cls

        copy C:\terror\fra\legacy.cfg C:\terror\legacy.cfg

        legacy

        goto exit




        :exit

        exit'
      file: $GAMEDIR/terror.conf
slug: the-legacy-realm-of-terror-gog
steamid: 1257890
version: GOG
year: 1993
{
  "game_slug": "the-legacy-realm-of-terror",
  "version": "GOG",
  "description": null,
  "notes": "",
  "name": "The Legacy: Realm of Terror",
  "year": 1993,
  "steamid": 1257890,
  "gogslug": "retro_first_friday_collection_2",
  "humblestoreid": "",
  "runner": "dosbox",
  "slug": "the-legacy-realm-of-terror-gog",
  "installer_slug": "the-legacy-realm-of-terror-gog",
  "script": {
    "files": [
      {
        "game": "N/A:Select GOG installer"
      },
      {
        "inno": "https://lutris.nyc3.digitaloceanspaces.com/tools/innoextract/innoextract-1.8-dev-2019-01-13-linux.tar.xz"
      }
    ],
    "game": {
      "main_file": "$GAMEDIR/terror.conf"
    },
    "installer": [
      {
        "write_file": {
          "content": "#!/bin/bash\nsrc=$1\ndst=$2\nfind \"$src\" -maxdepth 1  -type d \\( -iname \"animatio\" -o -iname \"*configs\" -o -iname \"eng\" -o -iname \"ger\" -o -iname \"text\" -o -iname \"fra\"  \\) -exec cp {} -r \"$dst\" \\;\nfind \"$src\" -maxdepth 1  -type f \\( -iname \"*.bin\" -o -iname \"*.cat\" -o -iname \"*.rsc\" -o -iname \"*.rdf\" -o -iname \"*.fli\" -o -iname \"HVR08\" -o -iname \"*.gam\" -o -iname \"*.bat\" -o -iname \"*.cfg\" -o -iname \"*.scr\" -o -iname \"*MCC\" -o -iname \"*.lbm\" -o -iname \"*.lay\" -o -iname \"TM*\" -o -iname \"README*\" -o -iname \"*.com\" -o -iname \"outro.*\" -o -iname \"*.exe\"  \\) -exec cp {} \"$dst\" \\;",
          "file": "$CACHE/selectcopy.sh"
        }
      },
      {
        "chmodx": "$CACHE/selectcopy.sh"
      },
      {
        "extract": {
          "dst": "$CACHE",
          "file": "$inno"
        }
      },
      {
        "execute": {
          "args": "-d \"$CACHE\" \"$game\"",
          "file": "$CACHE/innoextract"
        }
      },
      {
        "execute": {
          "args": "$GAMEDIR/terror",
          "file": "mkdir"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR",
          "src": "$CACHE/MANUAL.PDF"
        }
      },
      {
        "execute": {
          "args": "$CACHE $GAMEDIR/terror",
          "file": "$CACHE/selectcopy.sh"
        }
      },
      {
        "write_file": {
          "content": "[sdl]\nsensitivity=30\nfullresolution=desktop\nwindowresolution=original\nfullscreen=true\noutput=opengl\ncapture_mouse = onstart middlerelease\n[render]\naspect=true\nscaler=normal2x\n[autoexec]\nmount C \"$GAMEDIR\" -t dir\nC:\ncd terror\ncls\nECHO OFF\ngoto launcher\n:launcher\ncls\nECHO  -------------------------------------------\nECHO     The Legacy: Realm of Terror Launcher\nECHO  -------------------------------------------\nECHO   1) English\nECHO   2) Deutsch\nECHO   3) Francais\nECHO  -------------------------------------------\nECHO   4) Exit Program\nECHO  -------------------------------------------\n\nchoice /c1234 /s Which program do you want to run? [1-4]: /n\nif errorlevel 4 goto exit\nif errorlevel 3 goto fra\nif errorlevel 2 goto deu\nif errorlevel 1 goto eng\n\n:eng\ncls\ncopy C:\\terror\\eng\\legacy.cfg C:\\terror\\legacy.cfg\nlegacy\ngoto exit\n\n:deu\ncls\ncopy C:\\terror\\ger\\legacy.cfg C:\\terror\\legacy.cfg\nlegacy\ngoto exit\n\n:fra\ncls\ncopy C:\\terror\\fra\\legacy.cfg C:\\terror\\legacy.cfg\nlegacy\ngoto exit\n\n\n\n:exit\nexit",
          "file": "$GAMEDIR/terror.conf"
        }
      }
    ]
  }
}
Back to game