![]() ![]() To get it, you have to use an unofficial API, like this :, please see the route game.retrieve_in_progress_spectator_game_info. Indeed, the official Riot API doesn't provide yet an API to retrieve this data. From an unofficial APIįor the game id and the encryption key, it's a few harder. Some regions (not all) are listed in the LoLNexusParser class as constants. How to get the region, game id or encryption key ? Some examples are available in the examples repository folder. Xdebug.max_nesting_level = 300 How to use (examples) To edit the default max nesting level, open your xDebug configuration file ( /etc/php5/your_engine(cli, fpm or apache2)/conf.d/20-xdebug.ini by default) and append this : This lib uses a recursive method to download a game data, and can reach the max value (100) when a game length is more than 40 minutes. If you have enabled xDebug, please set your max nesting level to more than 200. See the " download and decode example", which overrides two configurations of the ReplayDownloader class. Just pass an array to override them, see the getDefaultOptions() method of each class. To configure the library, you have some $options parameters in the classes constructor. If you don't know what is Composer, read the dedicated documentation. Simply clone this project and run the composer install command. Can wait for the start of the game if you start the download process too early (during the game loading process or the first 3 minutes of the game).Download previous data if you start the download process after the start of the game (can download only 10 minutes in the past due to a limitation of the Riot spectator server engine).An asynchronous system (multi processes), allow to download some replays at the same time and save the log into the replay folder, it needs the CLI dependency. ![]() A built-in replay decoder for each files (chunks & keyframes).Replays are stored in your server and can be watched at any time.Īll download files can be decoded to parse them. This project provides you a way to easily download a League of Legends replay game which still in process (ingame), like or op.gg feature. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |