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

files:
- patch: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/hp2cos_patch.7z
- launcher: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/HarryPotter2-NeoLauncher.tar.xz
- mod1: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/D3D9_1.0_Release.7z
- mod2: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/hp2widescreenmenu.zip
game:
  exe: drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system/HP2.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    description: Preparing wineprefix...
    install_gecko: false
    install_mono: false
    name: create_prefix
    prefix: $GAMEDIR
- insert-disc:
    requires: game.ico
- task:
    description: Installing Harry Potter and the Chamber of Secrets ...
    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;
- extract:
    dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
      of Secrets/system
    file: patch
- extract:
    dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
      of Secrets/system
    file: mod1
- extract:
    dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
      of Secrets/system
    file: launcher
- extract:
    dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
      of Secrets
    file: mod2
- write_config:
    data:
      ALAudio.ALAudioSubsystem:
        MusicVolume: 0.25
        SoundVolume: 0.8
      Engine.Engine:
        GameRenderDevice: D3D9Drv.D3D9RenderDevice
      HGame.baseConsole:
        bDebugMode: false
      UWindow.WindowConsole:
        ConsoleKey: 112
      WinDrv.WindowsClient:
        FullscreenColorBits: 32
        FullscreenViewportX: $RESOLUTION_WIDTH
        FullscreenViewportY: $RESOLUTION_HEIGHT
        MinDesiredFrameRate: 60.0
        WindowedColorBits: 32
        WindowedViewportX: $RESOLUTION_WIDTH
        WindowedViewportY: $RESOLUTION_HEIGHT
    file: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
      of Secrets/system/default.ini
    merge: true
- write_config:
    data:
      Engine.PlayerPawn:
        DefaultFOV: 106,26
        DesiredFOV: 106,26
    file: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
      of Secrets/system/DefUser.ini
    merge: true
system:
  env:
    DXVK_FRAME_RATE: '60'
    DXVK_HUD: null
  gamescope: true
  gamescope_game_res: $RESOLUTION
  gamescope_output_res: $RESOLUTION
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-widescreen-mods
name: Harry Potter and the Chamber of Secrets
notes: "- You will need CD only one time during install\r\n- Replaced original buggy\
  \ launcher by HarryPotter2-NeoLauncher open source project\r\n- Using different\
  \ mods: DirectX 9 renderer, Widescreen menu mod\r\n- Alt-Tab could crash the game\
  \ or cause game unstability. Workaround: use Gamescope\r\n- In debug mode, type\
  \ F1 key to show console\r\n- This game does not natively support controller. I\
  \ wrote Antimicrox profiles, you can download them here:\r\nhttps://github.com/legluondunet/MyLittleLutrisScripts/tree/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/gamepad%20profiles"
runner: wine
script:
  files:
  - patch: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/hp2cos_patch.7z
  - launcher: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/HarryPotter2-NeoLauncher.tar.xz
  - mod1: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/D3D9_1.0_Release.7z
  - mod2: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/hp2widescreenmenu.zip
  game:
    exe: drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system/HP2.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      description: Preparing wineprefix...
      install_gecko: false
      install_mono: false
      name: create_prefix
      prefix: $GAMEDIR
  - insert-disc:
      requires: game.ico
  - task:
      description: Installing Harry Potter and the Chamber of Secrets ...
      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;
  - extract:
      dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
        of Secrets/system
      file: patch
  - extract:
      dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
        of Secrets/system
      file: mod1
  - extract:
      dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
        of Secrets/system
      file: launcher
  - extract:
      dst: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
        of Secrets
      file: mod2
  - write_config:
      data:
        ALAudio.ALAudioSubsystem:
          MusicVolume: 0.25
          SoundVolume: 0.8
        Engine.Engine:
          GameRenderDevice: D3D9Drv.D3D9RenderDevice
        HGame.baseConsole:
          bDebugMode: false
        UWindow.WindowConsole:
          ConsoleKey: 112
        WinDrv.WindowsClient:
          FullscreenColorBits: 32
          FullscreenViewportX: $RESOLUTION_WIDTH
          FullscreenViewportY: $RESOLUTION_HEIGHT
          MinDesiredFrameRate: 60.0
          WindowedColorBits: 32
          WindowedViewportX: $RESOLUTION_WIDTH
          WindowedViewportY: $RESOLUTION_HEIGHT
      file: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
        of Secrets/system/default.ini
      merge: true
  - write_config:
      data:
        Engine.PlayerPawn:
          DefaultFOV: 106,26
          DesiredFOV: 106,26
      file: $GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber
        of Secrets/system/DefUser.ini
      merge: true
  system:
    env:
      DXVK_FRAME_RATE: '60'
      DXVK_HUD: null
    gamescope: true
    gamescope_game_res: $RESOLUTION
    gamescope_output_res: $RESOLUTION
