elogank/lol-replay-observer 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

elogank/lol-replay-observer

Composer 安装命令:

composer require elogank/lol-replay-observer

包简介

A simple library to allow players to watch League of Legends replays on your server

README 文档

README

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.

Please note that is the library only : you need to connect it with your application (controller) and call all available services for each routes. Replays must be downloaded with the https://github.com/EloGank/lol-replay-downloader library (or the CLI built-in solution). See the documentation for more information.
If you want a built-in solution of this library, please see the repository : https://github.com/EloGank/lol-replay-observer-silex.

Features

  • A fast way to download replays data (a 40min replay length is downloaded in ~1 minute).
  • Avoid a "Bug Slat" on the beginning of the game when the computer has poor performances.
  • Easily extendable.
  • Monolog ready.

Installation

Requirements

For now, this library requires Redis.
Maybe, in the future, this requirement will be optional.

Composer

In your project, in the folder where the composer.json file is located, run :

composer require elogank/lol-replay-observer

What is Composer ?

Manually

Clone this repository or download the full zipped library.

Configuration

Be sure to have a Virtual Host (Apache, NGINX, or other web servers) to handle clients requests.
All your routes must have the prefix /observer-mode/rest/consumer.

See usage part below for more informations about routes configuration.

Usage

See the usage dedicated documentation for more information.

Client configuration

To connect to your client to watch your replays, you have to retrieve some data :

  • Your domain name or IP.
  • The spectated region (this is not the same as the game region).
  • The game id.
  • The game encryption key.

All are available in the metas.json in the downloaded replay data folder, for example :

/* metas.json */
{
    "gameKey": {
        "gameId": 1234567890,
        "platformId": "EUW1" /* region */
    },
    "gameServerAddress": "...",
    "port": ...,
    "encryptionKey": "zfBsWycQuDkkDNJhwSzdIYAmsAJu0n2s",
    ...
}

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 [YOUR_DOMAIN_NAME]:80 [ENCRYPTION_KEY] [GAME_ID] [REGION]"

Example 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 www.foobar.com:80 zfBsWycQuDkkDNJhwSzdIYAmsAJu0n2s 1234567890 EUW1"

Notes :

  • The 0.0.1.113 folder name can change when the game is updated. Be sure to update it for your users.
  • The port (:80) is very important here, do not remove it. Of course, you can change it if your website is running on another port.
  • You can found some batch files to automatically run the game on lolking.net, op.gg, or other websites that has that feature.

Important notes

According to the new Riot Terms of Use (1st October 2014), using data from another source of their official API is not allowed. So using data by parsing replays decoded files is not allowed.

Reporting an issue or a feature request

Feel free to open an issue, fork this project or suggest an awesome new feature in the issue tracker.

Known issues

  • The first minute of the game can be unreachable on some replays.

Credit

See the list of contributors.

Related projects

See the EloGank organization to have the full list of related projects the League of Legend game.

Licence

MIT, more information

This repository isn't endorsed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially involved in producing or managing League of Legends.
League of Legends and Riot Games are trademarks or registered trademarks of Riot Games, Inc. League of Legends (c) Riot Games, Inc.

elogank/lol-replay-observer 适用场景与选型建议

elogank/lol-replay-observer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9 次下载、GitHub Stars 达 19, 最近一次更新时间为 2015 年 10 月 25 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「library」 「server」 「observer」 「download」 「record」 「league of legends」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 elogank/lol-replay-observer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 elogank/lol-replay-observer 我们能提供哪些服务?
定制开发 / 二次开发

基于 elogank/lol-replay-observer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 9
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 19
  • 点击次数: 23
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 19
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-25