An easier way to use the popularly known nodejs package called node-wick made by SirWaddles.
Please the information at node-wick as it is important due to the only way this library will work.
Examples of how to use this library.
A function that uses benbot's mappings files and endpoint and creates a mappings folder that has 2 folders classes, and enums and the mapping file called mappings.usmap.
import { Mappings } from 'wickend';
Mappings();
Easier way to use node-wick.
const { Mappings, Wick } = require('../index.js');
const fetch = require('node-fetch');
Mappings();
(async () => {
const chain = await (await fetch('https://benbotfn.tk/api/v1/aes')).json();
const wick = new Wick({
extract: false,
chain,
path: '' // path to pak files,
log: console.log
});
await wick.extractAll();
})();
Exports the file's object, by using the wick.extraction
object full of paths.
- {String} file The path.
wick.exportObject('path');
Exports the file's texture, by using the wick.extraction
object full of paths.
- {String} file The path.
fs.writeFileSync("asset.png", wick.exportTexture('path'));
Returns data about a Tandem.
- {String} id Name of a Tandem.
- {Boolean} beautified If the returned data is beautified or not.
wick.getTandem();
Returns data about a Emote.
- {String} EID ID of a emote.
- {Boolean} beautified If the returned data is beautified or not.
wick.getEmote();
Get Contrail by ID.
- {String} TID The ID of a Contrail.
- {Boolean} beautified If the returned data is beautified or not.
wick.getContrail();
Get Loading Screen by ID.
- {String} LSID The ID of a Loading Scren.
- {Boolean} beautified If the returned data is beautified or not.
wick.getLoadingScreen();
Get Spray by ID.
- {String} SPID The ID of a Spray.
- {Boolean} beautified If the returned data is beautified or not.
wick.getSpray();
Get a Weapon.
- {String} id The ID of a Weapon.
- {Boolean} beautified If the returned data is beautified or not.
wick.getWeapon();
Returns data about a Pickaxe.
- {String} PID ID of a Pickaxe.
- {Boolean} beautified If the returned data is beautified or not.
wick.getPickaxeID();
Returns data about a Wrap.
- {String} WID ID of a Wrap.
- {Boolean} beautified If the returned data is beautified or not.
wick.getWrap();
Returns data about a Toy.
- {String} TYID ID of a Toy.
- {Boolean} beautified If the returned data is beautified or not.
wick.getToy();
Returns data about a Music Pack.
- {String} MID ID of a Music Pack.
- {Boolean} beautified If the returned data is beautified or not.
wick.getMusicPack();
Returns data about a Glider.
- {String} GID ID of a Glider.
- {Boolean} beautified If the returned data is beautified or not.
wick.getGlider();
Returns data about a Character.
- {String} CID ID of a Character.
- {Boolean} beautified If the returned data is beautified or not.
wick.getCharacter();
Extracts a pak file.
- {String} file The pak file name.
- {String} keyer The key for the pak file.
await wick.extract('pak', 'key');
Extracts all files in directory property defined in the constructor.
await wick.extractAll();
Get AES Key for a package.
- {String} pak Package name.
const key = wick.getKey('');
Please create a issue and I'll happily be able to respond and help, if you have a fix create a pull request.