Installer tomb-raider-iii-adventures-of-change-me

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 III - Adventures of Lara Croft - GOG
files:
- setup: N/A:Select the installer downloaded from GOG
- dgv: https://github.com/legluondunet/mlls-tools/raw/master/dgVoodoo2/dgVoodoo2_61.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
- arsunt: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20III%20-%20Adventures%20of%20Lara%20Croft/TR3_Arsunt_Patch_FOV_FMV_Sunglasses.zip
- menu1: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20III%20-%20Adventures%20of%20Lara%20Croft/TR3M1.BAT
- menu2: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20III%20-%20Adventures%20of%20Lara%20Croft/TR3M2.BAT
- gppx360: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20III%20-%20Adventures%20of%20Lara%20Croft/gamepad%20profiles/tr3_x360.gamecontroller.amgp
- gppsteam: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20III%20-%20Adventures%20of%20Lara%20Croft/gamepad%20profiles/tr3_steam.sccprofile
- gppreadme: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20III%20-%20Adventures%20of%20Lara%20Croft/gamepad%20profiles/tr3_gamepad_readme.html
- wpp: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20III%20-%20Adventures%20of%20Lara%20Croft/tr3.bmp
game:
  exe: drive_c/GOG Games/Tomb Raider 3/TR3M1.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 3/
    src: $CACHE/app
- execute:
    command: cd "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/"; mv tomb3.exe tomb3.gog;
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/
    file: arsunt
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/
    file: dgv
- copy:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/
    src: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/MS/x86/DDraw.dll
- copy:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/
    src: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/MS/x86/D3DImm.dll
- execute:
    command: cd "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/"; 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 3/dgVoodoo.conf
- task:
    arch: win64
    key: ddraw
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\DllOverrides\
    prefix: $GAMEDIR
    type: REG_SZ
    value: native,builtin
- task:
    app: d3dcompiler_47
    name: winetricks
    prefix: $GAMEDIR
- move:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/
    src: menu1
- move:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/
    src: menu2
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/gamepad profiles/
    src: gppx360
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/gamepad profiles/
    src: gppsteam
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/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:\\tr3.bmp
- task:
    arch: win64
    key: background
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 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: 255 177 94
- execute:
    command: cd "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/"; rm -f -r __support/ gog*
      webcache.zip 3Dfx Doc MS os.dat layout.bin  lang.dat data.bin DATA.TAG config.txt
      tr3gold.exe
- task:
    arch: win64
    key: csmt
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\Direct3D\
    prefix: $GAMEDIR
    type: REG_DWORD
    value: '00000000'
wine:
  Desktop: true
  dxvk: true
{
  "custom-name": "Tomb Raider III - Adventures of Lara Croft - GOG",
  "files": [
    {
      "setup": "N/A:Select the installer downloaded from GOG"
    },
    {
      "dgv": "https://github.com/legluondunet/mlls-tools/raw/master/dgVoodoo2/dgVoodoo2_61.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"
    },
    {
      "arsunt": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20III%20-%20Adventures%20of%20Lara%20Croft/TR3_Arsunt_Patch_FOV_FMV_Sunglasses.zip"
    },
    {
      "menu1": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20III%20-%20Adventures%20of%20Lara%20Croft/TR3M1.BAT"
    },
    {
      "menu2": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20III%20-%20Adventures%20of%20Lara%20Croft/TR3M2.BAT"
    },
    {
      "gppx360": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20III%20-%20Adventures%20of%20Lara%20Croft/gamepad%20profiles/tr3_x360.gamecontroller.amgp"
    },
    {
      "gppsteam": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20III%20-%20Adventures%20of%20Lara%20Croft/gamepad%20profiles/tr3_steam.sccprofile"
    },
    {
      "gppreadme": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20III%20-%20Adventures%20of%20Lara%20Croft/gamepad%20profiles/tr3_gamepad_readme.html"
    },
    {
      "wpp": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20III%20-%20Adventures%20of%20Lara%20Croft/tr3.bmp"
    }
  ],
  "game": {
    "exe": "drive_c/GOG Games/Tomb Raider 3/TR3M1.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 3/",
        "src": "$CACHE/app"
      }
    },
    {
      "execute": {
        "command": "cd \"$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/\"; mv tomb3.exe tomb3.gog;"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/",
        "file": "arsunt"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/",
        "file": "dgv"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/",
        "src": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/MS/x86/DDraw.dll"
      }
    },
    {
      "copy": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/",
        "src": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/MS/x86/D3DImm.dll"
      }
    },
    {
      "execute": {
        "command": "cd \"$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/\"; 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 3/dgVoodoo.conf"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "ddraw",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "native,builtin"
      }
    },
    {
      "task": {
        "app": "d3dcompiler_47",
        "name": "winetricks",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/",
        "src": "menu1"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/",
        "src": "menu2"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/gamepad profiles/",
        "src": "gppx360"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/gamepad profiles/",
        "src": "gppsteam"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/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:\\\\tr3.bmp"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "background",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "0 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": "255 177 94"
      }
    },
    {
      "execute": {
        "command": "cd \"$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/\"; rm -f -r __support/ gog* webcache.zip 3Dfx Doc MS os.dat layout.bin  lang.dat data.bin DATA.TAG config.txt tr3gold.exe"
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "csmt",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\Direct3D\\",
        "prefix": "$GAMEDIR",
        "type": "REG_DWORD",
        "value": "00000000"
      }
    }
  ],
  "wine": {
    "Desktop": true,
    "dxvk": true
  }
}
Back to game