slug: harry-potter-and-the-chamber-cd-widescreen-mods
steamid: null
version: CD + widescreen mods
year: 2002
{
  "game_slug": "harry-potter-and-the-chamber-of-secrets",
  "version": "CD + widescreen 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- Replaced original buggy launcher by HarryPotter2-NeoLauncher open source project\r\n- Using different mods: DirectX 9 renderer, Widescreen menu mod\r\n- Alt-Tab could crash the game or cause game unstability. Workaround: use Gamescope\r\n- In debug mode, type F1 key to show console\r\n- This game does not natively support controller. I wrote Antimicrox profiles, you can download them 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-widescreen-mods",
  "installer_slug": "harry-potter-and-the-chamber-cd-widescreen-mods",
  "script": {
    "files": [
      {
        "patch": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/hp2cos_patch.7z"
      },
      {
        "launcher": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/HarryPotter2-NeoLauncher.tar.xz"
      },
      {
        "mod1": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/D3D9_1.0_Release.7z"
      },
      {
        "mod2": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Harry%20Potter%20and%20the%20Chamber%20of%20Secrets/hp2widescreenmenu.zip"
      }
    ],
    "game": {
      "exe": "drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system/HP2.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "description": "Preparing wineprefix...",
          "install_gecko": false,
          "install_mono": false,
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "insert-disc": {
          "requires": "game.ico"
        }
      },
      {
        "task": {
          "description": "Installing Harry Potter and the Chamber of Secrets ...",
          "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;"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system",
          "file": "patch"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system",
          "file": "mod1"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system",
          "file": "launcher"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets",
          "file": "mod2"
        }
      },
      {
        "write_config": {
          "data": {
            "ALAudio.ALAudioSubsystem": {
              "MusicVolume": 0.25,
              "SoundVolume": 0.8
            },
            "Engine.Engine": {
              "GameRenderDevice": "D3D9Drv.D3D9RenderDevice"
            },
            "HGame.baseConsole": {
              "bDebugMode": false
            },
            "UWindow.WindowConsole": {
              "ConsoleKey": 112
            },
            "WinDrv.WindowsClient": {
              "FullscreenColorBits": 32,
              "FullscreenViewportX": "$RESOLUTION_WIDTH",
              "FullscreenViewportY": "$RESOLUTION_HEIGHT",
              "MinDesiredFrameRate": 60.0,
              "WindowedColorBits": 32,
              "WindowedViewportX": "$RESOLUTION_WIDTH",
              "WindowedViewportY": "$RESOLUTION_HEIGHT"
            }
          },
          "file": "$GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system/default.ini",
          "merge": true
        }
      },
      {
        "write_config": {
          "data": {
            "Engine.PlayerPawn": {
              "DefaultFOV": "106,26",
              "DesiredFOV": "106,26"
            }
          },
          "file": "$GAMEDIR/drive_c/Program Files (x86)/EA Games/Harry Potter and the Chamber of Secrets/system/DefUser.ini",
          "merge": true
        }
      }
    ],
    "system": {
      "env": {
        "DXVK_FRAME_RATE": "60",
        "DXVK_HUD": null
      },
      "gamescope": true,
      "gamescope_game_res": "$RESOLUTION",
      "gamescope_output_res": "$RESOLUTION"
    }
  }
}
Back to game