A parser for .bin files from League of Legends.
lol-bin-parser is installable via:
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"
]
...
}
}
});
N.B: All methods act as promises if no callback is passed.
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.
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.