Installer need-for-speed-underground-cd-us

files:
- game_cd1: https://archive.org/download/20250130_20250130_0633/Need%20for%20Speed%20-%20Underground%20%28USA%29%20%28Disc%201%29.zip
- game_cd2: https://archive.org/download/20250130_20250130_0633/Need%20for%20Speed%20-%20Underground%20%28USA%29%20%28Disc%202%29.zip
- tools: https://github.com/legluondunet/mlls-tools/raw/refs/heads/master/cdrtools/bchunk.7z
- game_reg: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Need%20for%20Speed%20-%20Underground/nfsu.reg
- game_update: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Need%20for%20Speed%20-%20Underground/nfsu_update_1.40us.zip
- game_patch: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Need%20for%20Speed%20-%20Underground/nfsu_patch_140.zip
- game_mod: https://github.com/ThirteenAG/WidescreenFixesPack/releases/download/nfsu/NFSUnderground.WidescreenFix.zip
- game_mod_cfg: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Need%20for%20Speed%20-%20Underground/NFSUnderground.WidescreenFix.ini
- game_mod2: https://github.com/CookiePLMonster/SilentPatchNFSUG/releases/download/BUILD-1/SilentPatchNFSUG.zip
game:
  exe: drive_c/nfsu/Speed.exe
  prefix: $GAMEDIR
installer:
- task:
    name: create_prefix
    prefix: $GAMEDIR
- extract:
    description: extract "Need for Speed - Underground" CDs
    dst: $CACHE
    file: game_cd1
- extract:
    description: extract "Need for Speed - Underground" CDs
    dst: $CACHE
    file: game_cd2
- extract:
    dst: $CACHE
    file: tools
    format: 7z
- execute:
    command: cd "$CACHE" ; ./bchunk  "Need for Speed - Underground (USA) (Disc 1).bin"
      "Need for Speed - Underground (USA) (Disc 1).cue" "Need for Speed - Underground
      (USA) (Disc 1)"; ./bchunk  "Need for Speed - Underground (USA) (Disc 2).bin"
      "Need for Speed - Underground (USA) (Disc 2).cue" "Need for Speed - Underground
      (USA) (Disc 2)"
- extract:
    description: extract "Need for Speed - Underground" CD1 data
    dst: $GAMEDIR/drive_c/nfsu
    file: $CACHE/Need for Speed - Underground (USA) (Disc 1)01.iso
    format: iso
- extract:
    description: extract "Need for Speed - Underground" CD2 data
    dst: $GAMEDIR/drive_c/nfsu
    file: $CACHE/Need for Speed - Underground (USA) (Disc 2)01.iso
    format: iso
- task:
    filename: game_reg
    name: set_regedit_file
- extract:
    dst: $CACHE
    src: game_update
- task:
    executable: $CACHE/nfsu_us_patch_4.exe
    name: wineexec
    prefix: $GAMEDIR
- merge:
    dst: $GAMEDIR/drive_c/nfsu/backup
    src: $GAMEDIR/drive_c/nfsu/Speed.exe
- extract:
    dst: $GAMEDIR/drive_c/nfsu
    src: game_patch
- extract:
    dst: $GAMEDIR/drive_c/nfsu
    src: game_mod
- merge:
    dst: $GAMEDIR/drive_c/nfsu/scripts
    src: game_mod_cfg
- move:
    dst: $GAMEDIR/drive_c/nfsu/winmm.dll
    src: $GAMEDIR/drive_c/nfsu/dinput8.dll
- extract:
    dst: $GAMEDIR/drive_c/nfsu
    src: game_mod2
wine:
  overrides:
    dinput8: n,b
    winmm: n,b
description: Play "Need for Speed - Underground" CD US edition on Linux!
game_slug: need-for-speed-underground
gogslug: ''
humblestoreid: ''
installer_slug: need-for-speed-underground-cd-us
name: 'Need for Speed: Underground'
notes: "- 1.4 patch update included\r\n- Using Need For Speed Underground ThirteenAG\
  \ Widescreen Fix and Silent patch"
