Installer midtown-madness-2-cd-fixes

files:
- xppatch: https://win.mm2x.com/files/files/mm2xppat.exe
- speedboot: https://win.mm2x.com/files/files/speedboot.zip
- widescr: https://win.mm2x.com/files/mods/MM2WidescreenDashFix.zip
- nuhook: https://github.com/Dummiesman/mm2hook/releases/download/2024-08-23/NuHook_2024_08_23.zip
game:
  exe: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Midtown Madness 2/midtown2.exe
  prefix: $GAMEDIR
installer:
- task:
    app: icodecs
    description: Installing Indeo codec...
    name: winetricks
    prefix: $GAMEDIR
- task:
    app: directmusic
    description: Installing DirectMusic...
    name: winetricks
    prefix: $GAMEDIR
- insert-disc:
    requires: GAME/Midtown2.exe
- task:
    description: Installing Midtown Madness 2...
    executable: $DISC/SETUP.EXE
    name: wineexec
    prefix: $GAMEDIR
    return_code: 256
- task:
    description: Patching the game...
    executable: xppatch
    name: wineexec
    return_code: 11008
- extract:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Midtown Madness 2/
    file: speedboot
- extract:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Midtown Madness 2/
    file: widescr
- extract:
    dst: $CACHE/nuhook
    file: nuhook
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Midtown Madness 2/
    src: $CACHE/nuhook/Extract These Files To Your Game Folder/
wine:
  dgvoodoo2: true
  overrides:
    ddraw: native
    dinput.dll: n,b
description: 'Includes the following fixes: XP patch, speedboot, NuHook, widescreen
  dashboard fix.'
game_slug: midtown-madness-2
gogslug: ''
humblestoreid: ''
installer_slug: midtown-madness-2-cd-fixes
name: Midtown Madness 2
notes: If you want to install mods then be aware that while they do work, some custom
  maps can cause extreme stuttering in certain areas and may lead to GPU hangs in
  rare cases. I am investigating the cause of this.
runner: wine
script:
  files:
  - xppatch: https://win.mm2x.com/files/files/mm2xppat.exe
  - speedboot: https://win.mm2x.com/files/files/speedboot.zip
  - widescr: https://win.mm2x.com/files/mods/MM2WidescreenDashFix.zip
  - nuhook: https://github.com/Dummiesman/mm2hook/releases/download/2024-08-23/NuHook_2024_08_23.zip
  game:
    exe: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Midtown Madness 2/midtown2.exe
    prefix: $GAMEDIR
  installer:
  - task:
      app: icodecs
      description: Installing Indeo codec...
      name: winetricks
      prefix: $GAMEDIR
  - task:
      app: directmusic
      description: Installing DirectMusic...
      name: winetricks
      prefix: $GAMEDIR
  - insert-disc:
      requires: GAME/Midtown2.exe
  - task:
      description: Installing Midtown Madness 2...
      executable: $DISC/SETUP.EXE
      name: wineexec
      prefix: $GAMEDIR
      return_code: 256
  - task:
      description: Patching the game...
      executable: xppatch
      name: wineexec
      return_code: 11008
  - extract:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Midtown Madness 2/
      file: speedboot
  - extract:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Midtown Madness 2/
      file: widescr
  - extract:
      dst: $CACHE/nuhook
      file: nuhook
  - merge:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Midtown Madness 2/
      src: $CACHE/nuhook/Extract These Files To Your Game Folder/
  wine:
    dgvoodoo2: true
    overrides:
      ddraw: native
      dinput.dll: n,b
slug: midtown-madness-2-cd-fixes
steamid: null
version: CD + fixes
year: 2000
{
  "game_slug": "midtown-madness-2",
  "version": "CD + fixes",
  "description": "Includes the following fixes: XP patch, speedboot, NuHook, widescreen dashboard fix.",
  "notes": "If you want to install mods then be aware that while they do work, some custom maps can cause extreme stuttering in certain areas and may lead to GPU hangs in rare cases. I am investigating the cause of this.",
  "name": "Midtown Madness 2",
  "year": 2000,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "midtown-madness-2-cd-fixes",
  "installer_slug": "midtown-madness-2-cd-fixes",
  "script": {
    "files": [
      {
        "xppatch": "https://win.mm2x.com/files/files/mm2xppat.exe"
      },
      {
        "speedboot": "https://win.mm2x.com/files/files/speedboot.zip"
      },
      {
        "widescr": "https://win.mm2x.com/files/mods/MM2WidescreenDashFix.zip"
      },
      {
        "nuhook": "https://github.com/Dummiesman/mm2hook/releases/download/2024-08-23/NuHook_2024_08_23.zip"
      }
    ],
    "game": {
      "exe": "$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Midtown Madness 2/midtown2.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "app": "icodecs",
          "description": "Installing Indeo codec...",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "app": "directmusic",
          "description": "Installing DirectMusic...",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "insert-disc": {
          "requires": "GAME/Midtown2.exe"
        }
      },
      {
        "task": {
          "description": "Installing Midtown Madness 2...",
          "executable": "$DISC/SETUP.EXE",
          "name": "wineexec",
          "prefix": "$GAMEDIR",
          "return_code": 256
        }
      },
      {
        "task": {
          "description": "Patching the game...",
          "executable": "xppatch",
          "name": "wineexec",
          "return_code": 11008
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Midtown Madness 2/",
          "file": "speedboot"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Midtown Madness 2/",
          "file": "widescr"
        }
      },
      {
        "extract": {
          "dst": "$CACHE/nuhook",
          "file": "nuhook"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/Midtown Madness 2/",
          "src": "$CACHE/nuhook/Extract These Files To Your Game Folder/"
        }
      }
    ],
    "wine": {
      "dgvoodoo2": true,
      "overrides": {
        "ddraw": "native",
        "dinput.dll": "n,b"
      }
    }
  }
}
Back to game