Installer mechwarrior-4-mercenaries-mektek

files:
- mektek: https://archive.org/download/mek-tek/MekTek.rar
- dgvoodoo: http://dege.freeweb.hu/dgVoodoo2/bin/dgVoodoo2_79_3.zip
game:
  arch: win64
  args: -32 -GameTime.MaxVariableFps 60 /gosnovideo -noautoconfig
  exe: $GAMEDIR/drive_c/MekTek/MW4Mercs.exe
  prefix: $GAMEDIR
  working_dir: $GAMEDIR/drive_c/MekTek/Mechwarrior Mercenaries - Mektek Mekpak
installer:
- extract:
    dst: $CACHE/mektek
    file: mektek
- move:
    dst: $GAMEDIR/drive_c/MekTek
    src: $CACHE/mektek/Mechwarrior Mercenaries - Mektek Mekpak
- execute:
    command: rm "$GAMEDIR/drive_c/MekTek/Assets/Binaries/imagehlp.dll"
    description: Fix potential crash
- extract:
    description: Extracting dgVoodoo2...
    dst: $CACHE/dgvoodoo
    file: dgvoodoo
- move:
    description: Installing dgVoodoo2 (1/3)...
    dst: $GAMEDIR/drive_c/MekTek
    src: $CACHE/dgvoodoo/dgVoodooCpl.exe
- move:
    description: Installing dgVoodoo2 (2/3)...
    dst: $GAMEDIR/drive_c/MekTek
    src: $CACHE/dgvoodoo/dgVoodoo.conf
- merge:
    description: Installing dgVoodoo2 (3/3)...
    dst: $GAMEDIR/drive_c/MekTek
    src: $CACHE/dgvoodoo/MS/x86/
- execute:
    command: sed -i 's/^dgVoodooWatermark *= *true/dgVoodooWatermark = false/g' "$GAMEDIR/drive_c/MekTek/dgVoodoo.conf"
    description: Configuring dgVoodoo2...
- execute:
    command: sed -i 's/^VRAM *= *[0-9][0-9]*/VRAM = 512/g' "$GAMEDIR/drive_c/MekTek/dgVoodoo.conf"
    description: Configuring dgVoodoo2...
- task:
    arch: win64
    description: Open the advanced section of the config editor to set your resolution.
    executable: $GAMEDIR/drive_c/MekTek/autoconfig_MERCS.exe
    name: wineexec
    overrides:
      d3d8.dll: n
      d3d9.dll: n
      d3dimm.dll: n
      ddraw.dll: n
    prefix: $GAMEDIR
    working_dir: $GAMEDIR/drive_c/MekTek/
wine:
  overrides:
    d3d8.dll: n
    d3d9.dll: n
    d3dimm.dll: n
    ddraw.dll: n
description: ''
game_slug: mechwarrior-4-mercenaries
gogslug: ''
humblestoreid: ''
installer_slug: mechwarrior-4-mercenaries-mektek
name: 'MechWarrior 4: Mercenaries'
notes: ''
runner: wine
script:
  files:
  - mektek: https://archive.org/download/mek-tek/MekTek.rar
  - dgvoodoo: http://dege.freeweb.hu/dgVoodoo2/bin/dgVoodoo2_79_3.zip
  game:
    arch: win64
    args: -32 -GameTime.MaxVariableFps 60 /gosnovideo -noautoconfig
    exe: $GAMEDIR/drive_c/MekTek/MW4Mercs.exe
    prefix: $GAMEDIR
    working_dir: $GAMEDIR/drive_c/MekTek/Mechwarrior Mercenaries - Mektek Mekpak
  installer:
  - extract:
      dst: $CACHE/mektek
      file: mektek
  - move:
      dst: $GAMEDIR/drive_c/MekTek
      src: $CACHE/mektek/Mechwarrior Mercenaries - Mektek Mekpak
  - execute:
      command: rm "$GAMEDIR/drive_c/MekTek/Assets/Binaries/imagehlp.dll"
      description: Fix potential crash
  - extract:
      description: Extracting dgVoodoo2...
      dst: $CACHE/dgvoodoo
      file: dgvoodoo
  - move:
      description: Installing dgVoodoo2 (1/3)...
      dst: $GAMEDIR/drive_c/MekTek
      src: $CACHE/dgvoodoo/dgVoodooCpl.exe
  - move:
      description: Installing dgVoodoo2 (2/3)...
      dst: $GAMEDIR/drive_c/MekTek
      src: $CACHE/dgvoodoo/dgVoodoo.conf
  - merge:
      description: Installing dgVoodoo2 (3/3)...
      dst: $GAMEDIR/drive_c/MekTek
      src: $CACHE/dgvoodoo/MS/x86/
  - execute:
      command: sed -i 's/^dgVoodooWatermark *= *true/dgVoodooWatermark = false/g'
        "$GAMEDIR/drive_c/MekTek/dgVoodoo.conf"
      description: Configuring dgVoodoo2...
  - execute:
      command: sed -i 's/^VRAM *= *[0-9][0-9]*/VRAM = 512/g' "$GAMEDIR/drive_c/MekTek/dgVoodoo.conf"
      description: Configuring dgVoodoo2...
  - task:
      arch: win64
      description: Open the advanced section of the config editor to set your resolution.
      executable: $GAMEDIR/drive_c/MekTek/autoconfig_MERCS.exe
      name: wineexec
      overrides:
        d3d8.dll: n
        d3d9.dll: n
        d3dimm.dll: n
        ddraw.dll: n
      prefix: $GAMEDIR
      working_dir: $GAMEDIR/drive_c/MekTek/
  wine:
    overrides:
      d3d8.dll: n
      d3d9.dll: n
      d3dimm.dll: n
      ddraw.dll: n
