Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hero death coordinate #1473

Open
heqiuzhi opened this issue Jun 7, 2017 · 7 comments
Open

Hero death coordinate #1473

heqiuzhi opened this issue Jun 7, 2017 · 7 comments
Milestone

Comments

@heqiuzhi
Copy link

heqiuzhi commented Jun 7, 2017

qq 20170607104454
Which API tell the Hero death coordinate? Can I get every hero death log(with x,y)(not just in teamfights) from a pro_match?
How to map the x,y in obs_log to dota2 map?
Thanks!

@howardchung
Copy link
Member

The teamfight death position is based on the hero position at the time of death (same second). It's currently not saved for each hero death (although it could be added).

Translate the coordinates by subtracting 64 from both x and y, then the range of values is 0-127 starting from the bottom left corner.

@heqiuzhi
Copy link
Author

heqiuzhi commented Jun 7, 2017

Where can I get the teamfight death position ?
Can you add all death position to killed_by column(from player_matches table), just like key=[x,y] in OBS_LOG column.
The size of dota2 map is 128 * 128?
image

@howardchung
Copy link
Member

You can iterate over the teamfights array in each match data blob to find the deaths in each teamfight.

killed_by is an object, not an array, so it might make more sense to add it to the kills_log instead. I don't know when I'll have time to do this, but happy to accept a pull request for the change.

Yes, that is the scale you can use for the coordinates we extract.

@heqiuzhi
Copy link
Author

heqiuzhi commented Jun 7, 2017

Sorry , I am new to the OPENDOTA, what is "match data blob"?
Which API or table?

@howardchung
Copy link
Member

@heqiuzhi
Copy link
Author

heqiuzhi commented Jun 7, 2017

qq 20170607131616
I think the death log should add to here.

@heqiuzhi
Copy link
Author

heqiuzhi commented Jun 7, 2017

@albertcui can you do this?

@howardchung howardchung modified the milestone: Backlog Jun 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants