See the EloGank organization to have the full list of related projects the League of Legend game. The first minute of the game can be unreachable on some replays.
Reporting an issue or a feature requestįeel free to open an issue, fork this project or suggest an awesome new feature in the issue tracker. So using data by parsing replays decoded files is not allowed. You can found some batch files to automatically run the game on, op.gg, or other websites that has that feature.Īccording to the new Riot Terms of Use (1st October 2014), using data from another source of their official API is not allowed.Of course, you can change it if your website is running on another port. The port ( :80) is very important here, do not remove it.The 0.0.1.113 folder name can change when the game is updated.Then, run this command (on Windows, run + R) by replacing the 4 variables above and the location or your game directory : "C:\Riot Games\RADS\solutions\lol_game_client_sln\releases\0.0.1.113\deploy\League of Legends.exe" "8394" "LoLLauncher.exe" "" "spectator :80 "Įxample with my metas.json file data above : "C:\Riot Games\RADS\solutions\lol_game_client_sln\releases\0.0.1.113\deploy\League of Legends.exe" "8394" "LoLLauncher.exe" "" "spectator zfBsWycQuDkkDNJhwSzdIYAmsAJu0n2s 1234567890 EUW1" "encryptionKey": "zfBsWycQuDkkDNJhwSzdIYAmsAJu0n2s", The spectated region (this is not the same as the game region).Īll are available in the metas.json in the downloaded replay data folder, for example : /* metas.json */.To connect to your client to watch your replays, you have to retrieve some data : See the usage dedicated documentation for more information.
See usage part below for more informations about routes configuration. Configurationīe sure to have a Virtual Host (Apache, NGINX, or other web servers) to handle clients requests.Īll your routes must have the prefix /observer-mode/rest/consumer.
In your project, in the folder where the composer.json file is located, run : composer require elogank/lol-replay-observerĬlone this repository or download the full zipped library. Maybe, in the future, this requirement will be optional. Avoid a "Bug Slat" on the beginning of the game when the computer has poor performances.A fast way to download replays data (a 40min replay length is downloaded in ~1 minute).If you want a built-in solution of this library, please see the repository. See the documentation for more information. Replays must be downloaded with the library (or the CLI built-in solution). Please note that is the library only : you need to connect it with your application (controller) and call all available services for each routes. This project provides you a way to watch your downloaded replays directly in the League of Legend official client like replay.gg or op.gg feature. League of Legends Replay Observer (player)