lol-bin-parser
v0.7.0
Published
A parser for .bin files from League of Legends.
Downloads
15
Maintainers
Readme
lol-bin-parser
A parser for .bin files from League of Legends.
Download
lol-bin-parser is installable via:
Usage example
var BinParser = require('lol-bin-parser'),
bin = new BinParser();
// Read the package.json file
bin.read('Fizz.bin', function (err, data) {
console.log(data);
"933543184": {
"755834653": "Flesh",
"762889000": "Fizz",
"2407209295": {
"2583134467": [
"Characters/Fizz/Skins/Base/Fizz_Base_VO_audio.bnk",
"Characters/Fizz/Skins/Base/Fizz_Base_VO_audio.wpk",
"Characters/Fizz/Skins/Base/Fizz_Base_VO_events.bnk"
],
"2848286081": [
"Characters/Fizz/Skins/Base/Fizz_Base_SFX_audio.bnk",
"Characters/Fizz/Skins/Base/Fizz_Base_SFX_events.bnk"
]
...
}
}
});
Available methods
N.B: All methods act as promises if no callback is passed.
parse(path, cb)
It will roughly parse a .bin file from the given path.
Parameters
- path {string} A path to where the file to parse resides.
- [cb] {Function} A callback called with
(error, parsedData)
as arguments.
read(path, cb)
It will read a .bin file from the given path, leaving only the relevant data of the skeleton model.
Parameters
- path {string} A path to where the file to read resides.
- [cb] {Function} A callback called with
(error, readData)
as arguments.