Installer tomb-raider-ii-steam-dgvoodoo2

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: Tomb Raider II - Steam
files:
- tr2main: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/TR2Main.zip
- ext: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/gold.zip
- dgv: https://github.com/legluondunet/mlls-tools/raw/master/dgVoodoo2/dgVoodoo2_61.zip
- audiodll: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/zplaymm.zip
- menu: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/TR2M.BAT
- gppx360: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/gamepad%20profiles/tr1-2_x360.gamecontroller.amgp
- gppsteam: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/gamepad%20profiles/tr1-2_steam.sccprofile
- gppreadme: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/gamepad%20profiles/tr1-2_gamepad_readme.html
- wpp: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/tr2.bmp
- script: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/clean-steam.sh
game:
  arch: win64
  args: c:\\TR2M.BAT
  exe: drive_c/windows/syswow64/wineconsole.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 press "Browse" button and select Tomb Raider 2 Steam folder
      install.
    requires: Tomb2.exe
- merge:
    dst: $GAMEDIR/drive_c/Tomb Raider 2/
    src: $DISC
- extract:
    dst: $GAMEDIR/drive_c/Tomb Raider 2/
    file: dgv
- move:
    dst: $GAMEDIR/drive_c/Tomb Raider 2/dgVoodoo_original.conf
    src: $GAMEDIR/drive_c/Tomb Raider 2/dgVoodoo.conf
- copy:
    dst: $GAMEDIR/drive_c/Tomb Raider 2/
    src: $GAMEDIR/drive_c/Tomb Raider 2/MS/x86/DDraw.dll
- copy:
    dst: $GAMEDIR/drive_c/Tomb Raider 2/
    src: $GAMEDIR/drive_c/Tomb Raider 2/MS/x86/D3DImm.dll
- extract:
    dst: $GAMEDIR/drive_c/Tomb Raider 2/
    file: audiodll
- write_config:
    data:
      DirectX:
        ForceVerticalSync: true
        Resolution: max_qhd_isf
        VRAM: 256
        dgVoodooWatermark: false
      General:
        CaptureMouse: false
        FullScreenMode: false
        ScalingMode: stretched_ar
    file: $GAMEDIR/drive_c/Tomb Raider 2/dgVoodoo.conf
- execute:
    command: cd "$GAMEDIR/drive_c/Tomb Raider 2/"; mv Tomb2.exe Tomb2.steam
- extract:
    dst: $GAMEDIR/drive_c/Tomb Raider 2/
    file: tr2main
- move:
    dst: $GAMEDIR/drive_c/
    src: menu
- merge:
    dst: $GAMEDIR/drive_c/Tomb Raider 2/gamepad profiles/
    src: gppx360
- merge:
    dst: $GAMEDIR/drive_c/Tomb Raider 2/gamepad profiles/
    src: gppsteam
- merge:
    dst: $GAMEDIR/drive_c/Tomb Raider 2/gamepad profiles/
    src: gppreadme
- move:
    dst: $GAMEDIR/drive_c/
    src: wpp
- task:
    arch: win64
    key: wallpaper
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Desktop\
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\tr2.bmp
- task:
    arch: win64
    key: InvBackgroundMode
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Core Design\Tomb Raider II\Game
    prefix: $GAMEDIR
    type: REG_DWORD
    value: '00000002'
- task:
    arch: win64
    key: ddraw
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\DllOverrides\
    prefix: $GAMEDIR
    type: REG_SZ
    value: native,builtin
- task:
    arch: win64
    key: winmm
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\DllOverrides\
    prefix: $GAMEDIR
    type: REG_SZ
    value: native,builtin
- task:
    arch: win64
    key: background
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 91 0 0
- task:
    arch: win64
    key: ActiveTitle
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
- task:
    arch: win64
    key: GradientActiveTitle
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 204 51 0
- task:
    arch: win64
    key: csmt
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D\
    prefix: $GAMEDIR
    type: REG_DWORD
    value: '00000000'
