Installer hype-the-time-quest-windows

files:
- hypepatch: https://www.zeus-software.com/files/nglide/hype_patch.zip
- nglide:
    filename: nGlide_setup.exe
    url: https://www.zeus-software.com/downloads/nglide/d-1.html
game:
  arch: win32
  exe: drive_c/Games/Hype/MaiDFXvr_bleu.exe
  launch_configs:
  - exe: $GAMEDIR/drive_c/windows/system32/nglide_config.exe
    name: Configure nGlide
  prefix: $GAMEDIR
  working_dir: $GAMEDIR/drive_c/Games/Hype
installer:
- task:
    arch: win32
    description: Creating 32-bit Wine prefix
    install_gecko: false
    install_mono: false
    name: create_prefix
    prefix: $GAMEDIR
- execute:
    command: 'mkdir -p "$GAMEDIR/drive_c/Games/Hype/GameData/World/Levels"

      mkdir -p "$GAMEDIR/drive_c/Games/Hype/GameData/World/Sound"

      mkdir -p "$GAMEDIR/drive_c/Games/Hype/GameData/SaveGame"

      mkdir -p "$GAMEDIR/drive_c/Games/Hype/Ubisoft"

      '
    description: Creating game directories
- insert-disc:
    requires: exe/GLI.ini
- merge:
    description: Copying DSETUP.DLL
    dst: $GAMEDIR/drive_c/Games/Hype/
    src: $DISC/DSETUP.DLL
- merge:
    description: Copying DSETUP16.DLL
    dst: $GAMEDIR/drive_c/Games/Hype/
    src: $DISC/DSETUP16.DLL
- merge:
    description: Copying DSETUP32.DLL
    dst: $GAMEDIR/drive_c/Games/Hype/
    src: $DISC/DSETUP32.DLL
- merge:
    description: Copying Hype.ico
    dst: $GAMEDIR/drive_c/Games/Hype/
    src: $DISC/Hype.ico
- merge:
    description: Copying DLL folder
    dst: $GAMEDIR/drive_c/Games/Hype/DLL
    src: $DISC/DLL
- merge:
    description: Copying Gamedata folder
    dst: $GAMEDIR/drive_c/Games/Hype/GameData
    src: $DISC/Gamedata
- merge:
    description: Copying InstData folder
    dst: $GAMEDIR/drive_c/Games/Hype/InstData
    src: $DISC/InstData
- merge:
    description: Copying GLI.ini
    dst: $GAMEDIR/drive_c/Games/Hype/
    src: $DISC/exe/GLI.ini
- extract:
    description: Extracting official Ubisoft patch
    dst: $CACHE/hypepatch
    file: hypepatch
- merge:
    description: Copying patched Glide executable
    dst: $GAMEDIR/drive_c/Games/Hype/
    src: $CACHE/hypepatch/MaiDFXvr_bleu.exe
- execute:
    command: printf '\x39\xc0\x90' | dd of="$GAMEDIR/drive_c/Games/Hype/MaiDFXvr_bleu.exe"
      bs=1 seek=320301 conv=notrunc
    description: Applying NoCD patch
- merge:
    description: Copying UbiConfig files
    dst: $GAMEDIR/drive_c/Games/Hype/
    src: $DISC/exe/UbiConfig
- input_menu:
    description: 'Choose the game''s language:'
    id: LANG
    options:
    - English: English
    - French: French
    - German: German
    - Polish: Polish
    preselect: English
- merge:
    description: Copying language-specific level data
    dst: $GAMEDIR/drive_c/Games/Hype/GameData/World/Levels
    src: $DISC/LangData/$INPUT_LANG/world/levels
- merge:
    description: Copying language-specific sound files
    dst: $GAMEDIR/drive_c/Games/Hype/GameData/World/Sound
    src: $DISC/Gamedata/World/Sound/$INPUT_LANG
- task:
    app: mfc42
    description: Installing Visual C++ 6.0 runtime
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- task:
    app: icodecs
    description: Installing Indeo video codecs
    name: winetricks
    prefix: $GAMEDIR
    silent: true
