-
Notifications
You must be signed in to change notification settings - Fork 70
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
How to map from m_abilLink to the actual hero ability? #27
Comments
That index is a relative index into that specific build's ability data. To map it properly you would either need to read the ability data from that build, or we could add the mapping into the replay file (which could unfortunately increase the replay file size in a non trivial way). Thanks for bringing it up though I don't have much useful suggestions at the moment. |
Thanks for the reply. |
@tenarsis can you please explain how to get this info? |
@tenarsis any update? |
@tenarsis I was finally able to get the list of abilities for each build in an automated way. Can you please explain how to create the mapping? |
@crorella Did you ever figure out how to relate ability lists to the m_abilLink ID? There's a bunch of parsers that will output ability lists nowadays, but I can't find any information on what the IDs actually signify or how to derive them. |
You can get an array of all heroes by parsing ConfigData ( In SC2, you can use the map editor to export a balance data file, which has all of these links. |
Yeah that seems roughly correct, but very roughly. m_AbilLink index numbers do correspond with the order abilities appear in each of the XML files at "New" heroes(the ones in Sure would be nice if we had an easy way to export like SC2 :) |
@koliva8245 has done a lot of great work making an easy, automated way of parsing all this with https://github.com/koliva8245/HeroesDataParser. I don't see m_AbilLink specifically but koliva might be willing to explain how to get it from the parsed output and/or add it. |
Sorry can't, no easy way. I think the way it was done for StarCraft 2 was that the map editor had an export data option or something. So either blizzard would have to export the data or maybe someone could import all the Hots data in the SC2 editor and export it. |
Hello,
I'm trying to retrieve abilities casted by heroes, in gameevents I see a SCmdEvent is created every time a hero uses an ability:
Is there any way to determine what ability was the hero using?
Thanks in advance
The text was updated successfully, but these errors were encountered: