2.2.1 • Published 2 years ago

p-np-patcher v2.2.1

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
2 years ago

P-NP Patcher

P-NP modifies and serves Prodigy's game files.


Quickstart

Windows Quickstart

  1. Install Node.js with npm if you don't have it already.
  2. Install git if you don't have it already.
  3. Open Windows PowerShell.
  4. Copy and paste the code snippet below to automatically run P-NP.
git clone https://github.com/ProdigyPNP/P-NP.git
cd P-NP
npm install
npm start

MacOS Quickstart

  1. Install Node.js with npm if you don't have it already.
  2. Install git if you don't have it already.
  3. Open iTerm.
  4. Copy and paste the code snippet below to automatically run P-NP.
git clone https://github.com/ProdigyPNP/P-NP.git
cd P-NP
npm install
npm start

Linux Quickstart

  1. Install Node.js with npm if you don't have it already.
  2. Install git if you don't have it already.
  3. Open Terminal.
  4. Copy and paste the code snippet below to automatically run P-NP.
git clone https://github.com/ProdigyPNP/P-NP
cd P-NP
npm install
node dist

Build Binaries

Build Binaries on Windows

  1. Install Node.js with npm if you don't have it already.
  2. Install git if you don't have it already.
  3. Open Windows PowerShell.
  4. Copy and paste the code snippet below to automatically build P-NP's binaries.
git clone https://github.com/ProdigyPNP/P-NP.git
cd P-NP
npm install
# npm run build
# We'll return build soon, it's a bit of a mess right now as we only have the dist.
npm run create-exes

Build Binaries on MacOS

  1. Install Node.js with npm if you don't have it already.
  2. Install git if you don't have it already.
  3. Open iTerm.
  4. Copy and paste the code snippet below to automatically build P-NP's binaries.
git clone https://github.com/ProdigyPNP/P-NP.git
cd P-NP
npm install
# npm run build
# We'll return build soon, it's a bit of a mess right now as we only have the dist.
npm run create-exes

Build Binaries on Linux

  1. Install Node.js with npm if you don't have it already.
  2. Install git if you don't have it already.
  3. Open Terminal.
  4. Copy and paste the code snippet below to automatically build P-NP's binaries.
git clone https://github.com/ProdigyPNP/P-NP
cd P-NP
npm install
# npm run build
# We'll return build soon, it's a bit of a mess right now as we only have the dist.
npm run create-exes

Repl

Running P-NP on Repl.it

Repl is a bit wacky, since it uses a very old version of Node.js. This makes P-NP throw an error, but there is a fix.

  1. Make a new Repl.
  2. Click Import from GitHub.
  3. Paste this in GitHub URL: https://github.com/ProdigyPNP/P-NP.git.
  4. Click + Import from GitHub.
  5. If you get a popup from Repl saying "configure the start button", click OK.
  6. On the right half of the screen, there should be a tab that says Shell. Click it.
  7. Paste the code snippet below into the shell. Once it's finished, click the Start button.
node -v
npm init -y && npm i --save-dev node@16 && npm config set prefix=$(pwd)/node_modules/node && export PATH=$(pwd)/node_modules/node/bin:$PATH
node -v
npm install

npm package

P-NP is available on npmjs at https://npmjs.com/package/p-np-patcher.

Installing P-NP

Shell

npm install p-np-patcher
npm install
npm update

Uninstalling P-NP

Shell

npm uninstall p-np-patcher
npm install
npm update

Import in TypeScript

TypeScript

import PNP from "p-np-patcher";

Import in JavaScript

JavaScript

const PNP = require("p-np-patcher");