Installer mechwarrior-3-cd

files:
- game_cd: https://archive.org/download/MechWarrior3USA/MechWarrior%203%20%28USA%29.zip
- game_update: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/MechWarrior%203/mw3_update_1.2.zip
- reg_file: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/MechWarrior%203/win98.reg
- cd_tools: https://github.com/legluondunet/mlls-tools/raw/refs/heads/master/cdrtools/cdrtools.zip
- wrapper: https://github.com/legluondunet/mlls-tools/raw/master/CDAudio%20proxy%20/cdaemu.v2.05.58_build.rar
game:
  exe: drive_c/MicroProse/MechWarrior3/Mech3.exe
  prefix: $GAMEDIR
installer:
- task:
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    description: extract "MechWarrior 3" archive
    dst: $CACHE
    format: zip
    src: game_cd
- extract:
    dst: $CACHE
    format: zip
    src: cd_tools
- execute:
    command: cd "$CACHE" ; ./bin2iso "MechWarrior 3 (USA).cue" ; ./bchunk -w "MechWarrior
      3 (USA) (Track 2).bin" "MechWarrior 3 (USA).cue" "MechWarrior 3 (USA)" ; mv
      "MechWarrior 3 (USA)03.wav" track02.wav ; ./bchunk -w "MechWarrior 3 (USA) (Track
      3).bin" "MechWarrior 3 (USA).cue" "MechWarrior 3 (USA)" ;  mv "MechWarrior 3
      (USA)03.wav" track03.wav ;
- extract:
    description: extract "MechWarrior 3" data
    dst: $CACHE/CD
    file: $CACHE/MechWarrior 3 (USA) (Track 1)-01.iso
    format: iso
- task:
    filename: reg_file
    name: set_regedit_file
- task:
    description: Installing "MechWarrior 3"...
    executable: $CACHE/CD/Setup.exe
    name: wineexec
    prefix: $GAMEDIR
- merge:
    dst: $GAMEDIR/drive_c/MicroProse/MechWarrior3/backup
    src: $GAMEDIR/drive_c/MicroProse/MechWarrior3/Mech3.exe
- extract:
    dst: $GAMEDIR/drive_c/MicroProse/MechWarrior3
    src: game_update
- merge:
    dst: $GAMEDIR/drive_c/MicroProse/MechWarrior3/video
    src: $CACHE/CD/video
- extract:
    dst: $GAMEDIR/drive_c/MicroProse/MechWarrior3
    src: wrapper
- merge:
    dst: $GAMEDIR/drive_c/MicroProse/MechWarrior3/Music
    src: $CACHE/track02.wav
- merge:
    dst: $GAMEDIR/drive_c/MicroProse/MechWarrior3/Music
    src: $CACHE/track03.wav
- task:
    app: avifil32 directplay
    name: winetricks
    silent: true
system:
  gamescope: true
  gamescope_fps_limiter: '30'
wine:
  overrides:
    winmm: n,b
description: Play "MechWarrior 3" CD edition on Linux!
game_slug: mechwarrior-3
gogslug: ''
humblestoreid: ''
installer_slug: mechwarrior-3-cd
name: MechWarrior 3
notes: '- Known issues: This game does not support Alt-Tab, you will loose mouse interaction.
  Workaround: use Gamescope'
runner: wine
script:
  files:
  - game_cd: https://archive.org/download/MechWarrior3USA/MechWarrior%203%20%28USA%29.zip
  - game_update: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/MechWarrior%203/mw3_update_1.2.zip
  - reg_file: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/MechWarrior%203/win98.reg
  - cd_tools: https://github.com/legluondunet/mlls-tools/raw/refs/heads/master/cdrtools/cdrtools.zip
  - wrapper: https://github.com/legluondunet/mlls-tools/raw/master/CDAudio%20proxy%20/cdaemu.v2.05.58_build.rar
  game:
    exe: drive_c/MicroProse/MechWarrior3/Mech3.exe
    prefix: $GAMEDIR
  installer:
  - task:
      name: create_prefix
      prefix: $GAMEDIR
  - extract:
      description: extract "MechWarrior 3" archive
      dst: $CACHE
      format: zip
      src: game_cd
  - extract:
      dst: $CACHE
      format: zip
      src: cd_tools
  - execute:
      command: cd "$CACHE" ; ./bin2iso "MechWarrior 3 (USA).cue" ; ./bchunk -w "MechWarrior
        3 (USA) (Track 2).bin" "MechWarrior 3 (USA).cue" "MechWarrior 3 (USA)" ; mv
        "MechWarrior 3 (USA)03.wav" track02.wav ; ./bchunk -w "MechWarrior 3 (USA)
        (Track 3).bin" "MechWarrior 3 (USA).cue" "MechWarrior 3 (USA)" ;  mv "MechWarrior
        3 (USA)03.wav" track03.wav ;
  - extract:
      description: extract "MechWarrior 3" data
      dst: $CACHE/CD
      file: $CACHE/MechWarrior 3 (USA) (Track 1)-01.iso
      format: iso
  - task:
      filename: reg_file
      name: set_regedit_file
  - task:
      description: Installing "MechWarrior 3"...
      executable: $CACHE/CD/Setup.exe
      name: wineexec
      prefix: $GAMEDIR
  - merge:
      dst: $GAMEDIR/drive_c/MicroProse/MechWarrior3/backup
      src: $GAMEDIR/drive_c/MicroProse/MechWarrior3/Mech3.exe
  - extract:
      dst: $GAMEDIR/drive_c/MicroProse/MechWarrior3
      src: game_update
  - merge:
      dst: $GAMEDIR/drive_c/MicroProse/MechWarrior3/video
      src: $CACHE/CD/video
  - extract:
      dst: $GAMEDIR/drive_c/MicroProse/MechWarrior3
      src: wrapper
  - merge:
      dst: $GAMEDIR/drive_c/MicroProse/MechWarrior3/Music
      src: $CACHE/track02.wav
  - merge:
      dst: $GAMEDIR/drive_c/MicroProse/MechWarrior3/Music
      src: $CACHE/track03.wav
  - task:
      app: avifil32 directplay
      name: winetricks
      silent: true
  system:
    gamescope: true
    gamescope_fps_limiter: '30'
  wine:
    overrides:
      winmm: n,b
