Installer need-for-speed-hot-pursuit-2-cd_242_no-cd_wsfix_d

files:
- patch242:
    filename: patch242.zip
    url: https://drive.google.com/uc?id=1G0A3gBnw1ksP6dTBaSyRjVoqx4VoGpvS&export=download
- nocd:
    filename: nocd.rar
    url: https://drive.google.com/uc?id=1zPuSU9Fb1arxqjE5sY74395zUM7JPdRN&export=download
- wsfix:
    filename: wsfix.zip
    url: https://github.com/xan1242/hp2wsfix/releases/download/2.5/ReleasePack.zip
- highpoly:
    filename: highpoly.zip
    url: https://drive.google.com/uc?id=1rWQc4LERH3NHYExta8W1GFyQchhvLWc_&export=download
- dinputfpsfix:
    filename: dinputfpsfix.zip
    url: https://drive.google.com/uc?id=1eBIgRfsZgeSXQVjEOVz2axMnAQIX8jz2&export=download
game:
  arch: win32
  args: -nofrustration
  exe: $GAMEDIR/drive_c/NFSHP2/nfshp2.exe
  prefix: $GAMEDIR
installer:
- insert-disc:
    requires: AutoRun.EXE
- task:
    arch: win32
    description: Creating wine prefix
    install_gecko: false
    install_mono: false
    name: create_prefix
    prefix: $GAMEDIR
- task:
    app: winxp
    arch: win32
    description: Setting wine prefix to XP
    name: winetricks
    prefix: $GAMEDIR
- task:
    arch: win32
    description: Starting game installer
    executable: $DISC/AutoRun.exe
    name: wineexec
    prefix: $GAMEDIR
- merge:
    description: Copying actors
    dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/actors
    src: $DISC/actors
- merge:
    description: Copying AI
    dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/AI
    src: $DISC/AI
- merge:
    description: Copying Audio
    dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/audio
    src: $DISC/audio
- merge:
    description: Copying Cars
    dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/Cars
    src: $DISC/Cars
- merge:
    description: Copying Movies
    dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/movies
    src: $DISC/movies
- merge:
    description: Copying Particle
    dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/Particle
    src: $DISC/Particle
- merge:
    description: Copying Tracks
    dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/tracks
    src: $DISC/tracks
- extract:
    description: Extracting patch 242
    dst: $CACHE/patch/
    file: patch242
- task:
    arch: win32
    description: Installing patch 242
    executable: $CACHE/patch/NFSHP2_Setup_242.exe
    name: wineexec
    prefix: $GAMEDIR
- extract:
    description: Applying No CD patch
    dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/
    file: nocd
- chmodx: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/nfshp2.exe
- extract:
    description: Applying Widescreen Fix
    dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/
    file: wsfix
- move:
    dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/dinput.dll
    src: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/d3d8.dll
- extract:
    description: Applying Direct Input FPS Fix
    dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/
    file: dinputfpsfix
- extract:
    description: Applying High Poly mod
    dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/FrontEnd
    file: highpoly
- execute:
    command: chmod -R ug+rw "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed
      Hot Pursuit 2/"
- write_config:
    data:
      brightness:
        blue: 150
        green: 150
        red: 150
      render:
        cubeface_dimension: 128
        enviromap_dimension: 256
    description: Applying values for improved reflections
    file: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/Cars/reflection.ini
    merge: false
- write_config:
    data:
      GlobalSets:
        Direct3D8DisableMaximizedWindowedModeShim: 1
        DisableCrashDumps: 1
        DontLoadFromDllMain: 1
        FindModule: 0
        LoadFromScriptsOnly: 1
        LoadPlugins: 1
        UseD3D8to9: 1
    file: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/global.ini
    merge: false
- move:
    dst: $GAMEDIR/drive_c/NFSHP2
    src: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2
system:
  gamemode: true
  pulse_latency: true
wine:
  Desktop: true
  arch: win32
  dxvk_nvapi: false
  overrides:
    dinput.dll: n,b
    dinput8.dll: n,b
  vkd3d: false
description: CD version on top of which we apply the 242 official patch, a No-CD patch,
  a Widescreen mod, a Direct Input fix, higher polygon models and improved reflections.
