Installer 3-d-ultra-radio-control-racer-cd

files:
- music: https://archive.org/download/rc-racers-music/RC-Racers-Music.zip
- dxwnd: https://sourceforge.net/projects/dxwnd/files/latest/download
game:
  args: -window
  exe: drive_c/Sierra/RCRacersDeluxe/RCRacers.exe
  prefix: $GAMEDIR
installer:
- insert-disc:
    requires: RCRacersDeluxe
- task:
    exclude_processes: notepad.exe rcracers.exe
    executable: $DISC/autorun.exe
    name: wineexec
- task:
    description: Killing the game if directly started from installer...
    name: winekill
    prefix: $GAMEDIR
- execute:
    command: if command -v flatpak-spawn > /dev/null 2>&1; then echo 0xEB | flatpak-spawn
      --host xxd -r | dd of="$GAMEDIR/drive_c/Sierra/RCRacersDeluxe/RCRacers.exe"
      seek=7035B conv=notrunc; else echo 0xEB | xxd -r | dd of="$GAMEDIR/drive_c/Sierra/RCRacersDeluxe/RCRacers.exe"
      seek=7035B conv=notrunc; fi
    description: Patching executable for NoCD...
- extract:
    description: Installing music...
    dst: $CACHE/dxwnd
    file: dxwnd
- merge:
    dst: $GAMEDIR/drive_c/Sierra/RCRacersDeluxe/
    src: $CACHE/dxwnd/dxwplay.dll
- merge:
    dst: $GAMEDIR/drive_c/Sierra/RCRacersDeluxe/
    src: $CACHE/dxwnd/libogg.dll
- merge:
    dst: $GAMEDIR/drive_c/Sierra/RCRacersDeluxe/
    src: $CACHE/dxwnd/libvorbis.dll
- merge:
    dst: $GAMEDIR/drive_c/Sierra/RCRacersDeluxe/
    src: $CACHE/dxwnd/libvorbisfile.dll
- merge:
    dst: $GAMEDIR/drive_c/Sierra/RCRacersDeluxe/
    src: $CACHE/dxwnd/vcda/winmm.dll
- merge:
    dst: $GAMEDIR/drive_c/Sierra/RCRacersDeluxe/
    src: $CACHE/dxwnd/vcda/winmm.ini
- extract:
    dst: $GAMEDIR/drive_c/Sierra/RCRacersDeluxe/Music
    file: music
wine:
  overrides:
    winmm.dll: n,b
description: Automatically patches the game executable for NoCD.
game_slug: 3-d-ultra-radio-control-racers
gogslug: ''
humblestoreid: ''
installer_slug: 3-d-ultra-radio-control-racer-cd
name: 3-D Ultra Radio Control Racers
notes: "Manual steps:\r\n* Use GE-Proton, other versions I have tested have problems\
  \ in the menu.\r\n\r\nNotes:\r\n* Fullscreen races have issues, so this installer\
  \ launches races in windowed mode. Unfortunately, windowed mode only supports 800x600\
  \ resolution. If you open the graphics menu in-game, it reverts to fullscreen races\
  \ (even if you don't change any settings in that menu). If you want to change any\
  \ graphics settings, I suggest you restart the game afterwards so it opens races\
  \ windowed again.\r\n* This automatically installs DxWnd for CD-DA emulation so\
  \ we have music without the CD."
