PDA

View Full Version : Hon Replay Parser



Vida
04-17-2011, 01:23 PM
It's not finish, and I might never finish it. I'm a second year student and the term start in a month(and a camp before that).
Anyone willing to take this project and make it complete, do so.

There's two part to the replay file, the XML part with basic information and the hard part; the part were it's all in S2R2 format.
I have finish the first part, well that take seconds.

Right now, I'm stopping at "EntitySnapshot" and "BitBuffer *bits = BitBufferNewBytes(byteData, snapshot_length);"
You can start from there.

I might come back and work on this in the not so near future, or when S2 decide to release the replay format.

This project is only made for fun, it really has no use in the real world as S2 have a good XML system already.

What can this project, right now, be use for:
Local replay searching
Fetching Players, Games Mode // All the XML stuff.
Basic in-game stuff by skipping the unfinished Server Frame part.

Source Code :: https://github.com/athiwatc/HRP

theli
04-21-2011, 09:20 AM
you can look at my s2r2 python library code for parsing server frames, afaik someone ported it to C but never released his code :-/

Vida
04-21-2011, 09:25 AM
^hmm, thanks. I didn't see that :)

BTW which tools did you use to analyze the replay, just a raw hex editor?
Do you have any contact that I can contact you, if you are willing to help me.

My goal here is to recreate the replay file, you people can view without the HoN running.

Namreeeb
05-02-2011, 05:06 PM
If you're referring to me, I didn't actually write a replay parser. I wanted to parse the snapshots as they came in. Instead I simply hooked ReadSnapshot functions.

Vida
05-04-2011, 12:40 AM
^Can you release the code, or send it to me?

Namreeeb
05-05-2011, 02:38 PM
What code? What I'm saying is I simply snoop on their code.