Skip to content

Java library for the League of Legends RTMPS API (built on top of LoLRTMPSClient by Gabriel Van Eyck)

License

Notifications You must be signed in to change notification settings

desmond-silveira/leaguelib

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LeagueLib

By Anshu Chimala, Tyrus Tenneson, and Gavin Saldanha.

LeagueLib is a Java library for the League of Legends RTMPS API, built on top of LoLRTMPSClient by Gabriel Van Eyck.

LeagueLib is built to power efficient, scalable, concurrent League of Legends web applications. Best served on a framework like Play.

This is the stuff we built to replace the backend that runs LoLTeam and LoLTalk. Our original code did its job, but wasn't scalable or efficient enough to meet our rising traffic. In response, we started building a new, highly scalable, massively concurrent framework for these applications, to serve tens of thousands of players all over the world. And we're making it open source so that other developers like us can make awesome League of Legends apps.

Features

  • Completely asynchronous API calls to the League of Legends RTMP server.
  • Synchronous API calls just as easily, for use in simple applications or on top of distributed, scalable, concurrent platforms like Akka.
  • Easy support for multiple League of Legends accounts for increased concurrency and minimal rate-limiting side effects.
  • Efficient design: request only as much information as you need, using the same API calls and structure that League of Legends uses internally.
  • Clean MVC patterns: Accounts can easily be marshaled to files or recorded in databases, distributed to different account queues for different servers, and a single LeagueSummoner model can contain references to real-time data across your application that updates in place.

Usage

We intend to put up a better form of documentation in the future, but until then, here are some basic implementation notes.

  • LeagueLib doesn't embed any kind of thread/job scheduling or distributed computing architecture. We figured more than enough of these exist and we instead chose to build something that could plug into any of them easily. For LoLTeam and LoLTalk, we simply wrote a layer on top of LeagueLib that plugs it into Play Framework's asynchronous job scheduling built on top of Akka, which runs on multiple processes distributed across the cloud via Heroku.
  • LeagueLib was designed with the primary goal of giving us scaffolding to build LoLTeam and LoLTalk on top of. As such, it is robust but not necessarily completely feature complete. We're going to keep adding on to it.
  • The LeagueSummoner object is the focus of everything in LeagueLib as it is right now. The very fundamental summoner service API calls return empty summoner containers with names and IDs and nothing else. As you request different types of information from different services, they get filled into your single summoner object in place. You should not be maintaining multiple copies of a summoner or throwing them away for no reason.

License

LeagueLib is licensed under the GNU GPL v3. You may use this code for commercial or non-commercial purposes.

You may:

  • Use LeagueLib in personal or commercial products, with attribution.
  • Modify and distribute LeagueLib, with attribution.

You may NOT:

  • Sell any portion of LeagueLib.
  • Use or distribute any portion of LeagueLib without the included licensing information, or without attribution.

Caution

LeagueLib is still currently in development. We would advise against using it in production applications until it's ready.

Code pulled off the master branch should always work correctly and pass all tests. We intend to put up sample code soon, but until then you should hopefully be able to figure out how to use LeagueLib by viewing MainTest.java or by reading through the comments on the LeagueConnection, LeagueAccount, and *Service.java classes.

About

Java library for the League of Legends RTMPS API (built on top of LoLRTMPSClient by Gabriel Van Eyck)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%