- task:
    args: /S
    description: Installing nGlide wrapper
    executable: nglide
    name: wineexec
    prefix: $GAMEDIR
- task:
    description: 'Configuring nGlide Video backend: Vulkan'
    key: Backend
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
    prefix: $GAMEDIR
    type: REG_SZ
    value: '2'
- task:
    description: 'Configuring nGlide Screen resolution: By desktop'
    key: Resolution
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
    prefix: $GAMEDIR
    type: REG_SZ
    value: '1'
- task:
    description: 'Configuring nGlide Aspect ratio: Aspect correction'
    key: Aspect
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
    prefix: $GAMEDIR
    type: REG_SZ
    value: '1'
- task:
    description: 'Configuring nGlide 3Dfx logo splash screen: Off'
    key: Splash
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
    prefix: $GAMEDIR
    type: REG_SZ
    value: '0'
- write_file:
    content: '[SYSTEM]

      Memory=255

      MMX=1

      Windows colors=34


      [INSTALLED PRODUCTS]

      Hype - The Time Quest


      [Hype - The Time Quest]

      PlayVideo=1

      SoundStream=1

      SoundOnHD=1

      MaxRAMForAGP=AUTO

      MipMapping=AUTO

      LowGraphicMode=0

      ChangeMapMusic=0

      Complete=1

      ExecutableType=3DFX

      ForceVideoMode=DXMedia

      Language=$INPUT_LANG

      Configuration=0

      VolumeName=Hype

      SrcDataPath=C:\Games\Hype\GameData\

      Directory=C:\Games\Hype\


      [OSD]

      Valid=TRUE

      '
    file: $GAMEDIR/drive_c/Games/Hype/Ubisoft/ubi.ini
wine:
  dxvk: false
description: ''
game_slug: hype-the-time-quest
gogslug: ''
humblestoreid: ''
installer_slug: hype-the-time-quest-windows
name: Hype - The Time Quest
notes: "Pre-configured to use your desktop resolution while keeping the original 4:3\
  \ aspect ratio. The videos should play, but may be cropped.\r\nThe patch to remove\
  \ SafeDisk, for compatibility with modern Windows, still checked that the media\
  \ is mounted in a disc drive (including mounted ISOs). For convenience to run in\
  \ Wine, a small patch is added to disable this check entirely."