game_slug: need-for-speed-hot-pursuit-2
gogslug: ''
humblestoreid: ''
installer_slug: need-for-speed-hot-pursuit-2-cd_242_no-cd_wsfix_d
name: 'Need for Speed: Hot Pursuit 2'
notes: "If you don't have and cannot install lib32-gamemode (or your distribution's\
  \ equivalent), then toggle Feral GameMode off in the System options tab.\r\n\r\n\
  For configuring the settings of Widescreen mod, edit the global.ini and scripts/HP2WSFix.ini\
  \ found in the Game directory.\r\nSee https://github.com/xan1242/hp2wsfix for more\
  \ information and known issues.\r\nTo disable the Widescreen mod, simply rename\
  \ dinput.dll (the one without the 8) to something else. (eg: adding .bak after .dll)\r\
  \n\r\nSee https://www.pcgamingwiki.com/wiki/Need_for_Speed:_Hot_Pursuit_2 for more\
  \ information about potential fixes/improvements for the game.\r\n\r\nPatches/mods\
  \ applied:\r\n- Patch 242: https://community.pcgamingwiki.com/files/file/1068-need-for-speed-hot-pursuit-2-patch/\r\
  \n- Widescreen fix: https://github.com/xan1242/hp2wsfix\r\n- DInput fix: https://community.pcgamingwiki.com/files/file/789-directinput-fps-fix/\r\
  \n- Better reflections: https://community.pcgamingwiki.com/files/file/961-need-for-speed-hot-pursuit-2-better-car-reflections-mod/\
  \ (with lower values than the ones specified there)\r\n- High poly fix: https://www.gamepressure.com/download.asp?ID=69468"
runner: wine
script:
  files:
  - patch242:
      filename: patch242.zip
      url: https://drive.google.com/uc?id=1G0A3gBnw1ksP6dTBaSyRjVoqx4VoGpvS&export=download
  - nocd:
      filename: nocd.rar
      url: https://drive.google.com/uc?id=1zPuSU9Fb1arxqjE5sY74395zUM7JPdRN&export=download
  - wsfix:
      filename: wsfix.zip
      url: https://github.com/xan1242/hp2wsfix/releases/download/2.5/ReleasePack.zip
  - highpoly:
      filename: highpoly.zip
      url: https://drive.google.com/uc?id=1rWQc4LERH3NHYExta8W1GFyQchhvLWc_&export=download
  - dinputfpsfix:
      filename: dinputfpsfix.zip
      url: https://drive.google.com/uc?id=1eBIgRfsZgeSXQVjEOVz2axMnAQIX8jz2&export=download
  game:
    arch: win32
    args: -nofrustration
    exe: $GAMEDIR/drive_c/NFSHP2/nfshp2.exe
    prefix: $GAMEDIR
  installer:
  - insert-disc:
      requires: AutoRun.EXE
  - task:
      arch: win32
      description: Creating wine prefix
      install_gecko: false
      install_mono: false
      name: create_prefix
      prefix: $GAMEDIR
  - task:
      app: winxp
      arch: win32
      description: Setting wine prefix to XP
      name: winetricks
      prefix: $GAMEDIR
  - task:
      arch: win32
      description: Starting game installer
      executable: $DISC/AutoRun.exe
      name: wineexec
      prefix: $GAMEDIR
  - merge:
      description: Copying actors
      dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/actors
      src: $DISC/actors
  - merge:
      description: Copying AI
      dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/AI
      src: $DISC/AI
  - merge:
      description: Copying Audio
      dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/audio
      src: $DISC/audio
  - merge:
      description: Copying Cars
      dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/Cars
      src: $DISC/Cars
  - merge:
      description: Copying Movies
      dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/movies
      src: $DISC/movies
  - merge:
      description: Copying Particle
      dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/Particle
      src: $DISC/Particle
  - merge:
      description: Copying Tracks
      dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/tracks
      src: $DISC/tracks
  - extract:
      description: Extracting patch 242
      dst: $CACHE/patch/
      file: patch242
  - task:
      arch: win32
      description: Installing patch 242
      executable: $CACHE/patch/NFSHP2_Setup_242.exe
      name: wineexec
      prefix: $GAMEDIR
  - extract:
      description: Applying No CD patch
      dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/
      file: nocd
  - chmodx: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/nfshp2.exe
  - extract:
      description: Applying Widescreen Fix
      dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/
      file: wsfix
  - move:
      dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/dinput.dll
      src: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/d3d8.dll
  - extract:
      description: Applying Direct Input FPS Fix
      dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/
      file: dinputfpsfix
  - extract:
      description: Applying High Poly mod
      dst: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/FrontEnd
      file: highpoly
  - execute:
      command: chmod -R ug+rw "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed
        Hot Pursuit 2/"
  - write_config:
      data:
        brightness:
          blue: 150
          green: 150
          red: 150
        render:
          cubeface_dimension: 128
          enviromap_dimension: 256
      description: Applying values for improved reflections
      file: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/Cars/reflection.ini
      merge: false
  - write_config:
      data:
        GlobalSets:
          Direct3D8DisableMaximizedWindowedModeShim: 1
          DisableCrashDumps: 1
          DontLoadFromDllMain: 1
          FindModule: 0
          LoadFromScriptsOnly: 1
          LoadPlugins: 1
          UseD3D8to9: 1
      file: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/global.ini
      merge: false
  - move:
      dst: $GAMEDIR/drive_c/NFSHP2
      src: $GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2
  system:
    gamemode: true
    pulse_latency: true
  wine:
    Desktop: true
    arch: win32
    dxvk_nvapi: false
    overrides:
      dinput.dll: n,b
      dinput8.dll: n,b
    vkd3d: false