- chmodx: script
- execute:
    file: script
- extract:
    dst: $GAMEDIR/drive_c/Tomb Raider 2 Golden Mask/data
    src: ext
wine:
  Desktop: true
  dxvk: true
{
  "custom-name": "Tomb Raider II - Steam",
  "files": [
    {
      "tr2main": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/TR2Main.zip"
    },
    {
      "ext": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/gold.zip"
    },
    {
      "dgv": "https://github.com/legluondunet/mlls-tools/raw/master/dgVoodoo2/dgVoodoo2_61.zip"
    },
    {
      "audiodll": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/zplaymm.zip"
    },
    {
      "menu": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/TR2M.BAT"
    },
    {
      "gppx360": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/gamepad%20profiles/tr1-2_x360.gamecontroller.amgp"
    },
    {
      "gppsteam": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/gamepad%20profiles/tr1-2_steam.sccprofile"
    },
    {
      "gppreadme": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/gamepad%20profiles/tr1-2_gamepad_readme.html"
    },
    {
      "wpp": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/tr2.bmp"
    },
    {
      "script": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/clean-steam.sh"
    }
  ],
  "game": {
    "arch": "win64",
    "args": "c:\\\\TR2M.BAT",
    "exe": "drive_c/windows/syswow64/wineconsole.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 press \"Browse\" button and select Tomb Raider 2 Steam folder install.",
        "requires": "Tomb2.exe"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/Tomb Raider 2/",
        "src": "$DISC"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/Tomb Raider 2/",
        "file": "dgv"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/Tomb Raider 2/dgVoodoo_original.conf",
        "src": "$GAMEDIR/drive_c/Tomb Raider 2/dgVoodoo.conf"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c/Tomb Raider 2/",
        "src": "$GAMEDIR/drive_c/Tomb Raider 2/MS/x86/DDraw.dll"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c/Tomb Raider 2/",
        "src": "$GAMEDIR/drive_c/Tomb Raider 2/MS/x86/D3DImm.dll"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/Tomb Raider 2/",
        "file": "audiodll"
      }
    },
    {
      "write_config": {
        "data": {
          "DirectX": {
            "ForceVerticalSync": true,
            "Resolution": "max_qhd_isf",
            "VRAM": 256,
            "dgVoodooWatermark": false
          },
          "General": {
            "CaptureMouse": false,
            "FullScreenMode": false,
            "ScalingMode": "stretched_ar"
          }
        },
        "file": "$GAMEDIR/drive_c/Tomb Raider 2/dgVoodoo.conf"
      }
    },
    {
      "execute": {
        "command": "cd \"$GAMEDIR/drive_c/Tomb Raider 2/\"; mv Tomb2.exe Tomb2.steam"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/Tomb Raider 2/",
        "file": "tr2main"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/",
        "src": "menu"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/Tomb Raider 2/gamepad profiles/",
        "src": "gppx360"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/Tomb Raider 2/gamepad profiles/",
        "src": "gppsteam"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/Tomb Raider 2/gamepad profiles/",
        "src": "gppreadme"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/",
        "src": "wpp"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "wallpaper",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Desktop\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\tr2.bmp"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "InvBackgroundMode",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Core Design\\Tomb Raider II\\Game",
        "prefix": "$GAMEDIR",
        "type": "REG_DWORD",
        "value": "00000002"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "ddraw",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "native,builtin"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "winmm",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "native,builtin"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "background",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "91 0 0"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "ActiveTitle",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "0 0 0"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "GradientActiveTitle",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "204 51 0"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "csmt",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D\\",
        "prefix": "$GAMEDIR",
        "type": "REG_DWORD",
        "value": "00000000"
      }
    },
    {
      "chmodx": "script"
    },
    {
      "execute": {
        "file": "script"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/Tomb Raider 2 Golden Mask/data",
        "src": "ext"
      }
    }
  ],
  "wine": {
    "Desktop": true,
    "dxvk": true
  }
}
Back to game