Installer diablo-pc-th2-mod
This script is for reference only and can't be directly used to install the game in the Lutris client. To install the game, download the full script.
custom-name: Diablo - The Hell 2 mod files: - th2exe: N/A:Please provide last TH2 build from https://www.patreon.com/thmod - th2music: N/A:Please provide last TH2 music expansion from https://www.patreon.com/thmod game: arch: win64 exe: drive_c/Program Files/DiabloTH2/TH2.exe prefix: $GAMEDIR installer: - task: arch: win64 description: Creating WINE prefix install_gecko: false install_mono: false name: create_prefix prefix: $GAMEDIR - insert-disc: description: Please browse folder where is located "diabdat.mpq" file. "Autodetect" button will not work here, use "Browse" button. requires: diabdat.mpq - extract: dst: $GAMEDIR/drive_c/Program Files/DiabloTH2 file: th2exe - extract: dst: $GAMEDIR/drive_c/Program Files/DiabloTH2 file: th2music - execute: command: cd "$DISC"; ls | grep -i diabdat.mpq | xargs cp -t "$GAMEDIR/drive_c/Program Files/DiabloTH2"; - execute: command: cd "$GAMEDIR/drive_c/Program Files/DiabloTH2"; sed -i -e "s/screenwidth.*/screenwidth $RESOLUTION_WIDTH/g" -e "s/screenheight.*/screenheight $RESOLUTION_HEIGHT/g" -e "s/fullscreen off.*/fullscreen on/g" -e "s/Vsync off.*/Vsync on/g" config.ini; - task: arch: win64 key: csmt name: set_regedit path: HKEY_CURRENT_USER\Software\Wine\Direct3D\ prefix: $GAMEDIR type: REG_DWORD value: '00000000' - task: arch: win64 key: background name: set_regedit path: HKEY_CURRENT_USER\Control Panel\Colors\ prefix: $GAMEDIR type: REG_SZ value: 0 0 0 wine: Desktop: true dxvk: false
{ "custom-name": "Diablo - The Hell 2 mod", "files": [ { "th2exe": "N/A:Please provide last TH2 build from https://www.patreon.com/thmod" }, { "th2music": "N/A:Please provide last TH2 music expansion from https://www.patreon.com/thmod" } ], "game": { "arch": "win64", "exe": "drive_c/Program Files/DiabloTH2/TH2.exe", "prefix": "$GAMEDIR" }, "installer": [ { "task": { "arch": "win64", "description": "Creating WINE prefix", "install_gecko": false, "install_mono": false, "name": "create_prefix", "prefix": "$GAMEDIR" } }, { "insert-disc": { "description": "Please browse folder where is located \"diabdat.mpq\" file. \"Autodetect\" button will not work here, use \"Browse\" button.", "requires": "diabdat.mpq" } }, { "extract": { "dst": "$GAMEDIR/drive_c/Program Files/DiabloTH2", "file": "th2exe" } }, { "extract": { "dst": "$GAMEDIR/drive_c/Program Files/DiabloTH2", "file": "th2music" } }, { "execute": { "command": "cd \"$DISC\"; ls | grep -i diabdat.mpq | xargs cp -t \"$GAMEDIR/drive_c/Program Files/DiabloTH2\";" } }, { "execute": { "command": "cd \"$GAMEDIR/drive_c/Program Files/DiabloTH2\"; sed -i -e \"s/screenwidth.*/screenwidth $RESOLUTION_WIDTH/g\" -e \"s/screenheight.*/screenheight $RESOLUTION_HEIGHT/g\" -e \"s/fullscreen off.*/fullscreen on/g\" -e \"s/Vsync off.*/Vsync on/g\" config.ini;" } }, { "task": { "arch": "win64", "key": "csmt", "name": "set_regedit", "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D\\", "prefix": "$GAMEDIR", "type": "REG_DWORD", "value": "00000000" } }, { "task": { "arch": "win64", "key": "background", "name": "set_regedit", "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\", "prefix": "$GAMEDIR", "type": "REG_SZ", "value": "0 0 0" } } ], "wine": { "Desktop": true, "dxvk": false } }