RiotControl
RiotControl copied to clipboard
Link to replays
If possible, can there be a link to the LoL replay files that get created with each game in the match history? Just maybe a link after the "Game ID" area on the match history area.
My thought is direct the program to the folder where the replays are stored and then the replays would probably need to have the champion name at least and use either the date modified, or make time needed to be added to the replays to get a sync between them.
Hmm that's a curious request. The thing is that this requires a degree of cooperation between server and JavaScript GUI that is currently not implemented. You would probably require a new API call for this and a new configuration variable in the XML file.
It also requires replays to be stored with a particular name pattern. Otherwise it would be necessary to implement a LoLReplay library that actually parse that data format to extract such information (if it is even available that is, I don't know if it is).
Join us on IRC to talk this through, maybe.
I looked into this. It's possible as they store the game ID in the header in some plain text JSON block. Blighttp wasn't really designed to serve static files. This job is generally done better by software like nginx. However, locally it hardly matters. I suggest that this would only be visible locally right now and it would simply link to the file that way, using the file:// handler or whatever.