slug: need-for-speed-hot-pursuit-2-cd_242_no-cd_wsfix_d
steamid: null
version: CD_242_No-CD_WSFix_DInputFix
year: 2002
{
  "game_slug": "need-for-speed-hot-pursuit-2",
  "version": "CD_242_No-CD_WSFix_DInputFix",
  "description": "CD version on top of which we apply the 242 official patch, a No-CD patch, a Widescreen mod, a Direct Input fix, higher polygon models and improved reflections.",
  "notes": "If you don't have and cannot install lib32-gamemode (or your distribution's equivalent), then toggle Feral GameMode off in the System options tab.\r\n\r\nFor configuring the settings of Widescreen mod, edit the global.ini and scripts/HP2WSFix.ini found in the Game directory.\r\nSee https://github.com/xan1242/hp2wsfix for more information and known issues.\r\nTo disable the Widescreen mod, simply rename dinput.dll (the one without the 8) to something else. (eg: adding .bak after .dll)\r\n\r\nSee https://www.pcgamingwiki.com/wiki/Need_for_Speed:_Hot_Pursuit_2 for more information about potential fixes/improvements for the game.\r\n\r\nPatches/mods applied:\r\n- Patch 242: https://community.pcgamingwiki.com/files/file/1068-need-for-speed-hot-pursuit-2-patch/\r\n- Widescreen fix: https://github.com/xan1242/hp2wsfix\r\n- DInput fix: https://community.pcgamingwiki.com/files/file/789-directinput-fps-fix/\r\n- Better reflections: https://community.pcgamingwiki.com/files/file/961-need-for-speed-hot-pursuit-2-better-car-reflections-mod/ (with lower values than the ones specified there)\r\n- High poly fix: https://www.gamepressure.com/download.asp?ID=69468",
  "name": "Need for Speed: Hot Pursuit 2",
  "year": 2002,
  "steamid": null,
  "gogslug": "",
  "humblestoreid": "",
  "runner": "wine",
  "slug": "need-for-speed-hot-pursuit-2-cd_242_no-cd_wsfix_d",
  "installer_slug": "need-for-speed-hot-pursuit-2-cd_242_no-cd_wsfix_d",
  "script": {
    "files": [
      {
        "patch242": {
          "filename": "patch242.zip",
          "url": "https://drive.google.com/uc?id=1G0A3gBnw1ksP6dTBaSyRjVoqx4VoGpvS&export=download"
        }
      },
      {
        "nocd": {
          "filename": "nocd.rar",
          "url": "https://drive.google.com/uc?id=1zPuSU9Fb1arxqjE5sY74395zUM7JPdRN&export=download"
        }
      },
      {
        "wsfix": {
          "filename": "wsfix.zip",
          "url": "https://github.com/xan1242/hp2wsfix/releases/download/2.5/ReleasePack.zip"
        }
      },
      {
        "highpoly": {
          "filename": "highpoly.zip",
          "url": "https://drive.google.com/uc?id=1rWQc4LERH3NHYExta8W1GFyQchhvLWc_&export=download"
        }
      },
      {
        "dinputfpsfix": {
          "filename": "dinputfpsfix.zip",
          "url": "https://drive.google.com/uc?id=1eBIgRfsZgeSXQVjEOVz2axMnAQIX8jz2&export=download"
        }
      }
    ],
    "game": {
      "arch": "win32",
      "args": "-nofrustration",
      "exe": "$GAMEDIR/drive_c/NFSHP2/nfshp2.exe",
      "prefix": "$GAMEDIR"
    },
    "installer": [
      {
        "insert-disc": {
          "requires": "AutoRun.EXE"
        }
      },
      {
        "task": {
          "arch": "win32",
          "description": "Creating wine prefix",
          "install_gecko": false,
          "install_mono": false,
          "name": "create_prefix",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "app": "winxp",
          "arch": "win32",
          "description": "Setting wine prefix to XP",
          "name": "winetricks",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "task": {
          "arch": "win32",
          "description": "Starting game installer",
          "executable": "$DISC/AutoRun.exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "merge": {
          "description": "Copying actors",
          "dst": "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/actors",
          "src": "$DISC/actors"
        }
      },
      {
        "merge": {
          "description": "Copying AI",
          "dst": "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/AI",
          "src": "$DISC/AI"
        }
      },
      {
        "merge": {
          "description": "Copying Audio",
          "dst": "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/audio",
          "src": "$DISC/audio"
        }
      },
      {
        "merge": {
          "description": "Copying Cars",
          "dst": "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/Cars",
          "src": "$DISC/Cars"
        }
      },
      {
        "merge": {
          "description": "Copying Movies",
          "dst": "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/movies",
          "src": "$DISC/movies"
        }
      },
      {
        "merge": {
          "description": "Copying Particle",
          "dst": "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/Particle",
          "src": "$DISC/Particle"
        }
      },
      {
        "merge": {
          "description": "Copying Tracks",
          "dst": "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/tracks",
          "src": "$DISC/tracks"
        }
      },
      {
        "extract": {
          "description": "Extracting patch 242",
          "dst": "$CACHE/patch/",
          "file": "patch242"
        }
      },
      {
        "task": {
          "arch": "win32",
          "description": "Installing patch 242",
          "executable": "$CACHE/patch/NFSHP2_Setup_242.exe",
          "name": "wineexec",
          "prefix": "$GAMEDIR"
        }
      },
      {
        "extract": {
          "description": "Applying No CD patch",
          "dst": "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/",
          "file": "nocd"
        }
      },
      {
        "chmodx": "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/nfshp2.exe"
      },
      {
        "extract": {
          "description": "Applying Widescreen Fix",
          "dst": "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/",
          "file": "wsfix"
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/dinput.dll",
          "src": "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/d3d8.dll"
        }
      },
      {
        "extract": {
          "description": "Applying Direct Input FPS Fix",
          "dst": "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/",
          "file": "dinputfpsfix"
        }
      },
      {
        "extract": {
          "description": "Applying High Poly mod",
          "dst": "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/FrontEnd",
          "file": "highpoly"
        }
      },
      {
        "execute": {
          "command": "chmod -R ug+rw \"$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/\""
        }
      },
      {
        "write_config": {
          "data": {
            "brightness": {
              "blue": 150,
              "green": 150,
              "red": 150
            },
            "render": {
              "cubeface_dimension": 128,
              "enviromap_dimension": 256
            }
          },
          "description": "Applying values for improved reflections",
          "file": "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/Cars/reflection.ini",
          "merge": false
        }
      },
      {
        "write_config": {
          "data": {
            "GlobalSets": {
              "Direct3D8DisableMaximizedWindowedModeShim": 1,
              "DisableCrashDumps": 1,
              "DontLoadFromDllMain": 1,
              "FindModule": 0,
              "LoadFromScriptsOnly": 1,
              "LoadPlugins": 1,
              "UseD3D8to9": 1
            }
          },
          "file": "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2/global.ini",
          "merge": false
        }
      },
      {
        "move": {
          "dst": "$GAMEDIR/drive_c/NFSHP2",
          "src": "$GAMEDIR/drive_c/Program Files/EA Games/Need For Speed Hot Pursuit 2"
        }
      }
    ],
    "system": {
      "gamemode": true,
      "pulse_latency": true
    },
    "wine": {
      "Desktop": true,
      "arch": "win32",
      "dxvk_nvapi": false,
      "overrides": {
        "dinput.dll": "n,b",
        "dinput8.dll": "n,b"
      },
      "vkd3d": false
    }
  }
}
Back to game