Installer tomb-raider-iii-adventures-of-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 III - Adventures of Lara Croft - GOG
files:
- gogsetup: N/A:Select the installer downloaded from GOG
- dgv: https://github.com/legluondunet/mlls-tools/raw/master/dgVoodoo2/dgVoodoo2_61.zip
- inno: https://constexpr.org/innoextract/files/innoextract-1.9/innoextract-1.9-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
- menu: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20III%20-%20Adventures%20of%20Lara%20Croft/tr3aolc.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/tr3aolc.bmp
game:
  arch: win64
  args: c:\\tr3aolc.bat
  exe: drive_c/windows/syswow64/wineconsole.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating WINE prefix
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $CACHE
    file: inno
- execute:
    args: -d "$CACHE" --gog gogsetup
    file: $CACHE/innoextract
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/
    src: $CACHE/app
- move:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/tomb3.gog
    src: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/tomb3.exe
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/
    file: arsunt
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/
    file: dgv
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/
    src: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/MS/x86/DDraw.dll
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/
    src: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/MS/x86/D3DImm.dll
- move:
    dst: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/dgVoodoo_original.conf
    src: $GAMEDIR/drive_c/GOG Games/Tomb Raider 3/dgVoodoo.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
    merge: false
- task:
    arch: win64
    key: ddraw
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Wine\DllOverrides\
    prefix: $GAMEDIR
    type: REG_SZ
    value: native,builtin
- merge:
    dst: $GAMEDIR/drive_c/
    src: menu
- 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
- merge:
    dst: $GAMEDIR/drive_c/
    src: wpp
- 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: wallpaper
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Desktop\
    prefix: $GAMEDIR
    type: REG_SZ
    value: c:\\tr3aolc.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 tr3gold.exe;
      sed -i -e "s/D3DTF.*/D3DTF 2/g" -e "s/MUSIC.*/MUSIC 7/g" -e "s/VM.*/VM 25/g"
      config.txt;
wine:
  Desktop: true
{
  "custom-name": "Tomb Raider III - Adventures of Lara Croft - GOG",
  "files": [
    {
      "gogsetup": "N/A:Select the installer downloaded from GOG"
    },
    {
      "dgv": "https://github.com/legluondunet/mlls-tools/raw/master/dgVoodoo2/dgVoodoo2_61.zip"
    },
    {
      "inno": "https://constexpr.org/innoextract/files/innoextract-1.9/innoextract-1.9-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"
    },
    {
      "menu": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Tomb%20Raider%20III%20-%20Adventures%20of%20Lara%20Croft/tr3aolc.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/tr3aolc.bmp"
    }
  ],
  "game": {
    "arch": "win64",
    "args": "c:\\\\tr3aolc.bat",
    "exe": "drive_c/windows/syswow64/wineconsole.exe",
    "prefix": "$GAMEDIR"
  },
  "installer": [
    {
      "task": {
        "arch": "win64",
        "description": "Creating WINE prefix",
        "name": "create_prefix",
        "prefix": "$GAMEDIR"
      }
    },
    {
      "extract": {
        "dst": "$CACHE",
        "file": "inno"
      }
    },
    {
      "execute": {
        "args": "-d \"$CACHE\" --gog gogsetup",
        "file": "$CACHE/innoextract"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/",
        "src": "$CACHE/app"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/tomb3.gog",
        "src": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/tomb3.exe"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/",
        "file": "arsunt"
      }
    },
    {
      "extract": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/",
        "file": "dgv"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/",
        "src": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/MS/x86/DDraw.dll"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/",
        "src": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/MS/x86/D3DImm.dll"
      }
    },
    {
      "move": {
        "dst": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/dgVoodoo_original.conf",
        "src": "$GAMEDIR/drive_c/GOG Games/Tomb Raider 3/dgVoodoo.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",
        "merge": false
      }
    },
    {
      "task": {
        "arch": "win64",
        "key": "ddraw",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Software\\Wine\\DllOverrides\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "native,builtin"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/",
        "src": "menu"
      }
    },
    {
      "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"
      }
    },
    {
      "merge": {
        "dst": "$GAMEDIR/drive_c/",
        "src": "wpp"
      }
    },
    {
      "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": "wallpaper",
        "name": "set_regedit",
        "path": "HKEY_CURRENT_USER\\Control Panel\\Desktop\\",
        "prefix": "$GAMEDIR",
        "type": "REG_SZ",
        "value": "c:\\\\tr3aolc.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 tr3gold.exe; sed -i -e \"s/D3DTF.*/D3DTF 2/g\" -e \"s/MUSIC.*/MUSIC 7/g\" -e \"s/VM.*/VM 25/g\" config.txt;"
      }
    }
  ],
  "wine": {
    "Desktop": true
  }
}
Back to game