Installer theme-hospital-gog-corsixth-appimag

files:
- gogsetup: N/A:Please select the GOG installer
- engine:
    filename: CorsixTH.AppImage
    url: https://github.com/CorsixTH/CorsixTH/releases/download/v0.69.0-beta1/CorsixTH-v0.69.0-beta1-x86_64.AppImage
- game_music: https://www.dropbox.com/scl/fi/hkk96of5d1ph3qcu6uqln/Theme-Hospital-Remastered-Krytie2X4B-OGG.zip?rlkey=de3nzsw0gv16vusb87guiwzwm&st=s8bo1isd&dl=1#
- game_cfg: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Theme%20Hospital/config.txt
game:
  args: --config-file=$GAMEDIR/config.txt
  exe: $GAMEDIR/CorsixTH.AppImage
installer:
- chmodx: engine
- copy:
    dst: $GAMEDIR
    src: engine
- copy:
    dst: $GAMEDIR
    src: game_cfg
- extract:
    dst: $GAMEDIR/TH
    file: gogsetup
    format: gog
- extract:
    dst: $GAMEDIR/music
    file: game_music
- input_menu:
    description: 'Choose the game''s language:'
    id: LANG
    options:
    - en: English
    - fr: French
    - de: German
    - es: Spanish
    - it: Italian
    - sv: Swedish
    preselect: en
- execute:
    command: cd "$GAMEDIR"; mkdir CorsixTH.AppImage.home CorsixTH.AppImage.config;
      sed -i -e "s/theme_hospital_install.*/theme_hospital_install = [[TH]]/g" -e
      "s/audio_music.*/audio_music = [[music]]/g" -e "s/.*language.*/language = [[$INPUT_LANG]]/g"
      -e "s/width =.*/width = $RESOLUTION_WIDTH/g" -e "s/height = .*/height = $RESOLUTION_HEIGHT/g"
      -e "s/audio_frequency.*/audio_frequency = 48000/g" -e "s/audio_buffer_size.*/audio_buffer_size
      = 4096/g" config.txt
description: Play "Theme Hospital" provided by GOG on Linux!
game_slug: theme-hospital
gogslug: theme_hospital
humblestoreid: ''
installer_slug: theme-hospital-gog-corsixth-appimag
name: Theme Hospital
notes: "- Using CorsixTH open source engine\r\n- Includes Theme Hospital soundtrack\
  \ remastered by Krytie2X4B\r\n- Multilanguage: choose your preferred language for\
  \ interface and game texts between English (default), French, German, Spanish, Italian,\
  \ Swedish"
runner: linux
script:
  files:
  - gogsetup: N/A:Please select the GOG installer
  - engine:
      filename: CorsixTH.AppImage
      url: https://github.com/CorsixTH/CorsixTH/releases/download/v0.69.0-beta1/CorsixTH-v0.69.0-beta1-x86_64.AppImage
  - game_music: https://www.dropbox.com/scl/fi/hkk96of5d1ph3qcu6uqln/Theme-Hospital-Remastered-Krytie2X4B-OGG.zip?rlkey=de3nzsw0gv16vusb87guiwzwm&st=s8bo1isd&dl=1#
  - game_cfg: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Theme%20Hospital/config.txt
  game:
    args: --config-file=$GAMEDIR/config.txt
    exe: $GAMEDIR/CorsixTH.AppImage
  installer:
  - chmodx: engine
  - copy:
      dst: $GAMEDIR
      src: engine
  - copy:
      dst: $GAMEDIR
      src: game_cfg
  - extract:
      dst: $GAMEDIR/TH
      file: gogsetup
      format: gog
  - extract:
      dst: $GAMEDIR/music
      file: game_music
  - input_menu:
      description: 'Choose the game''s language:'
      id: LANG
      options:
      - en: English
      - fr: French
      - de: German
      - es: Spanish
      - it: Italian
      - sv: Swedish
      preselect: en
  - execute:
      command: cd "$GAMEDIR"; mkdir CorsixTH.AppImage.home CorsixTH.AppImage.config;
        sed -i -e "s/theme_hospital_install.*/theme_hospital_install = [[TH]]/g" -e
        "s/audio_music.*/audio_music = [[music]]/g" -e "s/.*language.*/language =
        [[$INPUT_LANG]]/g" -e "s/width =.*/width = $RESOLUTION_WIDTH/g" -e "s/height
        = .*/height = $RESOLUTION_HEIGHT/g" -e "s/audio_frequency.*/audio_frequency
        = 48000/g" -e "s/audio_buffer_size.*/audio_buffer_size = 4096/g" config.txt
