holistic-web / rito-plz

A tool to help players improve their skills in League of Legends
https://ritoplz.web.app/
0 stars 0 forks source link

Run LoL client on server for capturing replays #14

Open dewinterjack opened 3 years ago

dewinterjack commented 3 years ago

Server running the League client. It uses replay files to browse a match replay and using instructions received from requests, will capture footage of a section of the match.

This will be used to create gifs.

Possible instructions:

dewinterjack commented 3 years ago

Can automate the server set-up. Chocolatey, powershell and Azure DSC works great together. This can help is we end up using pods and scaling.

dewinterjack commented 3 years ago

If we use the timeline api we should obviously be naming this after the best champion in the game

giphy

fitzhavey commented 3 years ago

I think we should try and define the schema for what an instruction to create gifs from a match should look like. Then we can create a separate service to create these instructions and push them to a queue.

An example message might look something like

{
    gameId: 12345
    clips: [
        {
             clipId: 1234
             startTime: '3:07',
             endTime: '3:17',
             summoner: 'shinameega'
             options: {
                 showFogOfWar: true,
                 resolution: 'ultra-wide'
             }
        }
    ]
}

Once a clip has been turned into a gif we can then upload it and associate the given clipId with the resulting url.

dewinterjack commented 3 years ago

Using League Client Update (LCU) we can talk to the client without logging in. Headless https://riot-api-libraries.readthedocs.io/en/latest/lcu.html

dewinterjack commented 3 years ago

We can set up a specialized image captured from a windows azure vm.

andrewlew1s commented 3 years ago

Looks like we'll need a holistics azure account, will do that within the next day or two