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
- ffmpeg:
filename: ffmpeg-linux64.tar.xz
url: https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n9.0-latest-linux64-gpl-9.0.tar.xz
game:
arch: win64
exe: drive_c/Games/Hype/MaiDFXvr_bleu.exe
launch_configs:
- exe: $GAMEDIR/drive_c/windows/syswow64/nglide_config.exe
name: Configure nGlide
prefix: $GAMEDIR
working_dir: $GAMEDIR/drive_c/Games/Hype
installer:
- task:
arch: win64
description: Creating 64-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
- extract:
description: Extracting portable FFmpeg
dst: $CACHE/ffmpeg
file: ffmpeg
- 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:
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: On'
key: Splash
name: set_regedit
path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
prefix: $GAMEDIR
type: REG_SZ
value: '1'
- execute:
command: "FFMPEG=\"$(find \"$CACHE/ffmpeg\" -type f -name ffmpeg -print -quit)\"\
\n\nif [ -z \"$FFMPEG\" ] || [ ! -f \"$FFMPEG\" ]; then\n echo \"ERROR: Portable\
\ FFmpeg is not found.\"\n exit 1\nfi\n\nchmod +x \"$FFMPEG\"\n\nif ! \"$FFMPEG\"\
\ -version >/dev/null 2>&1; then\n echo \"ERROR: Portable FFmpeg cannot be\
\ executed.\"\n exit 1\nfi\n\n# Remove the original videos.\necho \"Removing\
\ the original videos....\"\nrm -rf \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos\"\
\n\necho \"Creating writable video directories...\"\nmkdir -p \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos\"\
\n\n# Ensure that the destination is writable.\nchmod -R u+rwX \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos\"\
\ 2>/dev/null || true\n\necho \"Starting video transcoding...\"\n\n\"$FFMPEG\"\
\ -y \\\n -i \"$DISC/Gamedata/Videos/HypeIntro.avi\" \\\n -c:v cinepak \\\n\
\ -c:a copy \\\n \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos/HypeIntro.avi\"\
\ &\nPID1=$!\n\n\"$FFMPEG\" -y \\\n -i \"$DISC/Gamedata/Videos/HypeConclusion.avi\"\
\ \\\n -c:v cinepak \\\n -c:a copy \\\n \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos/HypeConclusion.avi\"\
\ &\nPID2=$!\n\n\"$FFMPEG\" -y \\\n -i \"$DISC/Gamedata/Videos/LOGO.AVI\" \\\
\n -c:v cinepak \\\n -c:a copy \\\n \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos/LOGO.AVI\"\
\ &\nPID3=$!\n\nwait \"$PID1\"\nSTATUS1=$?\n\nwait \"$PID2\"\nSTATUS2=$?\n\n\
wait \"$PID3\"\nSTATUS3=$?\n\nif [ \"$STATUS1\" -ne 0 ] || \\\n [ \"$STATUS2\"\
\ -ne 0 ] || \\\n [ \"$STATUS3\" -ne 0 ]; then\n echo \"ERROR: At least one\
\ video could not be transcoded.\"\n rm -rf \"$TMP\"\n exit 1\nfi\n\necho\
\ \"All videos transcoded successfully.\"\n"
description: Transcoding Hype videos with FFmpeg
- 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. Cutscenes are converted using ffmpeg during the installation process.\
\ Please be patient, as this may take a while. They 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
- ffmpeg:
filename: ffmpeg-linux64.tar.xz
url: https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n9.0-latest-linux64-gpl-9.0.tar.xz
game:
arch: win64
exe: drive_c/Games/Hype/MaiDFXvr_bleu.exe
launch_configs:
- exe: $GAMEDIR/drive_c/windows/syswow64/nglide_config.exe
name: Configure nGlide
prefix: $GAMEDIR
working_dir: $GAMEDIR/drive_c/Games/Hype
installer:
- task:
arch: win64
description: Creating 64-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
- extract:
description: Extracting portable FFmpeg
dst: $CACHE/ffmpeg
file: ffmpeg
- 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:
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: On'
key: Splash
name: set_regedit
path: HKEY_CURRENT_USER\Software\Zeus Software\nGlide2
prefix: $GAMEDIR
type: REG_SZ
value: '1'
- execute:
command: "FFMPEG=\"$(find \"$CACHE/ffmpeg\" -type f -name ffmpeg -print -quit)\"\
\n\nif [ -z \"$FFMPEG\" ] || [ ! -f \"$FFMPEG\" ]; then\n echo \"ERROR: Portable\
\ FFmpeg is not found.\"\n exit 1\nfi\n\nchmod +x \"$FFMPEG\"\n\nif ! \"\
$FFMPEG\" -version >/dev/null 2>&1; then\n echo \"ERROR: Portable FFmpeg\
\ cannot be executed.\"\n exit 1\nfi\n\n# Remove the original videos.\necho\
\ \"Removing the original videos....\"\nrm -rf \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos\"\
\n\necho \"Creating writable video directories...\"\nmkdir -p \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos\"\
\n\n# Ensure that the destination is writable.\nchmod -R u+rwX \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos\"\
\ 2>/dev/null || true\n\necho \"Starting video transcoding...\"\n\n\"$FFMPEG\"\
\ -y \\\n -i \"$DISC/Gamedata/Videos/HypeIntro.avi\" \\\n -c:v cinepak \\\
\n -c:a copy \\\n \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos/HypeIntro.avi\"\
\ &\nPID1=$!\n\n\"$FFMPEG\" -y \\\n -i \"$DISC/Gamedata/Videos/HypeConclusion.avi\"\
\ \\\n -c:v cinepak \\\n -c:a copy \\\n \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos/HypeConclusion.avi\"\
\ &\nPID2=$!\n\n\"$FFMPEG\" -y \\\n -i \"$DISC/Gamedata/Videos/LOGO.AVI\"\
\ \\\n -c:v cinepak \\\n -c:a copy \\\n \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos/LOGO.AVI\"\
\ &\nPID3=$!\n\nwait \"$PID1\"\nSTATUS1=$?\n\nwait \"$PID2\"\nSTATUS2=$?\n\
\nwait \"$PID3\"\nSTATUS3=$?\n\nif [ \"$STATUS1\" -ne 0 ] || \\\n [ \"$STATUS2\"\
\ -ne 0 ] || \\\n [ \"$STATUS3\" -ne 0 ]; then\n echo \"ERROR: At least\
\ one video could not be transcoded.\"\n rm -rf \"$TMP\"\n exit 1\nfi\n\n\
echo \"All videos transcoded successfully.\"\n"
description: Transcoding Hype videos with FFmpeg
- 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. Cutscenes are converted using ffmpeg during the installation process. Please be patient, as this may take a while. They 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"
}
},
{
"ffmpeg": {
"filename": "ffmpeg-linux64.tar.xz",
"url": "https://github.com/BtbN/FFmpeg-Builds/releases/download/latest/ffmpeg-n9.0-latest-linux64-gpl-9.0.tar.xz"
}
}
],
"game": {
"arch": "win64",
"exe": "drive_c/Games/Hype/MaiDFXvr_bleu.exe",
"launch_configs": [
{
"exe": "$GAMEDIR/drive_c/windows/syswow64/nglide_config.exe",
"name": "Configure nGlide"
}
],
"prefix": "$GAMEDIR",
"working_dir": "$GAMEDIR/drive_c/Games/Hype"
},
"installer": [
{
"task": {
"arch": "win64",
"description": "Creating 64-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"
}
},
{
"extract": {
"description": "Extracting portable FFmpeg",
"dst": "$CACHE/ffmpeg",
"file": "ffmpeg"
}
},
{
"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": {
"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: On",
"key": "Splash",
"name": "set_regedit",
"path": "HKEY_CURRENT_USER\\Software\\Zeus Software\\nGlide2",
"prefix": "$GAMEDIR",
"type": "REG_SZ",
"value": "1"
}
},
{
"execute": {
"command": "FFMPEG=\"$(find \"$CACHE/ffmpeg\" -type f -name ffmpeg -print -quit)\"\n\nif [ -z \"$FFMPEG\" ] || [ ! -f \"$FFMPEG\" ]; then\n echo \"ERROR: Portable FFmpeg is not found.\"\n exit 1\nfi\n\nchmod +x \"$FFMPEG\"\n\nif ! \"$FFMPEG\" -version >/dev/null 2>&1; then\n echo \"ERROR: Portable FFmpeg cannot be executed.\"\n exit 1\nfi\n\n# Remove the original videos.\necho \"Removing the original videos....\"\nrm -rf \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos\"\n\necho \"Creating writable video directories...\"\nmkdir -p \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos\"\n\n# Ensure that the destination is writable.\nchmod -R u+rwX \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos\" 2>/dev/null || true\n\necho \"Starting video transcoding...\"\n\n\"$FFMPEG\" -y \\\n -i \"$DISC/Gamedata/Videos/HypeIntro.avi\" \\\n -c:v cinepak \\\n -c:a copy \\\n \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos/HypeIntro.avi\" &\nPID1=$!\n\n\"$FFMPEG\" -y \\\n -i \"$DISC/Gamedata/Videos/HypeConclusion.avi\" \\\n -c:v cinepak \\\n -c:a copy \\\n \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos/HypeConclusion.avi\" &\nPID2=$!\n\n\"$FFMPEG\" -y \\\n -i \"$DISC/Gamedata/Videos/LOGO.AVI\" \\\n -c:v cinepak \\\n -c:a copy \\\n \"$GAMEDIR/drive_c/Games/Hype/GameData/Videos/LOGO.AVI\" &\nPID3=$!\n\nwait \"$PID1\"\nSTATUS1=$?\n\nwait \"$PID2\"\nSTATUS2=$?\n\nwait \"$PID3\"\nSTATUS3=$?\n\nif [ \"$STATUS1\" -ne 0 ] || \\\n [ \"$STATUS2\" -ne 0 ] || \\\n [ \"$STATUS3\" -ne 0 ]; then\n echo \"ERROR: At least one video could not be transcoded.\"\n rm -rf \"$TMP\"\n exit 1\nfi\n\necho \"All videos transcoded successfully.\"\n",
"description": "Transcoding Hype videos with FFmpeg"
}
},
{
"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
}
}
}