runner: wine
script:
  files:
  - game_cd1: https://archive.org/download/20250130_20250130_0633/Need%20for%20Speed%20-%20Underground%20%28USA%29%20%28Disc%201%29.zip
  - game_cd2: https://archive.org/download/20250130_20250130_0633/Need%20for%20Speed%20-%20Underground%20%28USA%29%20%28Disc%202%29.zip
  - tools: https://github.com/legluondunet/mlls-tools/raw/refs/heads/master/cdrtools/bchunk.7z
  - game_reg: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Need%20for%20Speed%20-%20Underground/nfsu.reg
  - game_update: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Need%20for%20Speed%20-%20Underground/nfsu_update_1.40us.zip
  - game_patch: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Need%20for%20Speed%20-%20Underground/nfsu_patch_140.zip
  - game_mod: https://github.com/ThirteenAG/WidescreenFixesPack/releases/download/nfsu/NFSUnderground.WidescreenFix.zip
  - game_mod_cfg: https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Need%20for%20Speed%20-%20Underground/NFSUnderground.WidescreenFix.ini
  - game_mod2: https://github.com/CookiePLMonster/SilentPatchNFSUG/releases/download/BUILD-1/SilentPatchNFSUG.zip
  game:
    exe: drive_c/nfsu/Speed.exe
    prefix: $GAMEDIR
  installer:
  - task:
      name: create_prefix
      prefix: $GAMEDIR
  - extract:
      description: extract "Need for Speed - Underground" CDs
      dst: $CACHE
      file: game_cd1
  - extract:
      description: extract "Need for Speed - Underground" CDs
      dst: $CACHE
      file: game_cd2
  - extract:
      dst: $CACHE
      file: tools
      format: 7z
  - execute:
      command: cd "$CACHE" ; ./bchunk  "Need for Speed - Underground (USA) (Disc 1).bin"
        "Need for Speed - Underground (USA) (Disc 1).cue" "Need for Speed - Underground
        (USA) (Disc 1)"; ./bchunk  "Need for Speed - Underground (USA) (Disc 2).bin"
        "Need for Speed - Underground (USA) (Disc 2).cue" "Need for Speed - Underground
        (USA) (Disc 2)"
  - extract:
      description: extract "Need for Speed - Underground" CD1 data
      dst: $GAMEDIR/drive_c/nfsu
      file: $CACHE/Need for Speed - Underground (USA) (Disc 1)01.iso
      format: iso
  - extract:
      description: extract "Need for Speed - Underground" CD2 data
      dst: $GAMEDIR/drive_c/nfsu
      file: $CACHE/Need for Speed - Underground (USA) (Disc 2)01.iso
      format: iso
  - task:
      filename: game_reg
      name: set_regedit_file
  - extract:
      dst: $CACHE
      src: game_update
  - task:
      executable: $CACHE/nfsu_us_patch_4.exe
      name: wineexec
      prefix: $GAMEDIR
  - merge:
      dst: $GAMEDIR/drive_c/nfsu/backup
      src: $GAMEDIR/drive_c/nfsu/Speed.exe
  - extract:
      dst: $GAMEDIR/drive_c/nfsu
      src: game_patch
  - extract:
      dst: $GAMEDIR/drive_c/nfsu
      src: game_mod
  - merge:
      dst: $GAMEDIR/drive_c/nfsu/scripts
      src: game_mod_cfg
  - move:
      dst: $GAMEDIR/drive_c/nfsu/winmm.dll
      src: $GAMEDIR/drive_c/nfsu/dinput8.dll
  - extract:
      dst: $GAMEDIR/drive_c/nfsu
      src: game_mod2
  wine:
    overrides:
      dinput8: n,b
      winmm: n,b
