Installer mechwarrior-4-mercenaries-cd-dgvoodoo2

files:
- game_cd1: https://archive.org/download/mw-4-mercs-02_202103/MW4MERCS_01.iso
- game_cd2: https://archive.org/download/mw-4-mercs-02_202103/MW4MERCS_02.iso
- wrapper: https://github.com/legluondunet/mlls-tools/raw/refs/heads/master/dgVoodoo2/dgVoodoo2_79_3.zip
- game_patch: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Mechwarrior%204%20-%20Mercenaries/mw4m_patch_pr1.7z
- game_options: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Mechwarrior%204%20-%20Mercenaries/options.ini
game:
  args: -noautoconfig
  exclude_processes: dplaysvr.exe
  exe: drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries/MW4Mercs_pr1_nocd.exe
  launch_configs:
  - exe: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries/autoconfig_MERCS.exe
    name: Configure graphic options
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating Wine prefix...
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    description: Extracting "MechWarrior 4 - Mercenaries" CD1 archive
    dst: $CACHE
    file: game_cd1
    format: iso
- extract:
    description: Extracting "MechWarrior 4 - Mercenaries" CD2 archive
    dst: $CACHE
    file: game_cd2
    format: iso
- extract:
    description: Extracting "MechWarrior 4 - Mercenaries" CD2 archive
    dst: $GAMEDIR/drive_c/CD
    file: game_cd2
    format: iso
- task:
    description: Installing "MechWarrior 4 - Mercenaries", let all options to default,
      do not launch game at the end of install
    executable: $CACHE/SETUP.EXE
    name: wineexec
    return_code: 256
- extract:
    description: Patching game...
    dst: $CACHE
    file: game_patch
    format: 7z
- execute:
    args: '''$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries'''
    description: Applying "MechWarrior 4 - Mercenaries" patch Point Release 1
    file: $CACHE/apply.sh
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries
    src: $CACHE/files
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries
    src: game_options
- execute:
    command: cd "$GAMEDIR/dosdevices" ; ln -s "$GAMEDIR/drive_c/CD" 'a:';
- task:
    key: CDPath
    name: set_regedit
    path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Microsoft Games\MechWarrior
      Mercenaries
    type: REG_SZ
    value: A:\\
- write_file:
    content: MW4MERCS_02
    file: $GAMEDIR/drive_c/CD/.windows-label
- task:
    app: quartz amstream directplay
    description: Installing dependencies with Winetricks...
    name: winetricks
    silent: true
- extract:
    description: Installing dgVoodoo2...
    dst: $CACHE
    file: wrapper
- copy:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries
    src: $CACHE/MS/x86/DDraw.dll
- copy:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries
    src: $CACHE/MS/x86/D3DImm.dll
- copy:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries
    src: $CACHE/dgVoodooCpl.exe
- write_file:
    content: '[GeneralExt]

      FPSLimit=30

      [DirectX]

      dgVoodooWatermark=False'
    file: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries/dgVoodoo.conf
wine:
  overrides:
    ddraw: n,b
description: Play "MechWarrior 4 - Mercenaries" CD edition on Linux!
game_slug: mechwarrior-4-mercenaries
gogslug: ''
humblestoreid: ''
installer_slug: mechwarrior-4-mercenaries-cd-dgvoodoo2
name: 'MechWarrior 4: Mercenaries'
notes: "- Using dgVoodoo2 for better graphic stability\r\n- Patch Point Release 1\
  \ included\r\n- Known issues:\r\n-- When you first launch the game, you will get\
  \ the following error message: \"Error outside main thread\". Close all windows,\
  \ then relaunch the game. This error message will no longer appear\r\n-- After starting\
  \ a multiplayer game, the game will not close properly; you will have to force it\
  \ to close"
runner: wine
script:
  files:
  - game_cd1: https://archive.org/download/mw-4-mercs-02_202103/MW4MERCS_01.iso
  - game_cd2: https://archive.org/download/mw-4-mercs-02_202103/MW4MERCS_02.iso
  - wrapper: https://github.com/legluondunet/mlls-tools/raw/refs/heads/master/dgVoodoo2/dgVoodoo2_79_3.zip
  - game_patch: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Mechwarrior%204%20-%20Mercenaries/mw4m_patch_pr1.7z
  - game_options: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Mechwarrior%204%20-%20Mercenaries/options.ini
  game:
    args: -noautoconfig
    exclude_processes: dplaysvr.exe
    exe: drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries/MW4Mercs_pr1_nocd.exe
    launch_configs:
    - exe: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries/autoconfig_MERCS.exe
      name: Configure graphic options
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      description: Creating Wine prefix...
      name: create_prefix
      prefix: $GAMEDIR
  - extract:
      description: Extracting "MechWarrior 4 - Mercenaries" CD1 archive
      dst: $CACHE
      file: game_cd1
      format: iso
  - extract:
      description: Extracting "MechWarrior 4 - Mercenaries" CD2 archive
      dst: $CACHE
      file: game_cd2
      format: iso
  - extract:
      description: Extracting "MechWarrior 4 - Mercenaries" CD2 archive
      dst: $GAMEDIR/drive_c/CD
      file: game_cd2
      format: iso
  - task:
      description: Installing "MechWarrior 4 - Mercenaries", let all options to default,
        do not launch game at the end of install
      executable: $CACHE/SETUP.EXE
      name: wineexec
      return_code: 256
  - extract:
      description: Patching game...
      dst: $CACHE
      file: game_patch
      format: 7z
  - execute:
      args: '''$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries'''
      description: Applying "MechWarrior 4 - Mercenaries" patch Point Release 1
      file: $CACHE/apply.sh
  - merge:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries
      src: $CACHE/files
  - merge:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries
      src: game_options
  - execute:
      command: cd "$GAMEDIR/dosdevices" ; ln -s "$GAMEDIR/drive_c/CD" 'a:';
  - task:
      key: CDPath
      name: set_regedit
      path: HKEY_LOCAL_MACHINE\Software\Wow6432Node\Microsoft\Microsoft Games\MechWarrior
        Mercenaries
      type: REG_SZ
      value: A:\\
  - write_file:
      content: MW4MERCS_02
      file: $GAMEDIR/drive_c/CD/.windows-label
  - task:
      app: quartz amstream directplay
      description: Installing dependencies with Winetricks...
      name: winetricks
      silent: true
  - extract:
      description: Installing dgVoodoo2...
      dst: $CACHE
      file: wrapper
  - copy:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries
      src: $CACHE/MS/x86/DDraw.dll
  - copy:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries
      src: $CACHE/MS/x86/D3DImm.dll
  - copy:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries
      src: $CACHE/dgVoodooCpl.exe
  - write_file:
      content: '[GeneralExt]

        FPSLimit=30

        [DirectX]

        dgVoodooWatermark=False'
      file: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries/dgVoodoo.conf
  wine:
    overrides:
      ddraw: n,b
