Installer spider-man-3-dvd

files:
- patch: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Spider-Man%203/sm3.zip
- regfile: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Spider-Man%203/sm3_display_utf8.reg
game:
  exe: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man 3/Game.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    install_gecko: true
    install_mono: false
    name: create_prefix
    prefix: $GAMEDIR
- task:
    arch: win64
    key: background
    name: set_regedit
    path: HKEY_CURRENT_USER\Control Panel\Colors\
    prefix: $GAMEDIR
    type: REG_SZ
    value: 0 0 0
- insert-disc:
    requires: setup/rsrc/sm3.ico
- task:
    args: /desktop=SM3,1024x780 "$DISC/setup.exe"
    description: Installing Spider-Man 3...
    executable: $GAMEDIR/drive_c/windows/explorer.exe
    include_processes: explorer.exe
    name: wineexec
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man 3/backup
    src: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man 3/Game.exe
- extract:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man 3
    file: patch
- input_menu:
    description: Spider-Man 3 resolution choice is limited. Please choose one of this
      supported resolution.
    id: DISPLAY
    options:
    - a: 1920x1080 16:9
    - b: 1920x1200 16:10
    - 9: 1680x1050 16:10
    - 7: 1440x900 16:10
    - 3: 1280x720 16:9
    preselect: a
- merge:
    dst: $GAMEDIR/drive_c/tmp
    src: regfile
- execute:
    command: cd $GAMEDIR/drive_c/tmp; sed -i s/0000000a/$INPUT_DISPLAY/ sm3_display_utf8.reg;
      iconv -f utf-8 -t utf16le sm3_display_utf8.reg -o sm3_display_utf16le.reg;
- task:
    args: $GAMEDIR/drive_c/tmp/sm3_display_utf16le.reg
    executable: regedit
    name: wineexec
    prefix: $GAMEDIR
system:
  env:
    DXVK_FRAME_RATE: '30'
wine:
  Desktop: true
description: '"Spider-Man 3" DVD edition'
game_slug: spider-man-3
gogslug: ''
humblestoreid: ''
installer_slug: spider-man-3-dvd
name: Spider-Man 3
notes: "- cap at 30 fps to avoid several issues. See: https://www.pcgamingwiki.com/wiki/Spider-Man_3#High_frame_rate\r\
  \n- this game supports maximum 1920x1080 resolution. You can use gamescope Lutris\
  \ option to play this game on superior resolution."
runner: wine
script:
  files:
  - patch: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Spider-Man%203/sm3.zip
  - regfile: https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Spider-Man%203/sm3_display_utf8.reg
  game:
    exe: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man 3/Game.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      install_gecko: true
      install_mono: false
      name: create_prefix
      prefix: $GAMEDIR
  - task:
      arch: win64
      key: background
      name: set_regedit
      path: HKEY_CURRENT_USER\Control Panel\Colors\
      prefix: $GAMEDIR
      type: REG_SZ
      value: 0 0 0
  - insert-disc:
      requires: setup/rsrc/sm3.ico
  - task:
      args: /desktop=SM3,1024x780 "$DISC/setup.exe"
      description: Installing Spider-Man 3...
      executable: $GAMEDIR/drive_c/windows/explorer.exe
      include_processes: explorer.exe
      name: wineexec
  - merge:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man 3/backup
      src: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man 3/Game.exe
  - extract:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man 3
      file: patch
  - input_menu:
      description: Spider-Man 3 resolution choice is limited. Please choose one of
        this supported resolution.
      id: DISPLAY
      options:
      - a: 1920x1080 16:9
      - b: 1920x1200 16:10
      - 9: 1680x1050 16:10
      - 7: 1440x900 16:10
      - 3: 1280x720 16:9
      preselect: a
  - merge:
      dst: $GAMEDIR/drive_c/tmp
      src: regfile
  - execute:
      command: cd $GAMEDIR/drive_c/tmp; sed -i s/0000000a/$INPUT_DISPLAY/ sm3_display_utf8.reg;
        iconv -f utf-8 -t utf16le sm3_display_utf8.reg -o sm3_display_utf16le.reg;
  - task:
      args: $GAMEDIR/drive_c/tmp/sm3_display_utf16le.reg
      executable: regedit
      name: wineexec
      prefix: $GAMEDIR
  system:
    env:
      DXVK_FRAME_RATE: '30'
  wine:
    Desktop: true
slug: spider-man-3-dvd
steamid: null
version: DVD
year: 2007
{
  "game_slug": "spider-man-3",
  "version": "DVD",
  "description": "\"Spider-Man 3\" DVD edition",
  "notes": "- cap at 30 fps to avoid several issues. See: https://www.pcgamingwiki.com/wiki/Spider-Man_3#High_frame_rate\r\n- this game supports maximum 1920x1080 resolution. You can use gamescope Lutris option to play this game on superior resolution.",
  "name": "Spider-Man 3",
  "year": 2007,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "spider-man-3-dvd",
  "installer_slug": "spider-man-3-dvd",
  "script": {
    "files": [
      {
        "patch": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Spider-Man%203/sm3.zip"
      },
      {
        "regfile": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/master/Spider-Man%203/sm3_display_utf8.reg"
      }
    ],
    "game": {
      "exe": "$GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man 3/Game.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "install_gecko": true,
          "install_mono": false,
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "arch": "win64",
          "key": "background",
          "name": "set_regedit",
          "path": "HKEY_CURRENT_USER\\Control Panel\\Colors\\",
          "prefix": "$GAMEDIR",
          "type": "REG_SZ",
          "value": "0 0 0"
        }
      },
      {
        "insert-disc": {
          "requires": "setup/rsrc/sm3.ico"
        }
      },
      {
        "task": {
          "args": "/desktop=SM3,1024x780 \"$DISC/setup.exe\"",
          "description": "Installing Spider-Man 3...",
          "executable": "$GAMEDIR/drive_c/windows/explorer.exe",
          "include_processes": "explorer.exe",
          "name": "wineexec"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man 3/backup",
          "src": "$GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man 3/Game.exe"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man 3",
          "file": "patch"
        }
      },
      {
        "input_menu": {
          "description": "Spider-Man 3 resolution choice is limited. Please choose one of this supported resolution.",
          "id": "DISPLAY",
          "options": [
            {
              "a": "1920x1080 16:9"
            },
            {
              "b": "1920x1200 16:10"
            },
            {
              "9": "1680x1050 16:10"
            },
            {
              "7": "1440x900 16:10"
            },
            {
              "3": "1280x720 16:9"
            }
          ],
          "preselect": "a"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/tmp",
          "src": "regfile"
        }
      },
      {
        "execute": {
          "command": "cd $GAMEDIR/drive_c/tmp; sed -i s/0000000a/$INPUT_DISPLAY/ sm3_display_utf8.reg; iconv -f utf-8 -t utf16le sm3_display_utf8.reg -o sm3_display_utf16le.reg;"
        }
      },
      {
        "task": {
          "args": "$GAMEDIR/drive_c/tmp/sm3_display_utf16le.reg",
          "executable": "regedit",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      }
    ],
    "system": {
      "env": {
        "DXVK_FRAME_RATE": "30"
      }
    },
    "wine": {
      "Desktop": true
    }
  }
}
Back to game