Closed adithep closed 9 years ago
The .hdtreplay files just zips. Open it and you'll find a output_log.txt which contains the original log data, as well as a replay.json which is a 2d array of entities.
Thanks!
On Wed, Feb 4, 2015 at 5:20 PM, Epix notifications@github.com wrote:
The .hdtreplay files just zips. Open it and you'll find a output_log.txt which contains the original log data, as well as a replay.json with is a 2d array of entities https://github.com/Epix37/Hearthstone-Deck-Tracker/blob/master/Hearthstone%20Deck%20Tracker/Hearthstone/Entities/Entity.cs .
— Reply to this email directly or view it on GitHub https://github.com/Epix37/Hearthstone-Deck-Tracker/issues/636#issuecomment-72831169 .
Sorry to commento on such an old issue, but I just opened the hdtreplay files and they just contain the output_log.txt. Is there a way I can get this in JSON format?
The json format no longer exists, sorry.
Is there any other format I can get the info easier then the output_log.txt? All the information I found is outdated. If I click to see the replay I can download an XML, is there a way to get that XML without a webscraper?
Take the ID of the replay. For example, for https://hsreplay.net/replay/u3FYcWm2vXr9ZNtZsyavC6
, that is 4EDxpNihFAbY3YFMo7aGgC
.
Then go to https://hsreplay.net/api/v1/games/<shortid>/
. Example: https://hsreplay.net/api/v1/games/u3FYcWm2vXr9ZNtZsyavC6/
The URL replay_xml
is what you want.
I think it would be really nice if we can export replay data to any text format for example xml or json.