Installer tomb-raider-ii-gog-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 Gold - GOG
files:
- setup: N/A:Select the installer downloaded from GOG
- tr2main: https://github.com/Arsunt/TR2Main/releases/download/v0.8.2/TR2Main_v0.8.2.zip
- ext: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/gold.zip
- inno: http://constexpr.org/innoextract/files/snapshots/innoextract-1.8-dev-2019-01-13/innoextract-1.8-dev-2019-01-13-linux.tar.xz
- 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
- menu1: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb Raider
    II/TR2M1.BAT
- menu2: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb Raider
    II/TR2M2.BAT
- gppx360: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb Raider
    II/gamepad%20profiles/tr1-2_x360.gamecontroller.amgp
- gppsteam: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb
    Raider 2/gamepad%20profiles/tr1-2_steam.sccprofile
- gppreadme: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb
    Raider 2/gamepad%20profiles/tr1-2_gamepad_readme.html
- script: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb Raider
    II/clean.sh
- wpp: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/tr2.bmp
game:
  exe: drive_c/GOG Games/Tomb Raider 2/TR2M1.BAT
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating WINE prefix
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $CACHE
    file: inno
- execute:
    args: -d "$CACHE" "$setup"
    file: $CACHE/innoextract
- move:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 2/
    src: $CACHE/app
- execute:
    command: cd "$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/"; mv Tomb2.exe Tomb2.gog
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 2/
    file: tr2main
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 2/
    file: dgv
- copy:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 2/
    src: $GAMEDIR/drive_c/GOG Games/Tomb Raider 2/MS/x86/DDraw.dll
- copy:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 2/
    src: $GAMEDIR/drive_c/GOG Games/Tomb Raider 2/MS/x86/D3DImm.dll
- execute:
    command: cd "$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/"; mv dgVoodoo.conf dgVoodoo_original.conf
- 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/GOG Games/Tomb Raider 2/dgVoodoo.conf
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 2/
    file: audiodll
- move:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 2/
    src: menu1
- move:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 2/
    src: menu2
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 2/gamepad profiles/
    src: gppx360
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 2/gamepad profiles/
    src: gppsteam
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 2/gamepad profiles/
    src: gppreadme
- 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: InvBackgroundMode
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Core Design\Tomb Raider II\Game
    prefix: $GAMEDIR
    type: REG_DWORD
    value: '00000002'
- task:
    app: d3dcompiler_47
    name: winetricks
    prefix: $GAMEDIR
- 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: 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/GOG Games/Tomb Raider 2 Golden Mask/data/
    src: ext
wine:
  Desktop: true
  dxvk: true
{
  "wine": {
    "dxvk": true,
    "Desktop": true
  },
  "custom-name": "Tomb Raider II Gold - GOG",
  "files": [
    {
      "setup": "N/A:Select the installer downloaded from GOG"
    },
    {
      "tr2main": "https://github.com/Arsunt/TR2Main/releases/download/v0.8.2/TR2Main_v0.8.2.zip"
    },
    {
      "ext": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/gold.zip"
    },
    {
      "inno": "http://constexpr.org/innoextract/files/snapshots/innoextract-1.8-dev-2019-01-13/innoextract-1.8-dev-2019-01-13-linux.tar.xz"
    },
    {
      "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"
    },
    {
      "menu1": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb Raider II/TR2M1.BAT"
    },
    {
      "menu2": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb Raider II/TR2M2.BAT"
    },
    {
      "gppx360": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb Raider II/gamepad%20profiles/tr1-2_x360.gamecontroller.amgp"
    },
    {
      "gppsteam": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb Raider 2/gamepad%20profiles/tr1-2_steam.sccprofile"
    },
    {
      "gppreadme": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb Raider 2/gamepad%20profiles/tr1-2_gamepad_readme.html"
    },
    {
      "script": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb Raider II/clean.sh"
    },
    {
      "wpp": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20II/tr2.bmp"
    }
  ],
  "installer": [
    {
      "task": {
        "description": "Creating WINE prefix",
        "prefix": "$GAMEDIR",
        "arch": "win64",
        "name": "create_prefix"
      }
    },
    {
      "extract": {
        "dst": "$CACHE",
        "file": "inno"
      }
    },
    {
      "execute": {
        "args": "-d \"$CACHE\" \"$setup\"",
        "file": "$CACHE/innoextract"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/",
        "src": "$CACHE/app"
      }
    },
    {
      "execute": {
        "command": "cd \"$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/\"; mv Tomb2.exe Tomb2.gog"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/",
        "file": "tr2main"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/",
        "file": "dgv"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/",
        "src": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/MS/x86/DDraw.dll"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/",
        "src": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/MS/x86/D3DImm.dll"
      }
    },
    {
      "execute": {
        "command": "cd \"$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/\"; mv dgVoodoo.conf dgVoodoo_original.conf"
      }
    },
    {
      "write_config": {
        "file": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/dgVoodoo.conf",
        "data": {
          "DirectX": {
            "dgVoodooWatermark": false,
            "ForceVerticalSync": true,
            "Resolution": "max_qhd_isf",
            "VRAM": 256
          },
          "General": {
            "ScalingMode": "stretched_ar",
            "CaptureMouse": false,
            "FullScreenMode": false
          }
        }
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/",
        "file": "audiodll"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/",
        "src": "menu1"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/",
        "src": "menu2"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/gamepad profiles/",
        "src": "gppx360"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/gamepad profiles/",
        "src": "gppsteam"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 2/gamepad profiles/",
        "src": "gppreadme"
      }
    },
    {
      "task": {
        "key": "ddraw",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides\\",
        "arch": "win64",
        "name": "set_regedit",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "native,builtin"
      }
    },
    {
      "task": {
        "key": "winmm",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides\\",
        "arch": "win64",
        "name": "set_regedit",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "native,builtin"
      }
    },
    {
      "task": {
        "key": "InvBackgroundMode",
        "path": "HKEY_CURRENT_USER\\Software\\Core Design\\Tomb Raider II\\Game",
        "arch": "win64",
        "name": "set_regedit",
        "prefix": "$GAMEDIR",
        "type": "REG_DWORD",
        "value": "00000002"
      }
    },
    {
      "task": {
        "prefix": "$GAMEDIR",
        "name": "winetricks",
        "app": "d3dcompiler_47"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/",
        "src": "wpp"
      }
    },
    {
      "task": {
        "key": "wallpaper",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Desktop\\",
        "arch": "win64",
        "name": "set_regedit",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\tr2.bmp"
      }
    },
    {
      "task": {
        "key": "background",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "arch": "win64",
        "name": "set_regedit",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "91 0 0"
      }
    },
    {
      "task": {
        "key": "ActiveTitle",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "arch": "win64",
        "name": "set_regedit",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "0 0 0"
      }
    },
    {
      "task": {
        "key": "GradientActiveTitle",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "arch": "win64",
        "name": "set_regedit",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "204 51 0"
      }
    },
    {
      "task": {
        "key": "csmt",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D\\",
        "arch": "win64",
        "name": "set_regedit",
        "prefix": "$GAMEDIR",
        "type": "REG_DWORD",
        "value": "00000000"
      }
    },
    {
      "chmodx": "script"
    },
    {
      "execute": {
        "file": "script"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 2 Golden Mask/data/",
        "src": "ext"
      }
    }
  ],
  "game": {
    "prefix": "$GAMEDIR",
    "exe": "drive_c/GOG Games/Tomb Raider 2/TR2M1.BAT"
  }
}
Back to game