files:
- mnt-script: https://codeberg.org/jacob_scharmberg/lutris-scripts/raw/branch/main/sams-abenteuer-mit-der-wunschmaschine/mount-disc.sh
game:
exe: $GAMEDIR/drive_c/Program Files (x86)/Oetinger/Das_Sams/sams.exe
prefix: $GAMEDIR
installer:
- insert-disc:
requires: zdata/sams.dat
- task:
name: create_prefix
prefix: $GAMEDIR
- move:
dst: $GAMEDIR
src: mnt-script
- execute:
command: DEV=$(findmnt -no SOURCE "$DISC") && PARENT=$(lsblk -ndo pkname $DEV)
&& if [[ $PARENT != "" ]]; then DEV=/dev/$PARENT; fi && if command -v flatpak-spawn
> /dev/null 2>&1; then flatpak-spawn --host pkexec dd if=$DEV of=$GAMEDIR/disc.iso
status=progress; else pkexec dd if=$DEV of=$GAMEDIR/disc.iso status=progress;
fi
description: Imaging CD to hard disk...
- execute:
description: Mounting Windows partition of the disc...
file: $GAMEDIR/mount-disc.sh
- task:
description: Installing the game. Please follow the instructions of the installer.
exclude_processes: qttask.exe sams.exe QuickTimePlayer
executable: $GAMEDIR/disc/setup.exe
name: wineexec
prefix: $GAMEDIR
return_code: 256
- task:
description: Killing residual QuickTime processes...
name: winekill
prefix: $GAMEDIR
system:
gamescope: true
prelaunch_command: $GAMEDIR/mount-disc.sh
prelaunch_wait: true
description: This installs the game from the CD. The game requires the CD to be present
when playing. To circumvent this, this installer images the CD to the hard disk
and sets up a script to automatically mount the image before launch.
game_slug: das-sams-abenteuer-mit-der-wunschmaschine
gogslug: ''
humblestoreid: ''
installer_slug: das-sams-abenteuer-mit-der-wu-cd-rom
name: "Das Sams \u2013 Abenteuer mit der Wunschmaschine"
notes: '* On 64-bit systems, the game throws an error upon launching, but proceeds
to work anyway.'
runner: wine
script:
files:
- mnt-script: https://codeberg.org/jacob_scharmberg/lutris-scripts/raw/branch/main/sams-abenteuer-mit-der-wunschmaschine/mount-disc.sh
game:
exe: $GAMEDIR/drive_c/Program Files (x86)/Oetinger/Das_Sams/sams.exe
prefix: $GAMEDIR
installer:
- insert-disc:
requires: zdata/sams.dat
- task:
name: create_prefix
prefix: $GAMEDIR
- move:
dst: $GAMEDIR
src: mnt-script
- execute:
command: DEV=$(findmnt -no SOURCE "$DISC") && PARENT=$(lsblk -ndo pkname $DEV)
&& if [[ $PARENT != "" ]]; then DEV=/dev/$PARENT; fi && if command -v flatpak-spawn
> /dev/null 2>&1; then flatpak-spawn --host pkexec dd if=$DEV of=$GAMEDIR/disc.iso
status=progress; else pkexec dd if=$DEV of=$GAMEDIR/disc.iso status=progress;
fi
description: Imaging CD to hard disk...
- execute:
description: Mounting Windows partition of the disc...
file: $GAMEDIR/mount-disc.sh
- task:
description: Installing the game. Please follow the instructions of the installer.
exclude_processes: qttask.exe sams.exe QuickTimePlayer
executable: $GAMEDIR/disc/setup.exe
name: wineexec
prefix: $GAMEDIR
return_code: 256
- task:
description: Killing residual QuickTime processes...
name: winekill
prefix: $GAMEDIR
system:
gamescope: true
prelaunch_command: $GAMEDIR/mount-disc.sh
prelaunch_wait: true
slug: das-sams-abenteuer-mit-der-wu-cd-rom
steamid: null
version: CD-ROM
year: 2004
{
"game_slug": "das-sams-abenteuer-mit-der-wunschmaschine",
"version": "CD-ROM",
"description": "This installs the game from the CD. The game requires the CD to be present when playing. To circumvent this, this installer images the CD to the hard disk and sets up a script to automatically mount the image before launch.",
"notes": "* On 64-bit systems, the game throws an error upon launching, but proceeds to work anyway.",
"name": "Das Sams \u2013 Abenteuer mit der Wunschmaschine",
"year": 2004,
"steamid": null,
"gogslug": "",
"humblestoreid": "",
"runner": "wine",
"slug": "das-sams-abenteuer-mit-der-wu-cd-rom",
"installer_slug": "das-sams-abenteuer-mit-der-wu-cd-rom",
"script": {
"files": [
{
"mnt-script": "https://codeberg.org/jacob_scharmberg/lutris-scripts/raw/branch/main/sams-abenteuer-mit-der-wunschmaschine/mount-disc.sh"
}
],
"game": {
"exe": "$GAMEDIR/drive_c/Program Files (x86)/Oetinger/Das_Sams/sams.exe",
"prefix": "$GAMEDIR"
},
"installer": [
{
"insert-disc": {
"requires": "zdata/sams.dat"
}
},
{
"task": {
"name": "create_prefix",
"prefix": "$GAMEDIR"
}
},
{
"move": {
"dst": "$GAMEDIR",
"src": "mnt-script"
}
},
{
"execute": {
"command": "DEV=$(findmnt -no SOURCE \"$DISC\") && PARENT=$(lsblk -ndo pkname $DEV) && if [[ $PARENT != \"\" ]]; then DEV=/dev/$PARENT; fi && if command -v flatpak-spawn > /dev/null 2>&1; then flatpak-spawn --host pkexec dd if=$DEV of=$GAMEDIR/disc.iso status=progress; else pkexec dd if=$DEV of=$GAMEDIR/disc.iso status=progress; fi",
"description": "Imaging CD to hard disk..."
}
},
{
"execute": {
"description": "Mounting Windows partition of the disc...",
"file": "$GAMEDIR/mount-disc.sh"
}
},
{
"task": {
"description": "Installing the game. Please follow the instructions of the installer.",
"exclude_processes": "qttask.exe sams.exe QuickTimePlayer",
"executable": "$GAMEDIR/disc/setup.exe",
"name": "wineexec",
"prefix": "$GAMEDIR",
"return_code": 256
}
},
{
"task": {
"description": "Killing residual QuickTime processes...",
"name": "winekill",
"prefix": "$GAMEDIR"
}
}
],
"system": {
"gamescope": true,
"prelaunch_command": "$GAMEDIR/mount-disc.sh",
"prelaunch_wait": true
}
}
}