slug: mechwarrior-4-mercenaries-mektek
steamid: null
version: MekTek
year: 2002
{
  "game_slug": "mechwarrior-4-mercenaries",
  "version": "MekTek",
  "description": "",
  "notes": "",
  "name": "MechWarrior 4: Mercenaries",
  "year": 2002,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "mechwarrior-4-mercenaries-mektek",
  "installer_slug": "mechwarrior-4-mercenaries-mektek",
  "script": {
    "files": [
      {
        "mektek": "https://archive.org/download/mek-tek/MekTek.rar"
      },
      {
        "dgvoodoo": "http://dege.freeweb.hu/dgVoodoo2/bin/dgVoodoo2_79_3.zip"
      }
    ],
    "game": {
      "arch": "win64",
      "args": "-32 -GameTime.MaxVariableFps 60 /gosnovideo -noautoconfig",
      "exe": "$GAMEDIR/drive_c/MekTek/MW4Mercs.exe",
      "prefix": "$GAMEDIR",
      "working_dir": "$GAMEDIR/drive_c/MekTek/Mechwarrior Mercenaries - Mektek Mekpak"
    },
    "installer": [
      {
        "extract": {
          "dst": "$CACHE/mektek",
          "file": "mektek"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/MekTek",
          "src": "$CACHE/mektek/Mechwarrior Mercenaries - Mektek Mekpak"
        }
      },
      {
        "execute": {
          "command": "rm \"$GAMEDIR/drive_c/MekTek/Assets/Binaries/imagehlp.dll\"",
          "description": "Fix potential crash"
        }
      },
      {
        "extract": {
          "description": "Extracting dgVoodoo2...",
          "dst": "$CACHE/dgvoodoo",
          "file": "dgvoodoo"
        }
      },
      {
        "move": {
          "description": "Installing dgVoodoo2 (1/3)...",
          "dst": "$GAMEDIR/drive_c/MekTek",
          "src": "$CACHE/dgvoodoo/dgVoodooCpl.exe"
        }
      },
      {
        "move": {
          "description": "Installing dgVoodoo2 (2/3)...",
          "dst": "$GAMEDIR/drive_c/MekTek",
          "src": "$CACHE/dgvoodoo/dgVoodoo.conf"
        }
      },
      {
        "merge": {
          "description": "Installing dgVoodoo2 (3/3)...",
          "dst": "$GAMEDIR/drive_c/MekTek",
          "src": "$CACHE/dgvoodoo/MS/x86/"
        }
      },
      {
        "execute": {
          "command": "sed -i 's/^dgVoodooWatermark *= *true/dgVoodooWatermark = false/g' \"$GAMEDIR/drive_c/MekTek/dgVoodoo.conf\"",
          "description": "Configuring dgVoodoo2..."
        }
      },
      {
        "execute": {
          "command": "sed -i 's/^VRAM *= *[0-9][0-9]*/VRAM = 512/g' \"$GAMEDIR/drive_c/MekTek/dgVoodoo.conf\"",
          "description": "Configuring dgVoodoo2..."
        }
      },
      {
        "task": {
          "arch": "win64",
          "description": "Open the advanced section of the config editor to set your resolution.",
          "executable": "$GAMEDIR/drive_c/MekTek/autoconfig_MERCS.exe",
          "name": "wineexec",
          "overrides": {
            "d3d8.dll": "n",
            "d3d9.dll": "n",
            "d3dimm.dll": "n",
            "ddraw.dll": "n"
          },
          "prefix": "$GAMEDIR",
          "working_dir": "$GAMEDIR/drive_c/MekTek/"
        }
      }
    ],
    "wine": {
      "overrides": {
        "d3d8.dll": "n",
        "d3d9.dll": "n",
        "d3dimm.dll": "n",
        "ddraw.dll": "n"
      }
    }
  }
}
Back to game