Installer tomb-raider-ii-steam-tr2main

files:
- mod: https://github.com/Arsunt/TR2Main/releases/download/v0.9.0/TR2Main_v0.9.0.zip
- audiodll: https://github.com/legluondunet/mlls-tools/raw/master/winmm/zplaymm.zip
game:
  exe: drive_c/Tomb Raider 2/Tomb2.exe
  launch_configs:
  - args: -gold
    exe: $GAMEDIR/drive_c/Tomb Raider 2/Tomb2.exe
    name: Tomb Raider II - Golden Mask
  - args: -setup
    exe: $GAMEDIR/drive_c/Tomb Raider 2/Tomb2.exe
    name: Setup dialog box
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Creating WINE prefix
    install_gecko: true
    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/data
    src: $DISC/data
- merge:
    dst: $GAMEDIR/drive_c/Tomb Raider 2/fmv
    src: $DISC/fmv
- merge:
    dst: $GAMEDIR/drive_c/Tomb Raider 2/music
    src: $DISC/music
- extract:
    dst: $GAMEDIR/drive_c/Tomb Raider 2
    file: mod
- move:
    dst: $GAMEDIR/drive_c/Tomb Raider 2/audio.bak
    src: $GAMEDIR/drive_c/Tomb Raider 2/audio
- extract:
    dst: $GAMEDIR/drive_c/Tomb Raider 2
    file: audiodll
- execute:
    command: cd "$GAMEDIR/drive_c/Tomb Raider 2/music"; ls {2..9}.mp3 | xargs -I {}
      mv {} 0{} ; ls *.mp3 | xargs -I {} mv {} Track{};
- task:
    key: InvBackgroundMode
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Core Design\Tomb Raider II\Game
    prefix: $GAMEDIR
    type: REG_DWORD
    value: '00000001'
- task:
    key: DetailLevel
    name: set_regedit
    path: HKEY_CURRENT_USER\Software\Core Design\Tomb Raider II\Game
    prefix: $GAMEDIR
    type: REG_DWORD
    value: '00000002'
wine:
  overrides:
    ddraw: n,b
    winmm: n,b
description: Play "Tomb Raider II" provided by Steam on Linux! using TR2Main open
  source project
game_slug: tomb-raider-ii
gogslug: tomb_raider_123
humblestoreid: ''
installer_slug: tomb-raider-ii-steam-tr2main
name: Tomb Raider II
notes: "- You have to install \"Tomb Raider II\" on Steam before to launch this script\
  \ installer\r\n- This script uses TR2Main: for stability and features, like PS1\
  \ inventory background\r\n- Tomb Raider II Gold extension included\r\n- TR2 has\
  \ insufficient controller support, you will find AntimicroX profiles I wrote here:\
  \ \r\nhttps://github.com/legluondunet/MyLittleLutrisScripts/tree/master/Tomb%20Raider%20I/gamepad%20profiles"
runner: wine
script:
  files:
  - mod: https://github.com/Arsunt/TR2Main/releases/download/v0.9.0/TR2Main_v0.9.0.zip
  - audiodll: https://github.com/legluondunet/mlls-tools/raw/master/winmm/zplaymm.zip
  game:
    exe: drive_c/Tomb Raider 2/Tomb2.exe
    launch_configs:
    - args: -gold
      exe: $GAMEDIR/drive_c/Tomb Raider 2/Tomb2.exe
      name: Tomb Raider II - Golden Mask
    - args: -setup
      exe: $GAMEDIR/drive_c/Tomb Raider 2/Tomb2.exe
      name: Setup dialog box
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      description: Creating WINE prefix
      install_gecko: true
      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/data
      src: $DISC/data
  - merge:
      dst: $GAMEDIR/drive_c/Tomb Raider 2/fmv
      src: $DISC/fmv
  - merge:
      dst: $GAMEDIR/drive_c/Tomb Raider 2/music
      src: $DISC/music
  - extract:
      dst: $GAMEDIR/drive_c/Tomb Raider 2
      file: mod
  - move:
      dst: $GAMEDIR/drive_c/Tomb Raider 2/audio.bak
      src: $GAMEDIR/drive_c/Tomb Raider 2/audio
  - extract:
      dst: $GAMEDIR/drive_c/Tomb Raider 2
      file: audiodll
  - execute:
      command: cd "$GAMEDIR/drive_c/Tomb Raider 2/music"; ls {2..9}.mp3 | xargs -I
        {} mv {} 0{} ; ls *.mp3 | xargs -I {} mv {} Track{};
  - task:
      key: InvBackgroundMode
      name: set_regedit
      path: HKEY_CURRENT_USER\Software\Core Design\Tomb Raider II\Game
      prefix: $GAMEDIR
      type: REG_DWORD
      value: '00000001'
  - task:
      key: DetailLevel
      name: set_regedit
      path: HKEY_CURRENT_USER\Software\Core Design\Tomb Raider II\Game
      prefix: $GAMEDIR
      type: REG_DWORD
      value: '00000002'
  wine:
    overrides:
      ddraw: n,b
      winmm: n,b
