Installer prince-of-persia-the-sands-of-gog-widescreen-patch

files:
- gogsetup: N/A:Please select the GOG Windows setup exe file from your GOG account.
- wds: https://raw.githubusercontent.com/legluondunet/MyLittleLutrisScripts/master/Prince%20of%20Persia%20-%20The%20Sands%20of%20time/pop.7z
game:
  exe: drive_c/GOG Games/Prince of Persia - The Sands of Time/PrinceOfPersia.EXE
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time
    file: gogsetup
- extract:
    dst: $GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time
    file: wds
- input_menu:
    description: Select your resolution ratio
    id: RATIO
    options:
    - -0.148958: 16/9 like 1920x1080
    - -0.08245: 16/10 like 1920x1200
    preselect: -0.148958
- write_file:
    content: '[MAIN]

      Width = $RESOLUTION_WIDTH

      Height = $RESOLUTION_HEIGHT


      [HUD]

      HUD_posX_auto = 1 // 0 - Off; 1 - On;

      HUD_posX = $INPUT_RATIO // -0.082450 - for 16x10 mode; -0.148958 for 16x9 mode;


      [MISC]

      cutscenes_black_borders = 0 //  0 - Off; 1 - On

      Xbox_fov = 1 //  0 - Off; 1 - On

      fov_multiplier = 1.0 // original value 1.0;'
    file: $GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time/pop.ini
- merge:
    dst: $GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time
    src: $GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time/__support/app
- write_config:
    data:
      CAPS:
        InvertFogRange: 0
    file: $GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time/Hardware.ini
    merge: true
system:
  env:
    DXVK_FRAME_RATE: '60'
    DXVK_HUD: null
wine:
  overrides:
    '*d3d9': n,b
description: Play "Prince of Persia - The Sands of Time" provided by GOG on Linux!
game_slug: prince-of-persia-the-sands-of-time
gogslug: prince_of_persia_bundle
humblestoreid: ''
installer_slug: prince-of-persia-the-sands-of-gog-widescreen-patch
name: 'Prince of Persia: The Sands of Time'
notes: "- This script installer will automagically set the game to your desktop resolution\
  \ with widescreen mode\r\n- In case of graphical issues, turn off fog into the graphics\
  \ settings\r\n- This game has insufficient controller support, for a better game\
  \ experience, you will find AntimicroX profiles for your controller here:\r\nhttps://github.com/legluondunet/MyLittleLutrisScripts/tree/master/Prince%20of%20Persia%20-%20The%20Sands%20of%20time/gamepad%20profiles"
runner: wine
script:
  files:
  - gogsetup: N/A:Please select the GOG Windows setup exe file from your GOG account.
  - wds: https://raw.githubusercontent.com/legluondunet/MyLittleLutrisScripts/master/Prince%20of%20Persia%20-%20The%20Sands%20of%20time/pop.7z
  game:
    exe: drive_c/GOG Games/Prince of Persia - The Sands of Time/PrinceOfPersia.EXE
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      name: create_prefix
      prefix: $GAMEDIR
  - extract:
      dst: $GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time
      file: gogsetup
  - extract:
      dst: $GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time
      file: wds
  - input_menu:
      description: Select your resolution ratio
      id: RATIO
      options:
      - -0.148958: 16/9 like 1920x1080
      - -0.08245: 16/10 like 1920x1200
      preselect: -0.148958
  - write_file:
      content: '[MAIN]

        Width = $RESOLUTION_WIDTH

        Height = $RESOLUTION_HEIGHT


        [HUD]

        HUD_posX_auto = 1 // 0 - Off; 1 - On;

        HUD_posX = $INPUT_RATIO // -0.082450 - for 16x10 mode; -0.148958 for 16x9
        mode;


        [MISC]

        cutscenes_black_borders = 0 //  0 - Off; 1 - On

        Xbox_fov = 1 //  0 - Off; 1 - On

        fov_multiplier = 1.0 // original value 1.0;'
      file: $GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time/pop.ini
  - merge:
      dst: $GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time
      src: $GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time/__support/app
  - write_config:
      data:
        CAPS:
          InvertFogRange: 0
      file: $GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time/Hardware.ini
      merge: true
  system:
    env:
      DXVK_FRAME_RATE: '60'
      DXVK_HUD: null
  wine:
    overrides:
      '*d3d9': n,b
slug: prince-of-persia-the-sands-of-gog-widescreen-patch
steamid: 13600
version: GOG + widescreen patch
year: 2003
{
  "game_slug": "prince-of-persia-the-sands-of-time",
  "version": "GOG + widescreen patch",
  "description": "Play \"Prince of Persia - The Sands of Time\" provided by GOG on Linux!",
  "notes": "- This script installer will automagically set the game to your desktop resolution with widescreen mode\r\n- In case of graphical issues, turn off fog into the graphics settings\r\n- This game has insufficient controller support, for a better game experience, you will find AntimicroX profiles for your controller here:\r\nhttps://github.com/legluondunet/MyLittleLutrisScripts/tree/master/Prince%20of%20Persia%20-%20The%20Sands%20of%20time/gamepad%20profiles",
  "name": "Prince of Persia: The Sands of Time",
  "year": 2003,
  "steamid": 13600,
  "gogslug": "prince_of_persia_bundle",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "prince-of-persia-the-sands-of-gog-widescreen-patch",
  "installer_slug": "prince-of-persia-the-sands-of-gog-widescreen-patch",
  "script": {
    "files": [
      {
        "gogsetup": "N/A:Please select the GOG Windows setup exe file from your GOG account."
      },
      {
        "wds": "https://raw.githubusercontent.com/legluondunet/MyLittleLutrisScripts/master/Prince%20of%20Persia%20-%20The%20Sands%20of%20time/pop.7z"
      }
    ],
    "game": {
      "exe": "drive_c/GOG Games/Prince of Persia - The Sands of Time/PrinceOfPersia.EXE",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time",
          "file": "gogsetup"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time",
          "file": "wds"
        }
      },
      {
        "input_menu": {
          "description": "Select your resolution ratio",
          "id": "RATIO",
          "options": [
            {
              "-0.148958": "16/9 like 1920x1080"
            },
            {
              "-0.08245": "16/10 like 1920x1200"
            }
          ],
          "preselect": -0.148958
        }
      },
      {
        "write_file": {
          "content": "[MAIN]\nWidth = $RESOLUTION_WIDTH\nHeight = $RESOLUTION_HEIGHT\n\n[HUD]\nHUD_posX_auto = 1 // 0 - Off; 1 - On;\nHUD_posX = $INPUT_RATIO // -0.082450 - for 16x10 mode; -0.148958 for 16x9 mode;\n\n[MISC]\ncutscenes_black_borders = 0 //  0 - Off; 1 - On\nXbox_fov = 1 //  0 - Off; 1 - On\nfov_multiplier = 1.0 // original value 1.0;",
          "file": "$GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time/pop.ini"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time",
          "src": "$GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time/__support/app"
        }
      },
      {
        "write_config": {
          "data": {
            "CAPS": {
              "InvertFogRange": 0
            }
          },
          "file": "$GAMEDIR/drive_c/GOG Games/Prince of Persia - The Sands of Time/Hardware.ini",
          "merge": true
        }
      }
    ],
    "system": {
      "env": {
        "DXVK_FRAME_RATE": "60",
        "DXVK_HUD": null
      }
    },
    "wine": {
      "overrides": {
        "*d3d9": "n,b"
      }
    }
  }
}
Back to game