slug: mechwarrior-3-cd
steamid: null
version: CD
year: 1999
{
  "game_slug": "mechwarrior-3",
  "version": "CD",
  "description": "Play \"MechWarrior 3\" CD edition on Linux!",
  "notes": "- Known issues: This game does not support Alt-Tab, you will loose mouse interaction. Workaround: use Gamescope",
  "name": "MechWarrior 3",
  "year": 1999,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "mechwarrior-3-cd",
  "installer_slug": "mechwarrior-3-cd",
  "script": {
    "files": [
      {
        "game_cd": "https://archive.org/download/MechWarrior3USA/MechWarrior%203%20%28USA%29.zip"
      },
      {
        "game_update": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/MechWarrior%203/mw3_update_1.2.zip"
      },
      {
        "reg_file": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/MechWarrior%203/win98.reg"
      },
      {
        "cd_tools": "https://github.com/legluondunet/mlls-tools/raw/refs/heads/master/cdrtools/cdrtools.zip"
      },
      {
        "wrapper": "https://github.com/legluondunet/mlls-tools/raw/master/CDAudio%20proxy%20/cdaemu.v2.05.58_build.rar"
      }
    ],
    "game": {
      "exe": "drive_c/MicroProse/MechWarrior3/Mech3.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "description": "extract \"MechWarrior 3\" archive",
          "dst": "$CACHE",
          "format": "zip",
          "src": "game_cd"
        }
      },
      {
        "extract": {
          "dst": "$CACHE",
          "format": "zip",
          "src": "cd_tools"
        }
      },
      {
        "execute": {
          "command": "cd \"$CACHE\" ; ./bin2iso \"MechWarrior 3 (USA).cue\" ; ./bchunk -w \"MechWarrior 3 (USA) (Track 2).bin\" \"MechWarrior 3 (USA).cue\" \"MechWarrior 3 (USA)\" ; mv \"MechWarrior 3 (USA)03.wav\" track02.wav ; ./bchunk -w \"MechWarrior 3 (USA) (Track 3).bin\" \"MechWarrior 3 (USA).cue\" \"MechWarrior 3 (USA)\" ;  mv \"MechWarrior 3 (USA)03.wav\" track03.wav ;"
        }
      },
      {
        "extract": {
          "description": "extract \"MechWarrior 3\" data",
          "dst": "$CACHE/CD",
          "file": "$CACHE/MechWarrior 3 (USA) (Track 1)-01.iso",
          "format": "iso"
        }
      },
      {
        "task": {
          "filename": "reg_file",
          "name": "set_regedit_file"
        }
      },
      {
        "task": {
          "description": "Installing \"MechWarrior 3\"...",
          "executable": "$CACHE/CD/Setup.exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/MicroProse/MechWarrior3/backup",
          "src": "$GAMEDIR/drive_c/MicroProse/MechWarrior3/Mech3.exe"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/MicroProse/MechWarrior3",
          "src": "game_update"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/MicroProse/MechWarrior3/video",
          "src": "$CACHE/CD/video"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/MicroProse/MechWarrior3",
          "src": "wrapper"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/MicroProse/MechWarrior3/Music",
          "src": "$CACHE/track02.wav"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/MicroProse/MechWarrior3/Music",
          "src": "$CACHE/track03.wav"
        }
      },
      {
        "task": {
          "app": "avifil32 directplay",
          "name": "winetricks",
          "silent": true
        }
      }
    ],
    "system": {
      "gamescope": true,
      "gamescope_fps_limiter": "30"
    },
    "wine": {
      "overrides": {
        "winmm": "n,b"
      }
    }
  }
}
Back to game