slug: mechwarrior-4-mercenaries-cd-dgvoodoo2
steamid: null
version: CD + dgVoodoo2
year: 2002
{
  "game_slug": "mechwarrior-4-mercenaries",
  "version": "CD + dgVoodoo2",
  "description": "Play \"MechWarrior 4 - Mercenaries\" CD edition on Linux!",
  "notes": "- Using dgVoodoo2 for better graphic stability\r\n- Patch Point Release 1 included\r\n- Known issues:\r\n-- When you first launch the game, you will get the following error message: \"Error outside main thread\". Close all windows, then relaunch the game. This error message will no longer appear\r\n-- After starting a multiplayer game, the game will not close properly; you will have to force it to close",
  "name": "MechWarrior 4: Mercenaries",
  "year": 2002,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "mechwarrior-4-mercenaries-cd-dgvoodoo2",
  "installer_slug": "mechwarrior-4-mercenaries-cd-dgvoodoo2",
  "script": {
    "files": [
      {
        "game_cd1": "https://archive.org/download/mw-4-mercs-02_202103/MW4MERCS_01.iso"
      },
      {
        "game_cd2": "https://archive.org/download/mw-4-mercs-02_202103/MW4MERCS_02.iso"
      },
      {
        "wrapper": "https://github.com/legluondunet/mlls-tools/raw/refs/heads/master/dgVoodoo2/dgVoodoo2_79_3.zip"
      },
      {
        "game_patch": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Mechwarrior%204%20-%20Mercenaries/mw4m_patch_pr1.7z"
      },
      {
        "game_options": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Mechwarrior%204%20-%20Mercenaries/options.ini"
      }
    ],
    "game": {
      "args": "-noautoconfig",
      "exclude_processes": "dplaysvr.exe",
      "exe": "drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries/MW4Mercs_pr1_nocd.exe",
      "launch_configs": [
        {
          "exe": "$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries/autoconfig_MERCS.exe",
          "name": "Configure graphic options"
        }
      ],
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "description": "Creating Wine prefix...",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "description": "Extracting \"MechWarrior 4 - Mercenaries\" CD1 archive",
          "dst": "$CACHE",
          "file": "game_cd1",
          "format": "iso"
        }
      },
      {
        "extract": {
          "description": "Extracting \"MechWarrior 4 - Mercenaries\" CD2 archive",
          "dst": "$CACHE",
          "file": "game_cd2",
          "format": "iso"
        }
      },
      {
        "extract": {
          "description": "Extracting \"MechWarrior 4 - Mercenaries\" CD2 archive",
          "dst": "$GAMEDIR/drive_c/CD",
          "file": "game_cd2",
          "format": "iso"
        }
      },
      {
        "task": {
          "description": "Installing \"MechWarrior 4 - Mercenaries\", let all options to default, do not launch game at the end of install",
          "executable": "$CACHE/SETUP.EXE",
          "name": "wineexec",
          "return_code": 256
        }
      },
      {
        "extract": {
          "description": "Patching game...",
          "dst": "$CACHE",
          "file": "game_patch",
          "format": "7z"
        }
      },
      {
        "execute": {
          "args": "'$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries'",
          "description": "Applying \"MechWarrior 4 - Mercenaries\" patch Point Release 1",
          "file": "$CACHE/apply.sh"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries",
          "src": "$CACHE/files"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries",
          "src": "game_options"
        }
      },
      {
        "execute": {
          "command": "cd \"$GAMEDIR/dosdevices\" ; ln -s \"$GAMEDIR/drive_c/CD\" 'a:';"
        }
      },
      {
        "task": {
          "key": "CDPath",
          "name": "set_regedit",
          "path": "HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Microsoft Games\\MechWarrior Mercenaries",
          "type": "REG_SZ",
          "value": "A:\\\\"
        }
      },
      {
        "write_file": {
          "content": "MW4MERCS_02",
          "file": "$GAMEDIR/drive_c/CD/.windows-label"
        }
      },
      {
        "task": {
          "app": "quartz amstream directplay",
          "description": "Installing dependencies with Winetricks...",
          "name": "winetricks",
          "silent": true
        }
      },
      {
        "extract": {
          "description": "Installing dgVoodoo2...",
          "dst": "$CACHE",
          "file": "wrapper"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries",
          "src": "$CACHE/MS/x86/DDraw.dll"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries",
          "src": "$CACHE/MS/x86/D3DImm.dll"
        }
      },
      {
        "copy": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries",
          "src": "$CACHE/dgVoodooCpl.exe"
        }
      },
      {
        "write_file": {
          "content": "[GeneralExt]\nFPSLimit=30\n[DirectX]\ndgVoodooWatermark=False",
          "file": "$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Mechwarrior Mercenaries/dgVoodoo.conf"
        }
      }
    ],
    "wine": {
      "overrides": {
        "ddraw": "n,b"
      }
    }
  }
}
Back to game