A forked repository of the official Mod Tool from The Wand Company to house all the great apps and games made by fellow vault-dwellers for the Pip-Boy 3000 Mk V device. Apps are hosted on pip-boy.com and are open-source for all to enjoy.
Pip-Boy.com | Discord Community
If you put a JS file in the USER folder, Pip-Boy will show it in a list of
apps in the INV screen.
-
gis a graphics instance that writes direct to the screen. -
bCis a graphics instance that writes to a 2 bit offscreen buffer, and callingbC.flip()will flip that buffer to the screen with a scanline effect.
More details here: API.md
-
Clone the repository and its submodules:
git clone https://github.com/CodyTolene/pip-boy-apps.git git submodule update --init --recursive
-
Install Docker:
-
Build the docker image:
docker build -t pip-boy-mod-tool . -
Run the Docker container:
# Unix/Linux/macOS docker run -dit --name pip-boy-mod-tool -p 8080:80 -v "$PWD":/usr/local/apache2/htdocs/ httpd:2.4 # Windows Powershell docker run -dit --name pip-boy-mod-tool -p 8080:80 -v ${PWD}:/usr/local/apache2/htdocs/ httpd:2.4 # Windows CMD docker run -dit --name pip-boy-mod-tool -p 8080:80 -v %cd%:/usr/local/apache2/htdocs/ httpd:2.4
Once you run the application, it will be available at http://localhost:8080.
-
Stop the server any time with:
docker stop pip-boy-mod-tool
-
Clean up:
docker rm pip-boy-mod-tool docker rmi pip-boy-mod-tool docker image prune -a docker volume prune
-
With Node.js installed, open a new terminal at the root of this repo. Install the required Node.js packages:
npm install
-
Run the app generation script:
npm run build
This will generate a file called
apps.local.jsonin the root of the repository.You can also use jekyll to generate the
apps.local.jsonfile by runningjekyll build.Do not commit this file to the repository, it is generated automatically and should not be tracked by Git.
Sometimes the built in minification and tokenization doesn't work as expected, in this case you can run the Espruino minification manually using the following steps:
-
With Node.js installed, open a new terminal at the root of this repo. Install the required Node.js packages:
npm install
-
Run the minification script:
npm run min
OR for live updates:
npm run min:watch
-
Make sure to run the following commands before committing any changes:
npm run prettier
This will format all files in the repository according to the Prettier configuration.
-
Add and commit your changes:
git add . git commit -m "Your commit message"
-
Push your changes and create a pull request.
-
Further details on contributing can be found in the CONTRIBUTING.md file.