runner: wine
script:
  files:
  - music: https://archive.org/download/rc-racers-music/RC-Racers-Music.zip
  - dxwnd: https://sourceforge.net/projects/dxwnd/files/latest/download
  game:
    args: -window
    exe: drive_c/Sierra/RCRacersDeluxe/RCRacers.exe
    prefix: $GAMEDIR
  installer:
  - insert-disc:
      requires: RCRacersDeluxe
  - task:
      exclude_processes: notepad.exe rcracers.exe
      executable: $DISC/autorun.exe
      name: wineexec
  - task:
      description: Killing the game if directly started from installer...
      name: winekill
      prefix: $GAMEDIR
  - execute:
      command: if command -v flatpak-spawn > /dev/null 2>&1; then echo 0xEB | flatpak-spawn
        --host xxd -r | dd of="$GAMEDIR/drive_c/Sierra/RCRacersDeluxe/RCRacers.exe"
        seek=7035B conv=notrunc; else echo 0xEB | xxd -r | dd of="$GAMEDIR/drive_c/Sierra/RCRacersDeluxe/RCRacers.exe"
        seek=7035B conv=notrunc; fi
      description: Patching executable for NoCD...
  - extract:
      description: Installing music...
      dst: $CACHE/dxwnd
      file: dxwnd
  - merge:
      dst: $GAMEDIR/drive_c/Sierra/RCRacersDeluxe/
      src: $CACHE/dxwnd/dxwplay.dll
  - merge:
      dst: $GAMEDIR/drive_c/Sierra/RCRacersDeluxe/
      src: $CACHE/dxwnd/libogg.dll
  - merge:
      dst: $GAMEDIR/drive_c/Sierra/RCRacersDeluxe/
      src: $CACHE/dxwnd/libvorbis.dll
  - merge:
      dst: $GAMEDIR/drive_c/Sierra/RCRacersDeluxe/
      src: $CACHE/dxwnd/libvorbisfile.dll
  - merge:
      dst: $GAMEDIR/drive_c/Sierra/RCRacersDeluxe/
      src: $CACHE/dxwnd/vcda/winmm.dll
  - merge:
      dst: $GAMEDIR/drive_c/Sierra/RCRacersDeluxe/
      src: $CACHE/dxwnd/vcda/winmm.ini
  - extract:
      dst: $GAMEDIR/drive_c/Sierra/RCRacersDeluxe/Music
      file: music
  wine:
    overrides:
      winmm.dll: n,b
slug: 3-d-ultra-radio-control-racer-cd
steamid: null
version: CD
year: 1999
{
  "game_slug": "3-d-ultra-radio-control-racers",
  "version": "CD",
  "description": "Automatically patches the game executable for NoCD.",
  "notes": "Manual steps:\r\n* Use GE-Proton, other versions I have tested have problems in the menu.\r\n\r\nNotes:\r\n* Fullscreen races have issues, so this installer launches races in windowed mode. Unfortunately, windowed mode only supports 800x600 resolution. If you open the graphics menu in-game, it reverts to fullscreen races (even if you don't change any settings in that menu). If you want to change any graphics settings, I suggest you restart the game afterwards so it opens races windowed again.\r\n* This automatically installs DxWnd for CD-DA emulation so we have music without the CD.",
  "name": "3-D Ultra Radio Control Racers",
  "year": 1999,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "3-d-ultra-radio-control-racer-cd",
  "installer_slug": "3-d-ultra-radio-control-racer-cd",
  "script": {
    "files": [
      {
        "music": "https://archive.org/download/rc-racers-music/RC-Racers-Music.zip"
      },
      {
        "dxwnd": "https://sourceforge.net/projects/dxwnd/files/latest/download"
      }
    ],
    "game": {
      "args": "-window",
      "exe": "drive_c/Sierra/RCRacersDeluxe/RCRacers.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "insert-disc": {
          "requires": "RCRacersDeluxe"
        }
      },
      {
        "task": {
          "exclude_processes": "notepad.exe rcracers.exe",
          "executable": "$DISC/autorun.exe",
          "name": "wineexec"
        }
      },
      {
        "task": {
          "description": "Killing the game if directly started from installer...",
          "name": "winekill",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "execute": {
          "command": "if command -v flatpak-spawn > /dev/null 2>&1; then echo 0xEB | flatpak-spawn --host xxd -r | dd of=\"$GAMEDIR/drive_c/Sierra/RCRacersDeluxe/RCRacers.exe\" seek=7035B conv=notrunc; else echo 0xEB | xxd -r | dd of=\"$GAMEDIR/drive_c/Sierra/RCRacersDeluxe/RCRacers.exe\" seek=7035B conv=notrunc; fi",
          "description": "Patching executable for NoCD..."
        }
      },
      {
        "extract": {
          "description": "Installing music...",
          "dst": "$CACHE/dxwnd",
          "file": "dxwnd"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Sierra/RCRacersDeluxe/",
          "src": "$CACHE/dxwnd/dxwplay.dll"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Sierra/RCRacersDeluxe/",
          "src": "$CACHE/dxwnd/libogg.dll"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Sierra/RCRacersDeluxe/",
          "src": "$CACHE/dxwnd/libvorbis.dll"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Sierra/RCRacersDeluxe/",
          "src": "$CACHE/dxwnd/libvorbisfile.dll"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Sierra/RCRacersDeluxe/",
          "src": "$CACHE/dxwnd/vcda/winmm.dll"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Sierra/RCRacersDeluxe/",
          "src": "$CACHE/dxwnd/vcda/winmm.ini"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Sierra/RCRacersDeluxe/Music",
          "file": "music"
        }
      }
    ],
    "wine": {
      "overrides": {
        "winmm.dll": "n,b"
      }
    }
  }
}
Back to game