A JavaScript library using memory for packing and unpacking Arma's .pbo files.
- Pack & Unpack a .pbo file
- For a Node.JS project
- Node.JS
- NPM - Installed by default with Node.js
- For most other projects
- None!
- NOTE: NPM support not implemented yet.
- With NPM
- Run command
npm i --save pbo.js
- Done!
- Run command
- Without NPM
- Download the github source
- Unzip master.zip to your desired location
- Done!
This is to include the files into your project for use.
- If you're using this with a Node.JS project add this code to the top of your file
const pbojs = require("pbo.js")
- If you're using this within html add this to
<head>
with the src location changed<script src="/js/pbo.min.js"></script>
The first and only parameter is the buffer of the pbo to be used.
- NOTE: Node.JS support not tested yet.
let handler = new pbojs.pbo(buffer)
let handler = new pbo(buffer)
This function returns information about the pbo.
This function returns all the files inside the pbo.
This function returns a javascript object with the contents of the pbo.
This function will create a new pbo with the supplied parameter.
- "example.html" contains a basic example with commented documentation of each function for unpacking.
- "arma.zone" the folder contains a copy of the html source for https://arma.zone/ Which is used as a source for PBO unpacking. FYI the code is not the prettiest.