Skip to content

Instantly share code, notes, and snippets.

View Pupix's full-sized avatar
👑

Robert Manolea Pupix

👑
View GitHub Profile
@Pupix
Pupix / SKNLoader.js
Created February 27, 2018 14:07
three.js League of Legends .skn loader
/**
* @author Pupix / https://github.com/pupix
*/
THREE.SKNLoader = function ( manager ) {
this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
};
@Pupix
Pupix / index.js
Last active July 25, 2022 07:25
A minimal WAMP 1.0 protocol implementation to be used with the new League of Legends client (LCU)
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
const WebSocket = require('ws');
const MESSAGE_TYPES = {
WELCOME: 0,
PREFIX: 1,
CALL: 2,
CALLRESULT: 3,
CALLERROR: 4,
@Pupix
Pupix / League of Legends alpha client v0.3 API
Created June 21, 2016 01:49
A swagger JSON map representing the API used inside the new League of Legends alpha client as it's presented in v0,3
{
"basePath": "/",
"consumes": [
"application/json",
"application/vnd.api+json",
"application/x-yaml",
"application/x-msgpack",
"application/octet-stream",
"application/x-www-form-urlencoded",
"multipart/form-data"
@Pupix
Pupix / aimesh_ngrid.bt
Created December 28, 2016 16:40
Read .aimesh_ngrid files from League of Legends
//--------------------------------------
//--- 010 Editor v5.0.2 Binary Template
//
// File: .aimesh_ngrid Template
// Author: Pupix <manolea.robert@gmail.com>
// Revision: 1.0
// Purpose: Read .aimesh_ngrid files from League of Legends
//--------------------------------------
//--------------------------------------
This file has been truncated, but you can view the full file.
{
"basePath": "/",
"consumes": [
"application/json",
"application/vnd.api+json",
"application/x-yaml",
"application/x-msgpack",
"application/octet-stream",
"application/x-www-form-urlencoded",
"multipart/form-data"
@Pupix
Pupix / SKLLoader.js
Last active February 27, 2018 14:04
three.js League of Legends .skl loader
/**
* @author Pupix / https://github.com/pupix
*/
THREE.SKLLoader = function ( manager ) {
this.manager = ( manager !== undefined ) ? manager : THREE.DefaultLoadingManager;
};
@Pupix
Pupix / lanim compressedData template.bt
Created February 27, 2018 12:00
.lanim file format
//--------------------------------------
//--- 010 Editor v4.0.1 Binary Template
//
// Author: Pupix <manolea.robert@gmail.com>
// Purpose: Parsing lolking's lanim files
//--------------------------------------
// STRUCTS
struct Position {
float x;
[
{
"CharacterId": 1,
"Name": "name",
"Lev": 21,
"Rank": "1",
"CreateDate": "2017-07-07T03:08:42.893Z",
"CharPassword": null,
"Deleted": false
},
@Pupix
Pupix / index.js
Last active August 30, 2016 23:14
.inibin to .json converter
/**
* Converts `.inibin` fiiles to `.json`.
*
* Usage example:
* Create an `inibins` directory and put your `.inibin` files in there
* Run `node index` from terminal and a new directory `extracted` will
* be created, with the extracted files
*
*/
//--------------------------------------
//--- 010 Editor v6.0.0 Binary Template
//
// File: WADTemplate
// Author: Pupix <manolea.robert@gmail.com>
// Purpose: League of Legends .wad file parsing
// Licence: MIT
//--------------------------------------
// PREDEFINE