Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.
/ MockLiveGameAPI Public archive

A mock implementation of League of Legends' in-game API

Notifications You must be signed in to change notification settings

Querijn/MockLiveGameAPI

Repository files navigation

MockLiveGameAPI

A server that imitates a live game of League of Legends in the background. Useful if you want to develop something using the ingame API, but not while running League of Legends.

How to install

  1. Download this repository
  2. Ensure you have NodeJS and NPM.
  3. In the root folder, run npm install && tsc -p ..

How to start

You can run the application by running node dist/index.js. This will automatically start a EUW1 ARAM game, at 1 on 1 speed. Below are some additional parameters you can add.

Additional parameters

  • -port/-p <port number>, although it is not recommended, as the API should always be on 2999.
  • -locale/-l <locale>, should be a locale in this list: https://ddragon.leagueoflegends.com/cdn/languages.json
  • -patch/-v <ddragon version>, select a specific version of DDragon to be used. Needs to be in this list: https://ddragon.leagueoflegends.com/api/versions.json
  • -apikey/-k <API key, file or env var>, supply a Riot Games API key, file or environment variable to download a match with.
  • -match/-m <match id>, a match id by Riot Games to download with the API key.
  • -gamespeed/-s <gamespeed multiplier>, makes time go by faster.
  • -verbose/-v, outputs data every second in the window.

Issues and TODO:

  • There's unfortunately no event for a summoner levelup, meaning that I have to fake it. I currently do not check for any abnormal skill levelups, so evolution-based champions might get an incorrect level here.
  • Everyone has Ignite and Flash as their default summonerSpells hardcoded.
  • wardScore is not implemented.
  • rawDescriptions and rawDisplayNames for items are missing.
  • resourceTypes always result in "MANA".
  • fullRunes/runes are currently always the same, for everyone.
  • isBot is always false.
  • Some parameters on items aren't verified, and might be incorrect (consumable, for instance.)

About

A mock implementation of League of Legends' in-game API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published