slug: tomb-raider-ii-steam-tr2main
steamid: 225300
version: Steam + TR2Main
year: 1997
{
  "game_slug": "tomb-raider-ii",
  "version": "Steam + TR2Main",
  "description": "Play \"Tomb Raider II\" provided by Steam on Linux! using TR2Main open source project",
  "notes": "- You have to install \"Tomb Raider II\" on Steam before to launch this script installer\r\n- This script uses TR2Main: for stability and features, like PS1 inventory background\r\n- Tomb Raider II Gold extension included\r\n- TR2 has insufficient controller support, you will find AntimicroX profiles I wrote here: \r\nhttps://github.com/legluondunet/MyLittleLutrisScripts/tree/master/Tomb%20Raider%20I/gamepad%20profiles",
  "name": "Tomb Raider II",
  "year": 1997,
  "steamid": 225300,
  "gogslug": "tomb_raider_123",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "tomb-raider-ii-steam-tr2main",
  "installer_slug": "tomb-raider-ii-steam-tr2main",
  "script": {
    "files": [
      {
        "mod": "https://github.com/Arsunt/TR2Main/releases/download/v0.9.0/TR2Main_v0.9.0.zip"
      },
      {
        "audiodll": "https://github.com/legluondunet/mlls-tools/raw/master/winmm/zplaymm.zip"
      }
    ],
    "game": {
      "exe": "drive_c/Tomb Raider 2/Tomb2.exe",
      "launch_configs": [
        {
          "args": "-gold",
          "exe": "$GAMEDIR/drive_c/Tomb Raider 2/Tomb2.exe",
          "name": "Tomb Raider II - Golden Mask"
        },
        {
          "args": "-setup",
          "exe": "$GAMEDIR/drive_c/Tomb Raider 2/Tomb2.exe",
          "name": "Setup dialog box"
        }
      ],
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "description": "Creating WINE prefix",
          "install_gecko": true,
          "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/data",
          "src": "$DISC/data"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Tomb Raider 2/fmv",
          "src": "$DISC/fmv"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Tomb Raider 2/music",
          "src": "$DISC/music"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Tomb Raider 2",
          "file": "mod"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/Tomb Raider 2/audio.bak",
          "src": "$GAMEDIR/drive_c/Tomb Raider 2/audio"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Tomb Raider 2",
          "file": "audiodll"
        }
      },
      {
        "execute": {
          "command": "cd \"$GAMEDIR/drive_c/Tomb Raider 2/music\"; ls {2..9}.mp3 | xargs -I {} mv {} 0{} ; ls *.mp3 | xargs -I {} mv {} Track{};"
        }
      },
      {
        "task": {
          "key": "InvBackgroundMode",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Software\\Core Design\\Tomb Raider II\\Game",
          "prefix": "$GAMEDIR",
          "type": "REG_DWORD",
          "value": "00000001"
        }
      },
      {
        "task": {
          "key": "DetailLevel",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Software\\Core Design\\Tomb Raider II\\Game",
          "prefix": "$GAMEDIR",
          "type": "REG_DWORD",
          "value": "00000002"
        }
      }
    ],
    "wine": {
      "overrides": {
        "ddraw": "n,b",
        "winmm": "n,b"
      }
    }
  }
}
Back to game