runner: wine
script:
  files:
  - hypepatch: https://www.zeus-software.com/files/nglide/hype_patch.zip
  - nglide:
      filename: nGlide_setup.exe
      url: https://www.zeus-software.com/downloads/nglide/d-1.html
  game:
    arch: win32
    exe: drive_c/Games/Hype/MaiDFXvr_bleu.exe
    launch_configs:
    - exe: $GAMEDIR/drive_c/windows/system32/nglide_config.exe
      name: Configure nGlide
    prefix: $GAMEDIR
    working_dir: $GAMEDIR/drive_c/Games/Hype
  installer:
  - task:
      arch: win32
      description: Creating 32-bit Wine prefix
      install_gecko: false
      install_mono: false
      name: create_prefix
      prefix: $GAMEDIR
  - execute:
      command: 'mkdir -p "$GAMEDIR/drive_c/Games/Hype/GameData/World/Levels"

        mkdir -p "$GAMEDIR/drive_c/Games/Hype/GameData/World/Sound"

        mkdir -p "$GAMEDIR/drive_c/Games/Hype/GameData/SaveGame"

        mkdir -p "$GAMEDIR/drive_c/Games/Hype/Ubisoft"

        '
      description: Creating game directories
  - insert-disc:
      requires: exe/GLI.ini
  - merge:
      description: Copying DSETUP.DLL
      dst: $GAMEDIR/drive_c/Games/Hype/
      src: $DISC/DSETUP.DLL
  - merge:
      description: Copying DSETUP16.DLL
      dst: $GAMEDIR/drive_c/Games/Hype/
      src: $DISC/DSETUP16.DLL
  - merge:
      description: Copying DSETUP32.DLL
      dst: $GAMEDIR/drive_c/Games/Hype/
      src: $DISC/DSETUP32.DLL
  - merge:
      description: Copying Hype.ico
      dst: $GAMEDIR/drive_c/Games/Hype/
      src: $DISC/Hype.ico
  - merge:
      description: Copying DLL folder
      dst: $GAMEDIR/drive_c/Games/Hype/DLL
      src: $DISC/DLL
  - merge:
      description: Copying Gamedata folder
      dst: $GAMEDIR/drive_c/Games/Hype/GameData
      src: $DISC/Gamedata
  - merge:
      description: Copying InstData folder
      dst: $GAMEDIR/drive_c/Games/Hype/InstData
      src: $DISC/InstData
  - merge:
      description: Copying GLI.ini
      dst: $GAMEDIR/drive_c/Games/Hype/
      src: $DISC/exe/GLI.ini
  - extract:
      description: Extracting official Ubisoft patch
      dst: $CACHE/hypepatch
      file: hypepatch
  - merge:
      description: Copying patched Glide executable
      dst: $GAMEDIR/drive_c/Games/Hype/
      src: $CACHE/hypepatch/MaiDFXvr_bleu.exe
  - execute:
      command: printf '\x39\xc0\x90' | dd of="$GAMEDIR/drive_c/Games/Hype/MaiDFXvr_bleu.exe"
        bs=1 seek=320301 conv=notrunc
      description: Applying NoCD patch
  - merge:
      description: Copying UbiConfig files
      dst: $GAMEDIR/drive_c/Games/Hype/
      src: $DISC/exe/UbiConfig
  - input_menu:
      description: 'Choose the game''s language:'
      id: LANG
      options:
      - English: English
      - French: French
      - German: German
      - Polish: Polish
      preselect: English
  - merge:
      description: Copying language-specific level data
      dst: $GAMEDIR/drive_c/Games/Hype/GameData/World/Levels
      src: $DISC/LangData/$INPUT_LANG/world/levels
  - merge:
      description: Copying language-specific sound files
      dst: $GAMEDIR/drive_c/Games/Hype/GameData/World/Sound
      src: $DISC/Gamedata/World/Sound/$INPUT_LANG
  - task:
      app: mfc42
      description: Installing Visual C++ 6.0 runtime
      name: winetricks
      prefix: $GAMEDIR
      silent: true
  - task:
      app: icodecs
      description: Installing Indeo video codecs
      name: winetricks
      prefix: $GAMEDIR
      silent: true
  - task:
      args: /S
      description: Installing nGlide wrapper
      executable: nglide
      name: wineexec
      prefix: $GAMEDIR
  - task:
      description: 'Configuring nGlide Video backend: Vulkan'
      key: Backend
      name: set_regedit
      path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
      prefix: $GAMEDIR
      type: REG_SZ
      value: '2'
  - task:
      description: 'Configuring nGlide Screen resolution: By desktop'
      key: Resolution
      name: set_regedit
      path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
      prefix: $GAMEDIR
      type: REG_SZ
      value: '1'
  - task:
      description: 'Configuring nGlide Aspect ratio: Aspect correction'
      key: Aspect
      name: set_regedit
      path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
      prefix: $GAMEDIR
      type: REG_SZ
      value: '1'
  - task:
      description: 'Configuring nGlide 3Dfx logo splash screen: Off'
      key: Splash
      name: set_regedit
      path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
      prefix: $GAMEDIR
      type: REG_SZ
      value: '0'
  - write_file:
      content: '[SYSTEM]

        Memory=255

        MMX=1

        Windows colors=34


        [INSTALLED PRODUCTS]

        Hype - The Time Quest


        [Hype - The Time Quest]

        PlayVideo=1

        SoundStream=1

        SoundOnHD=1

        MaxRAMForAGP=AUTO

        MipMapping=AUTO

        LowGraphicMode=0

        ChangeMapMusic=0

        Complete=1

        ExecutableType=3DFX

        ForceVideoMode=DXMedia

        Language=$INPUT_LANG

        Configuration=0

        VolumeName=Hype

        SrcDataPath=C:\Games\Hype\GameData\

        Directory=C:\Games\Hype\


        [OSD]

        Valid=TRUE

        '
      file: $GAMEDIR/drive_c/Games/Hype/Ubisoft/ubi.ini
  wine:
    dxvk: false
