GithubHelp home page GithubHelp logo

a514514772 / lol_replayer_for_tencent Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cfc4n/lol_replayer_for_tencent

4.0 5.0 0.0 120.57 MB

League Of Legends 英雄联盟,腾讯游戏助手TGP录像的解析代码,可搭建录像服务器,启动游戏进行观看录像。

Shell 0.04% Go 1.53% C# 3.69% Python 93.34% HTML 0.04% Makefile 0.55% C 0.49% Batchfile 0.12% PowerShell 0.18%

lol_replayer_for_tencent's Introduction

lol_replayer_for_tencent 介绍

Synopsis

League Of Legends 英雄联盟,腾讯游戏助手TGP录像的解析代码,可搭建录像服务器,启动游戏进行观看录像,支援MAC OS X上觀看國服。 除此之外,我們還提供了windows版本的GUI,透過多玩盒子API,獲取該場對戰的資訊。

Install

  1. 首先把LoL_replayGUI\temp file裡面的檔案, 複製到LoL的執行目錄 ex C:\Program Files (x86)\GarenaLoLTW\GameData\Apps\LoLTW

  2. 打開LoL_replayGUI\Win32GUITest1, 按下choose folder buttn, 選取該LoL執行目錄

  3. 會顯示所有再裡面的戰鬥場次, 點取場次, 可看見詳細資訊與播放

Code Example

你可以透過我們的GUI:

在 ~\lol_replayer_for_tencent\LoL_replayGUI\WinGUITest1\bin\Debug 底下可以找到 WinGUITest1.exe執行

也可直接透過command使用我們的project:

http://api.pallas.tgp.qq.com/core/get_ob_list 中,有很多http://ob.pallas.tgp.qq.com/ob_data/1_1789151000.ob 字样的录像文件,下载下来 透過這個指令,直接呼叫client端撥放replay

cfc4n@cnxct:~/Project/github/lol_replayer_for_tencent/bin$./launcher -f 1_1789151000.ob

傳入玩家名稱,得到該玩家近十場遊戲的獨特ID

``~/lol_replayer_for_tencent/IDParser$ python IDParser.py player_ID```

傳入每一場遊戲獨特的ID,可以藉由多玩盒子API獲得該場遊戲的資訊

~/lol_replayer_for_tencent/HTMLparser$ python HTMLparser.py matchID

Motivation

Just for fun

Pre-required

  • Python 2.7
  • go
  • beautifulsoup4 for python

Installation

觀戰所需程式:

cfc4n@cnxct:~/Project/github/lol_replayer_for_tencent$go get github.com/collinglass/mw
cfc4n@cnxct:~/Project/github/lol_replayer_for_tencent$go get github.com/gorilla/mux
cfc4n@cnxct:~/Project/github/lol_replayer_for_tencent$go get github.com/pborman/getopt

cd 项目目录

cfc4n@cnxct:~/Project/github/lol_replayer_for_tencent$sh shell/build.sh

备注 windows平台需要在编译时,填写LOL游戏所在目录

IDParser: ~/lol_replayer_for_tencent/IDParser$ python setup.py py2exe

HTMLparser: ~/lol_replayer_for_tencent/HTMLparser$ python setup.py py2exe

API Reference

TO-DO

預計還要完成抓下ob file時,順便獲取該場遊戲資訊,因為盒子API的ID與騰訊ID對不起來

License

lol_replayer_for_tencent's People

Contributors

a514514772 avatar acht7111020 avatar cfc4n avatar yaya0805 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.