Git Product home page Git Product logo

Comments (6)

innocenzi avatar innocenzi commented on May 20, 2024

I am not sure I understand your question. Basically, a .rofl file contains data about a League game. Its content is not readable except for the big JSON part inside of it. This JSON part contains a lot of informations about players, such as their names, champions, and some statistics.

All the other data must contain, for example, the location of players at certain points, the time, direction of used spells etc, and basically all the other data that League has to know to show a replay.

how can I parse the ROFL

You have to read the file, find the JSON part, parse it, and to interpret the data. Actually, that's what LeagueReplayParser is made for...

from leaguereplayparser.

innocenzi avatar innocenzi commented on May 20, 2024

@dengxiangcheng may I close this or do you have any other question?

EDIT Closing because of no response, but feel free to reopen

from leaguereplayparser.

un0btanium avatar un0btanium commented on May 20, 2024

You should name it LeagueReplayHeaderParser then :P
I was looking around for an accual indepth replay parser to extract ability casts throughout the game and stumbled upon your parser. Sadly, it seems like nobody has yet solved reading the accual replay data yet. I guess you are not feeling the urge to figure it out, right?

from leaguereplayparser.

innocenzi avatar innocenzi commented on May 20, 2024

Well, that name is indeed misleading.

To be honest, I don't think you can extract that data. I'm pretty sure what is not JSON in the file is all binary data which cannot be deserialized without knowing the exact members of the original League of Legends' classes.

from leaguereplayparser.

un0btanium avatar un0btanium commented on May 20, 2024

Yeah, i guess we would need some help and insight from Riot directly to make this possible.

I am really sad, that they did not provide some sort of api tools for it. There is so much potential for cool third party applications for it. I myself dream of useful automatic replay analyzer tools with graphs, diagrams and minimap pictures. After the official replay system dropped, the third party replay recording tools are mostly obsolute, replay analyzer tools could be the next big thing.

But it is understandable that Riot might not want to make their internal code public.

from leaguereplayparser.

innocenzi avatar innocenzi commented on May 20, 2024

They'll never let us see their code and that's normal, but you can still dream of them giving us a way to get that data from the replay files.

I mean, probably not quickly, but maybe they can serialize some of this data in JSON somehow? But it's a lot of data, and that mean a lot of work for them. Either they let the binary serialization like it is right now, or they change it to a readable format which requires them to create an adapter, but probably not both...

I suggest you contact them or try something in the developers forums.

from leaguereplayparser.

Related Issues (2)

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.