slug: theme-hospital-gog-corsixth-appimag
steamid: null
version: GOG + CorsixTH AppImage
year: 1997
{
  "game_slug": "theme-hospital",
  "version": "GOG + CorsixTH AppImage",
  "description": "Play \"Theme Hospital\" provided by GOG on Linux!",
  "notes": "- Using CorsixTH open source engine\r\n- Includes Theme Hospital soundtrack remastered by Krytie2X4B\r\n- Multilanguage: choose your preferred language for interface and game texts between English (default), French, German, Spanish, Italian, Swedish",
  "name": "Theme Hospital",
  "year": 1997,
  "steamid": null,
  "gogslug": "theme_hospital",
  "humblestoreid": "",
  "runner": "linux",
  "slug": "theme-hospital-gog-corsixth-appimag",
  "installer_slug": "theme-hospital-gog-corsixth-appimag",
  "script": {
    "files": [
      {
        "gogsetup": "N/A:Please select the GOG installer"
      },
      {
        "engine": {
          "filename": "CorsixTH.AppImage",
          "url": "https://github.com/CorsixTH/CorsixTH/releases/download/v0.69.0-beta1/CorsixTH-v0.69.0-beta1-x86_64.AppImage"
        }
      },
      {
        "game_music": "https://www.dropbox.com/scl/fi/hkk96of5d1ph3qcu6uqln/Theme-Hospital-Remastered-Krytie2X4B-OGG.zip?rlkey=de3nzsw0gv16vusb87guiwzwm&st=s8bo1isd&dl=1#"
      },
      {
        "game_cfg": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Theme%20Hospital/config.txt"
      }
    ],
    "game": {
      "args": "--config-file=$GAMEDIR/config.txt",
      "exe": "$GAMEDIR/CorsixTH.AppImage"
    },
    "installer": [
      {
        "chmodx": "engine"
      },
      {
        "copy": {
          "dst": "$GAMEDIR",
          "src": "engine"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR",
          "src": "game_cfg"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/TH",
          "file": "gogsetup",
          "format": "gog"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/music",
          "file": "game_music"
        }
      },
      {
        "input_menu": {
          "description": "Choose the game's language:",
          "id": "LANG",
          "options": [
            {
              "en": "English"
            },
            {
              "fr": "French"
            },
            {
              "de": "German"
            },
            {
              "es": "Spanish"
            },
            {
              "it": "Italian"
            },
            {
              "sv": "Swedish"
            }
          ],
          "preselect": "en"
        }
      },
      {
        "execute": {
          "command": "cd \"$GAMEDIR\"; mkdir CorsixTH.AppImage.home CorsixTH.AppImage.config; sed -i -e \"s/theme_hospital_install.*/theme_hospital_install = [[TH]]/g\" -e \"s/audio_music.*/audio_music = [[music]]/g\" -e \"s/.*language.*/language = [[$INPUT_LANG]]/g\" -e \"s/width =.*/width = $RESOLUTION_WIDTH/g\" -e \"s/height = .*/height = $RESOLUTION_HEIGHT/g\" -e \"s/audio_frequency.*/audio_frequency = 48000/g\" -e \"s/audio_buffer_size.*/audio_buffer_size = 4096/g\" config.txt"
        }
      }
    ]
  }
}
Back to game