Installer need-for-speed-underground-2-cddvd

files:
- wspatch: https://github.com/ThirteenAG/WidescreenFixesPack/releases/download/nfsu2/NFSUnderground2.WidescreenFix.zip
game:
  arch: win32
  exe: drive_c/Program Files/EA GAMES/Need for Speed Underground 2/SPEED2.EXE
  prefix: $GAMEDIR
installer:
- task:
    arch: win32
    description: Creating Wine Bottle, please stand by...
    install_mono: false
    name: create_prefix
    prefix: $GAMEDIR
- task:
    app: d3dx9 dinput8
    description: Installing Direct3D 9 and dinput8 for widescreen patch, please stand
      by...
    name: winetricks
    prefix: $GAMEDIR
- insert-disc:
    description: Insert DVD
    requires: data2.cab
- task:
    executable: $DISC/Setup.exe
    name: wineexec
    prefix: $GAMEDIR
- extract:
    dst: $CACHE/wspatch
    file: wspatch
- merge:
    dst: $GAMEDIR/drive_c/Program Files/EA GAMES/Need for Speed Underground 2/
    src: $CACHE/wspatch
- input_menu:
    description: Please choose your main desktop width for the widescreen patch
    id: RESX
    options:
    - '256': '256'
    - '426': '426'
    - '640': '640'
    - '768': '768'
    - '800': '800'
    - '848': '848'
    - '854': '854'
    - '960': '960'
    - '1024': '1024'
    - '1280': '1280'
    - '1366': '1366'
    - '1600': '1600'
    - '1920': '1920'
    - '2048': '2048'
    - '2560': '2560'
    - '2880': '2880'
    - '3200': '3200'
    - '3840': '3840'
    - '4096': '4096'
    - '5120': '5120'
    - '7680': '7680'
    - '15360': '15360'
    preselect: '1920'
- input_menu:
    description: Please choose your main desktop height for the widescreen patch
    id: RESY
    options:
    - '144': '144'
    - '240': '240'
    - '360': '360'
    - '432': '432'
    - '450': '450'
    - '480': '480'
    - '540': '540'
    - '576': '576'
    - '720': '720'
    - '768': '768'
    - '900': '900'
    - '1080': '1080'
    - '1152': '1152'
    - '1440': '1440'
    - '1620': '1620'
    - '1800': '1800'
    - '2160': '2160'
    - '2304': '2304'
    - '2880': '2880'
    - '4320': '4320'
    - '8640': '8640'
    preselect: '1080'
- write_config:
    data:
      MAIN:
        ResX: $INPUT_RESX
        ResY: $INPUT_RESY
    file: $GAMEDIR/drive_c/Program Files/EA GAMES/Need for Speed Underground 2/scripts/NFSUnderground2.WidescreenFix.ini
system:
  prefix_command: taskset --cpu-list 0-3
wine:
  Desktop: true
description: ''
game_slug: need-for-speed-underground-2
gogslug: ''
humblestoreid: ''
installer_slug: need-for-speed-underground-2-cddvd
name: 'Need for Speed: Underground 2'
notes: ''
runner: wine
script:
  files:
  - wspatch: https://github.com/ThirteenAG/WidescreenFixesPack/releases/download/nfsu2/NFSUnderground2.WidescreenFix.zip
  game:
    arch: win32
    exe: drive_c/Program Files/EA GAMES/Need for Speed Underground 2/SPEED2.EXE
    prefix: $GAMEDIR
  installer:
  - task:
      arch: win32
      description: Creating Wine Bottle, please stand by...
      install_mono: false
      name: create_prefix
      prefix: $GAMEDIR
  - task:
      app: d3dx9 dinput8
      description: Installing Direct3D 9 and dinput8 for widescreen patch, please
        stand by...
      name: winetricks
      prefix: $GAMEDIR
  - insert-disc:
      description: Insert DVD
      requires: data2.cab
  - task:
      executable: $DISC/Setup.exe
      name: wineexec
      prefix: $GAMEDIR
  - extract:
      dst: $CACHE/wspatch
      file: wspatch
  - merge:
      dst: $GAMEDIR/drive_c/Program Files/EA GAMES/Need for Speed Underground 2/
      src: $CACHE/wspatch
  - input_menu:
      description: Please choose your main desktop width for the widescreen patch
      id: RESX
      options:
      - '256': '256'
      - '426': '426'
      - '640': '640'
      - '768': '768'
      - '800': '800'
      - '848': '848'
      - '854': '854'
      - '960': '960'
      - '1024': '1024'
      - '1280': '1280'
      - '1366': '1366'
      - '1600': '1600'
      - '1920': '1920'
      - '2048': '2048'
      - '2560': '2560'
      - '2880': '2880'
      - '3200': '3200'
      - '3840': '3840'
      - '4096': '4096'
      - '5120': '5120'
      - '7680': '7680'
      - '15360': '15360'
      preselect: '1920'
  - input_menu:
      description: Please choose your main desktop height for the widescreen patch
      id: RESY
      options:
      - '144': '144'
      - '240': '240'
      - '360': '360'
      - '432': '432'
      - '450': '450'
      - '480': '480'
      - '540': '540'
      - '576': '576'
      - '720': '720'
      - '768': '768'
      - '900': '900'
      - '1080': '1080'
      - '1152': '1152'
      - '1440': '1440'
      - '1620': '1620'
      - '1800': '1800'
      - '2160': '2160'
      - '2304': '2304'
      - '2880': '2880'
      - '4320': '4320'
      - '8640': '8640'
      preselect: '1080'
  - write_config:
      data:
        MAIN:
          ResX: $INPUT_RESX
          ResY: $INPUT_RESY
      file: $GAMEDIR/drive_c/Program Files/EA GAMES/Need for Speed Underground 2/scripts/NFSUnderground2.WidescreenFix.ini
  system:
    prefix_command: taskset --cpu-list 0-3
  wine:
    Desktop: true
