files:
- game_cd: https://archive.org/download/MechWarrior4BlackKnightUSA/MechWarrior%204%20-%20Black%20Knight%20%28USA%29.zip
- game_patch: https://github.com/pawel-0skill/Lutris-Scripts/raw/refs/heads/main/MechWarrior%204%20-%20Black%20Knight/mw4x_patch.zip
- tools: https://github.com/pawel-0skill/Lutris-Scripts/raw/refs/heads/main/!Tools/bchunk/bchunk.7z
game:
exe: drive_c/Program Files (x86)/Microsoft Games/MechWarrior Vengeance/MW4x.exe
prefix: $GAMEDIR
installer:
- extract:
description: Extracting MechWarrior 4 - Black Knight CD archive...
dst: $CACHE
file: game_cd
format: zip
- extract:
description: Extracting bchunk...
dst: $CACHE
file: tools
format: 7z
- execute:
command: cd "$CACHE" ; ./bchunk "MechWarrior 4 - Black Knight (USA).bin" "MechWarrior
4 - Black Knight (USA).cue" "MechWarrior 4 - Black Knight (USA)"
description: Converting BIN/CUE CD image to ISO...
- extract:
description: Extracting MechWarrior 4 - Black Knight data...
dst: $CACHE/CD
file: $CACHE/MechWarrior 4 - Black Knight (USA)01.iso
format: iso
- task:
description: Installing MechWarrior 4 - Black Knight... Use default options, do
not launch game at the end of install.
executable: $CACHE/CD/SETUP.EXE
name: wineexec
return_code: 256
- extract:
description: Copying patch...
dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/MechWarrior Vengeance
file: game_patch
- copy:
description: Copying enhanced keyboard controls...
dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/MechWarrior Vengeance/resource/Pilotsx
src: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/MechWarrior Vengeance/resource/pilots
requires: mechwarrior-4-vengeance
wine:
overrides:
d3d8.dll: n
d3d9.dll: n
d3dimm.dll: n
ddraw.dll: n
description: 'MechWarrior 4: Black Knight US CD edition'
game_slug: mechwarrior-4-black-knight
gogslug: ''
humblestoreid: ''
installer_slug: mechwarrior-4-black-knight-cd
name: 'MechWarrior 4: Black Knight'
notes: "- Expansion to MechWarrior 4: Vengeance\r\n- Will install in the original's\
\ prefix - should work either with dxwrapper or dgVoodoo 2, which it will take either\
\ from the original's prefix, or use the one provided by Lutris, depending on your\
\ settings\r\n- In actual game installer, use default options, do not launch game\
\ at the end of installation\r\n- Use the same runner configuration for both original\
\ and the expansion\r\n- Uses PCGW Enhanced Keyboard Controls - rename the existing\
\ pilot in the Roster screen.\r\n- Recommended to use Proton-GE Latest\r\n- Known\
\ issues:\r\n1) mouse laggy in Roster menu\r\n2) game crashes when trying to launch\
\ Instant Action\r\n3) game installation process tries to patch the original and\
\ fails due to already patched EXE present, reporting an error - ignore this message"
runner: wine
script:
files:
- game_cd: https://archive.org/download/MechWarrior4BlackKnightUSA/MechWarrior%204%20-%20Black%20Knight%20%28USA%29.zip
- game_patch: https://github.com/pawel-0skill/Lutris-Scripts/raw/refs/heads/main/MechWarrior%204%20-%20Black%20Knight/mw4x_patch.zip
- tools: https://github.com/pawel-0skill/Lutris-Scripts/raw/refs/heads/main/!Tools/bchunk/bchunk.7z
game:
exe: drive_c/Program Files (x86)/Microsoft Games/MechWarrior Vengeance/MW4x.exe
prefix: $GAMEDIR
installer:
- extract:
description: Extracting MechWarrior 4 - Black Knight CD archive...
dst: $CACHE
file: game_cd
format: zip
- extract:
description: Extracting bchunk...
dst: $CACHE
file: tools
format: 7z
- execute:
command: cd "$CACHE" ; ./bchunk "MechWarrior 4 - Black Knight (USA).bin" "MechWarrior
4 - Black Knight (USA).cue" "MechWarrior 4 - Black Knight (USA)"
description: Converting BIN/CUE CD image to ISO...
- extract:
description: Extracting MechWarrior 4 - Black Knight data...
dst: $CACHE/CD
file: $CACHE/MechWarrior 4 - Black Knight (USA)01.iso
format: iso
- task:
description: Installing MechWarrior 4 - Black Knight... Use default options,
do not launch game at the end of install.
executable: $CACHE/CD/SETUP.EXE
name: wineexec
return_code: 256
- extract:
description: Copying patch...
dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/MechWarrior Vengeance
file: game_patch
- copy:
description: Copying enhanced keyboard controls...
dst: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/MechWarrior Vengeance/resource/Pilotsx
src: $GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/MechWarrior Vengeance/resource/pilots
requires: mechwarrior-4-vengeance
wine:
overrides:
d3d8.dll: n
d3d9.dll: n
d3dimm.dll: n
ddraw.dll: n
slug: mechwarrior-4-black-knight-cd
steamid: null
version: CD
year: 2001
{
"game_slug": "mechwarrior-4-black-knight",
"version": "CD",
"description": "MechWarrior 4: Black Knight US CD edition",
"notes": "- Expansion to MechWarrior 4: Vengeance\r\n- Will install in the original's prefix - should work either with dxwrapper or dgVoodoo 2, which it will take either from the original's prefix, or use the one provided by Lutris, depending on your settings\r\n- In actual game installer, use default options, do not launch game at the end of installation\r\n- Use the same runner configuration for both original and the expansion\r\n- Uses PCGW Enhanced Keyboard Controls - rename the existing pilot in the Roster screen.\r\n- Recommended to use Proton-GE Latest\r\n- Known issues:\r\n1) mouse laggy in Roster menu\r\n2) game crashes when trying to launch Instant Action\r\n3) game installation process tries to patch the original and fails due to already patched EXE present, reporting an error - ignore this message",
"name": "MechWarrior 4: Black Knight",
"year": 2001,
"steamid": null,
"gogslug": "",
"humblestoreid": "",
"runner": "wine",
"slug": "mechwarrior-4-black-knight-cd",
"installer_slug": "mechwarrior-4-black-knight-cd",
"script": {
"files": [
{
"game_cd": "https://archive.org/download/MechWarrior4BlackKnightUSA/MechWarrior%204%20-%20Black%20Knight%20%28USA%29.zip"
},
{
"game_patch": "https://github.com/pawel-0skill/Lutris-Scripts/raw/refs/heads/main/MechWarrior%204%20-%20Black%20Knight/mw4x_patch.zip"
},
{
"tools": "https://github.com/pawel-0skill/Lutris-Scripts/raw/refs/heads/main/!Tools/bchunk/bchunk.7z"
}
],
"game": {
"exe": "drive_c/Program Files (x86)/Microsoft Games/MechWarrior Vengeance/MW4x.exe",
"prefix": "$GAMEDIR"
},
"installer": [
{
"extract": {
"description": "Extracting MechWarrior 4 - Black Knight CD archive...",
"dst": "$CACHE",
"file": "game_cd",
"format": "zip"
}
},
{
"extract": {
"description": "Extracting bchunk...",
"dst": "$CACHE",
"file": "tools",
"format": "7z"
}
},
{
"execute": {
"command": "cd \"$CACHE\" ; ./bchunk \"MechWarrior 4 - Black Knight (USA).bin\" \"MechWarrior 4 - Black Knight (USA).cue\" \"MechWarrior 4 - Black Knight (USA)\"",
"description": "Converting BIN/CUE CD image to ISO..."
}
},
{
"extract": {
"description": "Extracting MechWarrior 4 - Black Knight data...",
"dst": "$CACHE/CD",
"file": "$CACHE/MechWarrior 4 - Black Knight (USA)01.iso",
"format": "iso"
}
},
{
"task": {
"description": "Installing MechWarrior 4 - Black Knight... Use default options, do not launch game at the end of install.",
"executable": "$CACHE/CD/SETUP.EXE",
"name": "wineexec",
"return_code": 256
}
},
{
"extract": {
"description": "Copying patch...",
"dst": "$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/MechWarrior Vengeance",
"file": "game_patch"
}
},
{
"copy": {
"description": "Copying enhanced keyboard controls...",
"dst": "$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/MechWarrior Vengeance/resource/Pilotsx",
"src": "$GAMEDIR/drive_c/Program Files (x86)/Microsoft Games/MechWarrior Vengeance/resource/pilots"
}
}
],
"requires": "mechwarrior-4-vengeance",
"wine": {
"overrides": {
"d3d8.dll": "n",
"d3d9.dll": "n",
"d3dimm.dll": "n",
"ddraw.dll": "n"
}
}
}
}