slug: hype-the-time-quest-windows
steamid: null
version: Windows
year: 1999
{
  "game_slug": "hype-the-time-quest",
  "version": "Windows",
  "description": "",
  "notes": "Pre-configured to use your desktop resolution while keeping the original 4:3 aspect ratio. The videos should play, but may be cropped.\r\nThe patch to remove SafeDisk, for compatibility with modern Windows, still checked that the media is mounted in a disc drive (including mounted ISOs). For convenience to run in Wine, a small patch is added to disable this check entirely.",
  "name": "Hype - The Time Quest",
  "year": 1999,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "hype-the-time-quest-windows",
  "installer_slug": "hype-the-time-quest-windows",
  "script": {
    "files": [
      {
        "hypepatch": "https://www.zeus-software.com/files/nglide/hype_patch.zip"
      },
      {
        "nglide": {
          "filename": "nGlide_setup.exe",
          "url": "https://www.zeus-software.com/downloads/nglide/d-1.html"
        }
      }
    ],
    "game": {
      "arch": "win32",
      "exe": "drive_c/Games/Hype/MaiDFXvr_bleu.exe",
      "launch_configs": [
        {
          "exe": "$GAMEDIR/drive_c/windows/system32/nglide_config.exe",
          "name": "Configure nGlide"
        }
      ],
      "prefix": "$GAMEDIR",
      "working_dir": "$GAMEDIR/drive_c/Games/Hype"
    },
    "installer": [
      {
        "task": {
          "arch": "win32",
          "description": "Creating 32-bit Wine prefix",
          "install_gecko": false,
          "install_mono": false,
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "execute": {
          "command": "mkdir -p \"$GAMEDIR/drive_c/Games/Hype/GameData/World/Levels\"\nmkdir -p \"$GAMEDIR/drive_c/Games/Hype/GameData/World/Sound\"\nmkdir -p \"$GAMEDIR/drive_c/Games/Hype/GameData/SaveGame\"\nmkdir -p \"$GAMEDIR/drive_c/Games/Hype/Ubisoft\"\n",
          "description": "Creating game directories"
        }
      },
      {
        "insert-disc": {
          "requires": "exe/GLI.ini"
        }
      },
      {
        "merge": {
          "description": "Copying DSETUP.DLL",
          "dst": "$GAMEDIR/drive_c/Games/Hype/",
          "src": "$DISC/DSETUP.DLL"
        }
      },
      {
        "merge": {
          "description": "Copying DSETUP16.DLL",
          "dst": "$GAMEDIR/drive_c/Games/Hype/",
          "src": "$DISC/DSETUP16.DLL"
        }
      },
      {
        "merge": {
          "description": "Copying DSETUP32.DLL",
          "dst": "$GAMEDIR/drive_c/Games/Hype/",
          "src": "$DISC/DSETUP32.DLL"
        }
      },
      {
        "merge": {
          "description": "Copying Hype.ico",
          "dst": "$GAMEDIR/drive_c/Games/Hype/",
          "src": "$DISC/Hype.ico"
        }
      },
      {
        "merge": {
          "description": "Copying DLL folder",
          "dst": "$GAMEDIR/drive_c/Games/Hype/DLL",
          "src": "$DISC/DLL"
        }
      },
      {
        "merge": {
          "description": "Copying Gamedata folder",
          "dst": "$GAMEDIR/drive_c/Games/Hype/GameData",
          "src": "$DISC/Gamedata"
        }
      },
      {
        "merge": {
          "description": "Copying InstData folder",
          "dst": "$GAMEDIR/drive_c/Games/Hype/InstData",
          "src": "$DISC/InstData"
        }
      },
      {
        "merge": {
          "description": "Copying GLI.ini",
          "dst": "$GAMEDIR/drive_c/Games/Hype/",
          "src": "$DISC/exe/GLI.ini"
        }
      },
      {
        "extract": {
          "description": "Extracting official Ubisoft patch",
          "dst": "$CACHE/hypepatch",
          "file": "hypepatch"
        }
      },
      {
        "merge": {
          "description": "Copying patched Glide executable",
          "dst": "$GAMEDIR/drive_c/Games/Hype/",
          "src": "$CACHE/hypepatch/MaiDFXvr_bleu.exe"
        }
      },
      {
        "execute": {
          "command": "printf '\\x39\\xc0\\x90' | dd of=\"$GAMEDIR/drive_c/Games/Hype/MaiDFXvr_bleu.exe\" bs=1 seek=320301 conv=notrunc",
          "description": "Applying NoCD patch"
        }
      },
      {
        "merge": {
          "description": "Copying UbiConfig files",
          "dst": "$GAMEDIR/drive_c/Games/Hype/",
          "src": "$DISC/exe/UbiConfig"
        }
      },
      {
        "input_menu": {
          "description": "Choose the game's language:",
          "id": "LANG",
          "options": [
            {
              "English": "English"
            },
            {
              "French": "French"
            },
            {
              "German": "German"
            },
            {
              "Polish": "Polish"
            }
          ],
          "preselect": "English"
        }
      },
      {
        "merge": {
          "description": "Copying language-specific level data",
          "dst": "$GAMEDIR/drive_c/Games/Hype/GameData/World/Levels",
          "src": "$DISC/LangData/$INPUT_LANG/world/levels"
        }
      },
      {
        "merge": {
          "description": "Copying language-specific sound files",
          "dst": "$GAMEDIR/drive_c/Games/Hype/GameData/World/Sound",
          "src": "$DISC/Gamedata/World/Sound/$INPUT_LANG"
        }
      },
      {
        "task": {
          "app": "mfc42",
          "description": "Installing Visual C++ 6.0 runtime",
          "name": "winetricks",
          "prefix": "$GAMEDIR",
          "silent": true
        }
      },
      {
        "task": {
          "app": "icodecs",
          "description": "Installing Indeo video codecs",
          "name": "winetricks",
          "prefix": "$GAMEDIR",
          "silent": true
        }
      },
      {
        "task": {
          "args": "/S",
          "description": "Installing nGlide wrapper",
          "executable": "nglide",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "description": "Configuring nGlide Video backend: Vulkan",
          "key": "Backend",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Software\\Zeus Software\\nGlide2",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "2"
        }
      },
      {
        "task": {
          "description": "Configuring nGlide Screen resolution: By desktop",
          "key": "Resolution",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Software\\Zeus Software\\nGlide2",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "1"
        }
      },
      {
        "task": {
          "description": "Configuring nGlide Aspect ratio: Aspect correction",
          "key": "Aspect",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Software\\Zeus Software\\nGlide2",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "1"
        }
      },
      {
        "task": {
          "description": "Configuring nGlide 3Dfx logo splash screen: Off",
          "key": "Splash",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Software\\Zeus Software\\nGlide2",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "0"
        }
      },
      {
        "write_file": {
          "content": "[SYSTEM]\nMemory=255\nMMX=1\nWindows colors=34\n\n[INSTALLED PRODUCTS]\nHype - The Time Quest\n\n[Hype - The Time Quest]\nPlayVideo=1\nSoundStream=1\nSoundOnHD=1\nMaxRAMForAGP=AUTO\nMipMapping=AUTO\nLowGraphicMode=0\nChangeMapMusic=0\nComplete=1\nExecutableType=3DFX\nForceVideoMode=DXMedia\nLanguage=$INPUT_LANG\nConfiguration=0\nVolumeName=Hype\nSrcDataPath=C:\\Games\\Hype\\GameData\\\nDirectory=C:\\Games\\Hype\\\n\n[OSD]\nValid=TRUE\n",
          "file": "$GAMEDIR/drive_c/Games/Hype/Ubisoft/ubi.ini"
        }
      }
    ],
    "wine": {
      "dxvk": false
    }
  }
}
Back to game