slug: need-for-speed-underground-cd-us
steamid: null
version: CD US
year: 2003
{
  "game_slug": "need-for-speed-underground",
  "version": "CD US",
  "description": "Play \"Need for Speed - Underground\" CD US edition on Linux!",
  "notes": "- 1.4 patch update included\r\n- Using Need For Speed Underground ThirteenAG Widescreen Fix and Silent patch",
  "name": "Need for Speed: Underground",
  "year": 2003,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "need-for-speed-underground-cd-us",
  "installer_slug": "need-for-speed-underground-cd-us",
  "script": {
    "files": [
      {
        "game_cd1": "https://archive.org/download/20250130_20250130_0633/Need%20for%20Speed%20-%20Underground%20%28USA%29%20%28Disc%201%29.zip"
      },
      {
        "game_cd2": "https://archive.org/download/20250130_20250130_0633/Need%20for%20Speed%20-%20Underground%20%28USA%29%20%28Disc%202%29.zip"
      },
      {
        "tools": "https://github.com/legluondunet/mlls-tools/raw/refs/heads/master/cdrtools/bchunk.7z"
      },
      {
        "game_reg": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Need%20for%20Speed%20-%20Underground/nfsu.reg"
      },
      {
        "game_update": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Need%20for%20Speed%20-%20Underground/nfsu_update_1.40us.zip"
      },
      {
        "game_patch": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Need%20for%20Speed%20-%20Underground/nfsu_patch_140.zip"
      },
      {
        "game_mod": "https://github.com/ThirteenAG/WidescreenFixesPack/releases/download/nfsu/NFSUnderground.WidescreenFix.zip"
      },
      {
        "game_mod_cfg": "https://github.com/legluondunet/MyLittleLutrisScripts/raw/refs/heads/master/Need%20for%20Speed%20-%20Underground/NFSUnderground.WidescreenFix.ini"
      },
      {
        "game_mod2": "https://github.com/CookiePLMonster/SilentPatchNFSUG/releases/download/BUILD-1/SilentPatchNFSUG.zip"
      }
    ],
    "game": {
      "exe": "drive_c/nfsu/Speed.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "description": "extract \"Need for Speed - Underground\" CDs",
          "dst": "$CACHE",
          "file": "game_cd1"
        }
      },
      {
        "extract": {
          "description": "extract \"Need for Speed - Underground\" CDs",
          "dst": "$CACHE",
          "file": "game_cd2"
        }
      },
      {
        "extract": {
          "dst": "$CACHE",
          "file": "tools",
          "format": "7z"
        }
      },
      {
        "execute": {
          "command": "cd \"$CACHE\" ; ./bchunk  \"Need for Speed - Underground (USA) (Disc 1).bin\" \"Need for Speed - Underground (USA) (Disc 1).cue\" \"Need for Speed - Underground (USA) (Disc 1)\"; ./bchunk  \"Need for Speed - Underground (USA) (Disc 2).bin\" \"Need for Speed - Underground (USA) (Disc 2).cue\" \"Need for Speed - Underground (USA) (Disc 2)\""
        }
      },
      {
        "extract": {
          "description": "extract \"Need for Speed - Underground\" CD1 data",
          "dst": "$GAMEDIR/drive_c/nfsu",
          "file": "$CACHE/Need for Speed - Underground (USA) (Disc 1)01.iso",
          "format": "iso"
        }
      },
      {
        "extract": {
          "description": "extract \"Need for Speed - Underground\" CD2 data",
          "dst": "$GAMEDIR/drive_c/nfsu",
          "file": "$CACHE/Need for Speed - Underground (USA) (Disc 2)01.iso",
          "format": "iso"
        }
      },
      {
        "task": {
          "filename": "game_reg",
          "name": "set_regedit_file"
        }
      },
      {
        "extract": {
          "dst": "$CACHE",
          "src": "game_update"
        }
      },
      {
        "task": {
          "executable": "$CACHE/nfsu_us_patch_4.exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/nfsu/backup",
          "src": "$GAMEDIR/drive_c/nfsu/Speed.exe"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/nfsu",
          "src": "game_patch"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/nfsu",
          "src": "game_mod"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/nfsu/scripts",
          "src": "game_mod_cfg"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/nfsu/winmm.dll",
          "src": "$GAMEDIR/drive_c/nfsu/dinput8.dll"
        }
      },
      {
        "extract": {
          "dst": "$GAMEDIR/drive_c/nfsu",
          "src": "game_mod2"
        }
      }
    ],
    "wine": {
      "overrides": {
        "dinput8": "n,b",
        "winmm": "n,b"
      }
    }
  }
}
Back to game