slug: need-for-speed-underground-2-cddvd
steamid: null
version: CD/DVD
year: 2004
{
  "game_slug": "need-for-speed-underground-2",
  "version": "CD/DVD",
  "description": "",
  "notes": "",
  "name": "Need for Speed: Underground 2",
  "year": 2004,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "need-for-speed-underground-2-cddvd",
  "installer_slug": "need-for-speed-underground-2-cddvd",
  "script": {
    "files": [
      {
        "wspatch": "https://github.com/ThirteenAG/WidescreenFixesPack/releases/download/nfsu2/NFSUnderground2.WidescreenFix.zip"
      }
    ],
    "game": {
      "arch": "win32",
      "exe": "drive_c/Program Files/EA GAMES/Need for Speed Underground 2/SPEED2.EXE",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "task": {
          "arch": "win32",
          "description": "Creating Wine Bottle, please stand by...",
          "install_mono": false,
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "app": "d3dx9 dinput8",
          "description": "Installing Direct3D 9 and dinput8 for widescreen patch, please stand by...",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "insert-disc": {
          "description": "Insert DVD",
          "requires": "data2.cab"
        }
      },
      {
        "task": {
          "executable": "$DISC/Setup.exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "dst": "$CACHE/wspatch",
          "file": "wspatch"
        }
      },
      {
        "merge": {
          "dst": "$GAMEDIR/drive_c/Program Files/EA GAMES/Need for Speed Underground 2/",
          "src": "$CACHE/wspatch"
        }
      },
      {
        "input_menu": {
          "description": "Please choose your main desktop width for the widescreen patch",
          "id": "RESX",
          "options": [
            {
              "256": "256"
            },
            {
              "426": "426"
            },
            {
              "640": "640"
            },
            {
              "768": "768"
            },
            {
              "800": "800"
            },
            {
              "848": "848"
            },
            {
              "854": "854"
            },
            {
              "960": "960"
            },
            {
              "1024": "1024"
            },
            {
              "1280": "1280"
            },
            {
              "1366": "1366"
            },
            {
              "1600": "1600"
            },
            {
              "1920": "1920"
            },
            {
              "2048": "2048"
            },
            {
              "2560": "2560"
            },
            {
              "2880": "2880"
            },
            {
              "3200": "3200"
            },
            {
              "3840": "3840"
            },
            {
              "4096": "4096"
            },
            {
              "5120": "5120"
            },
            {
              "7680": "7680"
            },
            {
              "15360": "15360"
            }
          ],
          "preselect": "1920"
        }
      },
      {
        "input_menu": {
          "description": "Please choose your main desktop height for the widescreen patch",
          "id": "RESY",
          "options": [
            {
              "144": "144"
            },
            {
              "240": "240"
            },
            {
              "360": "360"
            },
            {
              "432": "432"
            },
            {
              "450": "450"
            },
            {
              "480": "480"
            },
            {
              "540": "540"
            },
            {
              "576": "576"
            },
            {
              "720": "720"
            },
            {
              "768": "768"
            },
            {
              "900": "900"
            },
            {
              "1080": "1080"
            },
            {
              "1152": "1152"
            },
            {
              "1440": "1440"
            },
            {
              "1620": "1620"
            },
            {
              "1800": "1800"
            },
            {
              "2160": "2160"
            },
            {
              "2304": "2304"
            },
            {
              "2880": "2880"
            },
            {
              "4320": "4320"
            },
            {
              "8640": "8640"
            }
          ],
          "preselect": "1080"
        }
      },
      {
        "write_config": {
          "data": {
            "MAIN": {
              "ResX": "$INPUT_RESX",
              "ResY": "$INPUT_RESY"
            }
          },
          "file": "$GAMEDIR/drive_c/Program Files/EA GAMES/Need for Speed Underground 2/scripts/NFSUnderground2.WidescreenFix.ini"
        }
      }
    ],
    "system": {
      "prefix_command": "taskset --cpu-list 0-3"
    },
    "wine": {
      "Desktop": true
    }
  }
}
Back to game