Installer spider-man-2002-cd-fix-enhancers

files:
- game_cd1_cue: https://archive.org/download/spiderman-the-game-disc-2/STM_Disk1.cue
- game_cd1_bin: https://archive.org/download/spiderman-the-game-disc-2/STM_Disk1.bin
- game_cd2_cue: https://archive.org/download/spiderman-the-game-disc-2/STM_Disk2.cue
- game_cd2_bin: https://archive.org/download/spiderman-the-game-disc-2/STM_Disk2.bin
- game_reg: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Spider-Man%20(2002)/sm2002.reg
- game_patch2: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Spider-Man%20(2002)/sm2002_patch.zip
- game_patch1: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Spider-Man%20(2002)/stm_patch_v1.3.zip
- game_fix: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Spider-Man%20(2002)/sm2002_fix.zip
- cd_tools: https://github.com/legluondunet/mlls-tools/raw/refs/heads/master/cdrtools/cdrtools.zip
- game_wrapper_ctrl: https://github.com/elishacloud/dinputto8/releases/download/v1.1.100.0/dinput.dll
game:
  exe: drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie/SpiderMan.exe
  prefix: $GAMEDIR
installer:
- task:
    arch: win64
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    dst: $CACHE
    file: cd_tools
- execute:
    command: cd "$CACHE" ; ./bchunk "$game_cd1_bin" "$game_cd1_cue" "STM_Disk1" ;  ./bchunk
      "$game_cd2_bin" "$game_cd2_cue" "STM_Disk2" ;
- extract:
    description: Extracting CD1 data...
    dst: $CACHE/CD
    file: $CACHE/STM_Disk101.iso
    format: iso
- extract:
    description: Extracting CD2 data...
    dst: $CACHE/CD
    file: $CACHE/STM_Disk201.iso
    format: iso
- task:
    args: /s /X Setup/Data/data/levels
    description: Extracting more data from CD...
    executable: $CACHE/CD/Setup.exe
    name: wineexec
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie
    src: $CACHE/CD/Setup/Data
- task:
    filename: game_reg
    name: set_regedit_file
- extract:
    dst: $CACHE
    file: game_patch1
- task:
    args: /S
    description: Installing  Spider-Man (2002) update 1.3...
    executable: $CACHE/stm_patch_v1.3.exe
    name: wineexec
- move:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie/SpiderMan.bak
    src: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie/SpiderMan.exe
- extract:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie
    file: game_patch2
- input_menu:
    description: What is your screen resolution?
    id: RES
    options:
    - 1080p: less or equal to 1920x1080 (HD screen, Steamdeck)
    - 4K: greater than 1920x1080 (4K)
    preselect: 1080p
- extract:
    dst: $CACHE
    file: game_fix
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie
    src: $CACHE/$INPUT_RES
- merge:
    dst: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie
    src: game_wrapper_ctrl
wine:
  overrides:
    d3d8: n,b
    dinput: n,b
description: Play "Spider-Man (2002)" CD Edition on Linux!
game_slug: spider-man-2002
gogslug: ''
humblestoreid: ''
installer_slug: spider-man-2002-cd-fix-enhancers
name: Spider-Man (2002)
notes: "- Game CD images will be downloaded directly from Internet Archives\r\n- Graphic\
  \ fixes from fix-enhancers and 1.3 official patch included\r\n- If you are unable\
  \ to get your controller to work with this game, you will find AntiMicroX profiles\
  \ here: https://github.com/legluondunet/MyLittleLutrisScripts/tree/master/Spider-Man%20(2002)/controller"
runner: wine
script:
  files:
  - game_cd1_cue: https://archive.org/download/spiderman-the-game-disc-2/STM_Disk1.cue
  - game_cd1_bin: https://archive.org/download/spiderman-the-game-disc-2/STM_Disk1.bin
  - game_cd2_cue: https://archive.org/download/spiderman-the-game-disc-2/STM_Disk2.cue
  - game_cd2_bin: https://archive.org/download/spiderman-the-game-disc-2/STM_Disk2.bin
  - game_reg: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Spider-Man%20(2002)/sm2002.reg
  - game_patch2: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Spider-Man%20(2002)/sm2002_patch.zip
  - game_patch1: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Spider-Man%20(2002)/stm_patch_v1.3.zip
  - game_fix: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Spider-Man%20(2002)/sm2002_fix.zip
  - cd_tools: https://github.com/legluondunet/mlls-tools/raw/refs/heads/master/cdrtools/cdrtools.zip
  - game_wrapper_ctrl: https://github.com/elishacloud/dinputto8/releases/download/v1.1.100.0/dinput.dll
  game:
    exe: drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie/SpiderMan.exe
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win64
      name: create_prefix
      prefix: $GAMEDIR
  - extract:
      dst: $CACHE
      file: cd_tools
  - execute:
      command: cd "$CACHE" ; ./bchunk "$game_cd1_bin" "$game_cd1_cue" "STM_Disk1"
        ;  ./bchunk "$game_cd2_bin" "$game_cd2_cue" "STM_Disk2" ;
  - extract:
      description: Extracting CD1 data...
      dst: $CACHE/CD
      file: $CACHE/STM_Disk101.iso
      format: iso
  - extract:
      description: Extracting CD2 data...
      dst: $CACHE/CD
      file: $CACHE/STM_Disk201.iso
      format: iso
  - task:
      args: /s /X Setup/Data/data/levels
      description: Extracting more data from CD...
      executable: $CACHE/CD/Setup.exe
      name: wineexec
  - merge:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie
      src: $CACHE/CD/Setup/Data
  - task:
      filename: game_reg
      name: set_regedit_file
  - extract:
      dst: $CACHE
      file: game_patch1
  - task:
      args: /S
      description: Installing  Spider-Man (2002) update 1.3...
      executable: $CACHE/stm_patch_v1.3.exe
      name: wineexec
  - move:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie/SpiderMan.bak
      src: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie/SpiderMan.exe
  - extract:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie
      file: game_patch2
  - input_menu:
      description: What is your screen resolution?
      id: RES
      options:
      - 1080p: less or equal to 1920x1080 (HD screen, Steamdeck)
      - 4K: greater than 1920x1080 (4K)
      preselect: 1080p
  - extract:
      dst: $CACHE
      file: game_fix
  - merge:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie
      src: $CACHE/$INPUT_RES
  - merge:
      dst: $GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie
      src: game_wrapper_ctrl
  wine:
    overrides:
      d3d8: n,b
      dinput: n,b
