Installer harry-potter-and-the-chamber-cd-d7vk-mods

files:
- wine_fix: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/hp2wine.zip
- game_res: https://github.com/r57zone/Harry-Potter-Settings/releases/download/1.1/Harry.Potter.Settings.1.1.zip
- game_mod: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/hp_ps_menu_ws.7z
- wrapper: https://github.com/WinterSnowfall/d7vk/releases/download/v1.0/d7vk-v1.0.zip
game:
  exe: drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system/Game.exe
  launch_configs:
  - exe: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
      of Secrets/system/Harry Potter Settings.exe
    name: Harry Potter resolution settings
  prefix: $GAMEDIR
installer:
- task:
    description: Preparing wineprefix...
    name: create_prefix
    prefix: $GAMEDIR
- insert-disc:
    requires: game.ico
- task:
    description: Installing Harry Potter and the Chamber of Secrets. Please let all
      options to default. When asking for a serial, type 2501-5635676-9791120-3400.
      Do not launch game at the end.
    executable: $DISC/autorun.exe
    name: wineexec
- execute:
    command: cd "$GAMEDIR/drive_c/Program Files (x86)/EA Games"; if [ -d "Harry Potter
      and the Chamber of Secrets" ]; then exit; else gamepath=$(find . -maxdepth 1
      -type d -iname "*Harry*"); gamepath=$(basename "$gamepath"); ln -s "$gamepath"
      "Harry Potter and the Chamber of Secrets"; fi;
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
      of Secrets/backup
    src: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
      of Secrets/system/Game.exe
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
      of Secrets/backup
    src: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
      of Secrets/system/D3DDrv.dll
- write_config:
    data:
      ALAudio.ALAudioSubsystem:
        MusicVolume: 0.3
        SoundVolume: 0.9
      WinDrv.WindowsClient:
        FullscreenColorBits: 32
        FullscreenViewportX: 1024
        FullscreenViewportY: 768
        MinDesiredFrameRate: 60.0
        SkinDetail: High
        StartupFullscreen: true
        TextureDetail: High
        WindowedColorBits: 32
        WindowedViewportX: 1024
        WindowedViewportY: 768
    file: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
      of Secrets/system/default.ini
    merge: true
- extract:
    dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
      of Secrets/system
    file: game_mod
- extract:
    dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
      of Secrets/system
    file: wine_fix
- extract:
    dst: $CACHE
    file: wrapper
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
      of Secrets/system
    src: $CACHE/x32/ddraw.dll
- extract:
    dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
      of Secrets/system
    src: game_res
wine:
  overrides:
    ddraw: n,b
description: Play "Harry Potter and the Chamber of Secrets" CD edition on Linux!
game_slug: harry-potter-and-the-chamber-of-secrets
gogslug: ''
humblestoreid: ''
installer_slug: harry-potter-and-the-chamber-cd-d7vk-mods
name: Harry Potter and the Chamber of Secrets
notes: "- You will need CD only one time during install\r\n- Using D7VK for better\
  \ graphic performance and stability\r\n- Included two mods: \"HP2 Wine fix\" and\
  \ \"JaGoTu Menu fix\" to fix issues on modern OS\r\n- This game does not natively\
  \ support controller. You will find an Antimicrox profile here:\r\nhttps://github.com/legluondunet/MyLittleLutrisScripts/tree/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/gamepad%20profiles"
runner: wine
script:
  files:
  - wine_fix: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/hp2wine.zip
  - game_res: https://github.com/r57zone/Harry-Potter-Settings/releases/download/1.1/Harry.Potter.Settings.1.1.zip
  - game_mod: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/hp_ps_menu_ws.7z
  - wrapper: https://github.com/WinterSnowfall/d7vk/releases/download/v1.0/d7vk-v1.0.zip
  game:
    exe: drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system/Game.exe
    launch_configs:
    - exe: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
        of Secrets/system/Harry Potter Settings.exe
      name: Harry Potter resolution settings
    prefix: $GAMEDIR
  installer:
  - task:
      description: Preparing wineprefix...
      name: create_prefix
      prefix: $GAMEDIR
  - insert-disc:
      requires: game.ico
  - task:
      description: Installing Harry Potter and the Chamber of Secrets. Please let
        all options to default. When asking for a serial, type 2501-5635676-9791120-3400.
        Do not launch game at the end.
      executable: $DISC/autorun.exe
      name: wineexec
  - execute:
      command: cd "$GAMEDIR/drive_c/Program Files (x86)/EA Games"; if [ -d "Harry
        Potter and the Chamber of Secrets" ]; then exit; else gamepath=$(find . -maxdepth
        1 -type d -iname "*Harry*"); gamepath=$(basename "$gamepath"); ln -s "$gamepath"
        "Harry Potter and the Chamber of Secrets"; fi;
  - merge:
      dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
        of Secrets/backup
      src: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
        of Secrets/system/Game.exe
  - merge:
      dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
        of Secrets/backup
      src: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
        of Secrets/system/D3DDrv.dll
  - write_config:
      data:
        ALAudio.ALAudioSubsystem:
          MusicVolume: 0.3
          SoundVolume: 0.9
        WinDrv.WindowsClient:
          FullscreenColorBits: 32
          FullscreenViewportX: 1024
          FullscreenViewportY: 768
          MinDesiredFrameRate: 60.0
          SkinDetail: High
          StartupFullscreen: true
          TextureDetail: High
          WindowedColorBits: 32
          WindowedViewportX: 1024
          WindowedViewportY: 768
      file: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
        of Secrets/system/default.ini
      merge: true
  - extract:
      dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
        of Secrets/system
      file: game_mod
  - extract:
      dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
        of Secrets/system
      file: wine_fix
  - extract:
      dst: $CACHE
      file: wrapper
  - merge:
      dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
        of Secrets/system
      src: $CACHE/x32/ddraw.dll
  - extract:
      dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
        of Secrets/system
      src: game_res
  wine:
    overrides:
      ddraw: n,b
slug: harry-potter-and-the-chamber-cd-d7vk-mods
steamid: null
version: CD + D7VK + mods
year: 2002
{
  "game_slug": "harry-potter-and-the-chamber-of-secrets",
  "version": "CD + D7VK + mods",
  "description": "Play \"Harry Potter and the Chamber of Secrets\" CD edition on Linux!",
  "notes": "- You will need CD only one time during install\r\n- Using D7VK for better graphic performance and stability\r\n- Included two mods: \"HP2 Wine fix\" and \"JaGoTu Menu fix\" to fix issues on modern OS\r\n- This game does not natively support controller. You will find an Antimicrox profile here:\r\nhttps://github.com/legluondunet/MyLittleLutrisScripts/tree/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/gamepad%20profiles",
  "name": "Harry Potter and the Chamber of Secrets",
  "year": 2002,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "harry-potter-and-the-chamber-cd-d7vk-mods",
  "installer_slug": "harry-potter-and-the-chamber-cd-d7vk-mods",
  "script": {
    "files": [
      {
        "wine_fix": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/hp2wine.zip"
      },
      {
        "game_res": "https://github.com/r57zone/Harry-Potter-Settings/releases/download/1.1/Harry.Potter.Settings.1.1.zip"
      },
      {
        "game_mod": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/hp_ps_menu_ws.7z"
      },
      {
        "wrapper": "https://github.com/WinterSnowfall/d7vk/releases/download/v1.0/d7vk-v1.0.zip"
      }
    ],
    "game": {
      "exe": "drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system/Game.exe",
      "launch_configs": [
        {
          "exe": "$GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system/Harry Potter Settings.exe",
          "name": "Harry Potter resolution settings"
        }
      ],
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "description": "Preparing wineprefix...",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "insert-disc": {
          "requires": "game.ico"
        }
      },
      {
        "task": {
          "description": "Installing Harry Potter and the Chamber of Secrets. Please let all options to default. When asking for a serial, type 2501-5635676-9791120-3400. Do not launch game at the end.",
          "executable": "$DISC/autorun.exe",
          "name": "wineexec"
        }
      },
      {
        "execute": {
          "command": "cd \"$GAMEDIR/drive_c/Program Files (x86)/EA Games\"; if [ -d \"Harry Potter and the Chamber of Secrets\" ]; then exit; else gamepath=$(find . -maxdepth 1 -type d -iname \"*Harry*\"); gamepath=$(basename \"$gamepath\"); ln -s \"$gamepath\" \"Harry Potter and the Chamber of Secrets\"; fi;"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/backup",
          "src": "$GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system/Game.exe"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/backup",
          "src": "$GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system/D3DDrv.dll"
        }
      },
      {
        "write_config": {
          "data": {
            "ALAudio.ALAudioSubsystem": {
              "MusicVolume": 0.3,
              "SoundVolume": 0.9
            },
            "WinDrv.WindowsClient": {
              "FullscreenColorBits": 32,
              "FullscreenViewportX": 1024,
              "FullscreenViewportY": 768,
              "MinDesiredFrameRate": 60.0,
              "SkinDetail": "High",
              "StartupFullscreen": true,
              "TextureDetail": "High",
              "WindowedColorBits": 32,
              "WindowedViewportX": 1024,
              "WindowedViewportY": 768
            }
          },
          "file": "$GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system/default.ini",
          "merge": true
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system",
          "file": "game_mod"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system",
          "file": "wine_fix"
        }
      },
      {
        "extract": {
          "dst": "$CACHE",
          "file": "wrapper"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system",
          "src": "$CACHE/x32/ddraw.dll"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system",
          "src": "game_res"
        }
      }
    ],
    "wine": {
      "overrides": {
        "ddraw": "n,b"
      }
    }
  }
}
Back to game