slug: spider-man-2002-cd-fix-enhancers
steamid: null
version: CD + fix-enhancers
year: 2002
{
  "game_slug": "spider-man-2002",
  "version": "CD + fix-enhancers",
  "description": "Play \"Spider-Man (2002)\" CD Edition on Linux!",
  "notes": "- Game CD images will be downloaded directly from Internet Archives\r\n- Graphic fixes from fix-enhancers and 1.3 official patch included\r\n- If you are unable to get your controller to work with this game, you will find AntiMicroX profiles here: https://github.com/legluondunet/MyLittleLutrisScripts/tree/master/Spider-Man%20(2002)/controller",
  "name": "Spider-Man (2002)",
  "year": 2002,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "spider-man-2002-cd-fix-enhancers",
  "installer_slug": "spider-man-2002-cd-fix-enhancers",
  "script": {
    "files": [
      {
        "game_cd1_cue": "https://archive.org/download/spiderman-the-game-disc-2/STM_Disk1.cue"
      },
      {
        "game_cd1_bin": "https://archive.org/download/spiderman-the-game-disc-2/STM_Disk1.bin"
      },
      {
        "game_cd2_cue": "https://archive.org/download/spiderman-the-game-disc-2/STM_Disk2.cue"
      },
      {
        "game_cd2_bin": "https://archive.org/download/spiderman-the-game-disc-2/STM_Disk2.bin"
      },
      {
        "game_reg": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Spider-Man%20(2002)/sm2002.reg"
      },
      {
        "game_patch2": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Spider-Man%20(2002)/sm2002_patch.zip"
      },
      {
        "game_patch1": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Spider-Man%20(2002)/stm_patch_v1.3.zip"
      },
      {
        "game_fix": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Spider-Man%20(2002)/sm2002_fix.zip"
      },
      {
        "cd_tools": "https://github.com/legluondunet/mlls-tools/raw/refs/heads/master/cdrtools/cdrtools.zip"
      },
      {
        "game_wrapper_ctrl": "https://github.com/elishacloud/dinputto8/releases/download/v1.1.100.0/dinput.dll"
      }
    ],
    "game": {
      "exe": "drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie/SpiderMan.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win64",
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "dst": "$CACHE",
          "file": "cd_tools"
        }
      },
      {
        "execute": {
          "command": "cd \"$CACHE\" ; ./bchunk \"$game_cd1_bin\" \"$game_cd1_cue\" \"STM_Disk1\" ;  ./bchunk \"$game_cd2_bin\" \"$game_cd2_cue\" \"STM_Disk2\" ;"
        }
      },
      {
        "extract": {
          "description": "Extracting CD1 data...",
          "dst": "$CACHE/CD",
          "file": "$CACHE/STM_Disk101.iso",
          "format": "iso"
        }
      },
      {
        "extract": {
          "description": "Extracting CD2 data...",
          "dst": "$CACHE/CD",
          "file": "$CACHE/STM_Disk201.iso",
          "format": "iso"
        }
      },
      {
        "task": {
          "args": "/s /X Setup/Data/data/levels",
          "description": "Extracting more data from CD...",
          "executable": "$CACHE/CD/Setup.exe",
          "name": "wineexec"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie",
          "src": "$CACHE/CD/Setup/Data"
        }
      },
      {
        "task": {
          "filename": "game_reg",
          "name": "set_regedit_file"
        }
      },
      {
        "extract": {
          "dst": "$CACHE",
          "file": "game_patch1"
        }
      },
      {
        "task": {
          "args": "/S",
          "description": "Installing  Spider-Man (2002) update 1.3...",
          "executable": "$CACHE/stm_patch_v1.3.exe",
          "name": "wineexec"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie/SpiderMan.bak",
          "src": "$GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie/SpiderMan.exe"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie",
          "file": "game_patch2"
        }
      },
      {
        "input_menu": {
          "description": "What is your screen resolution?",
          "id": "RES",
          "options": [
            {
              "1080p": "less or equal to 1920x1080 (HD screen, Steamdeck)"
            },
            {
              "4K": "greater than 1920x1080 (4K)"
            }
          ],
          "preselect": "1080p"
        }
      },
      {
        "extract": {
          "dst": "$CACHE",
          "file": "game_fix"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie",
          "src": "$CACHE/$INPUT_RES"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files (x86)/Activision/Spider-Man (tm) Movie",
          "src": "game_wrapper_ctrl"
        }
      }
    ],
    "wine": {
      "overrides": {
        "d3d8": "n,b",
        "dinput": "n,b"
      }
    }
  }
}
Back to game