cannawen / dota-gsi-discord-bot

Use Dota 2's Game State Integration API to make helpful announcements in a discord voice channel
MIT License
5 stars 2 forks source link

[chore] figure out which heroes are in game #113

Closed cannawen closed 1 year ago

cannawen commented 1 year ago

We have all the heroes in the information from minimap throughout all the stages (in theory)

gsi -DOTA_GAMERULES_STATE_PRE_GAME.txt gsi -DOTA_GAMERULES_STATE_WAIT_FOR_MAP_TO_LOAD.txt gsi - showcase.txt gsi -strategy.txt

cannawen commented 1 year ago

Looks like we don't get this info from a live game... Using the minimap when we first see 5 heroes or 10 heroes to capture friendly or enemy heroes

Adding analytics to see at what time this is triggered

cannawen commented 1 year ago

Closing; with the caveat that it may take ~30 seconds to figure out which heroes are in the game (heroes are classified when all 10 people show on the minimap at the same time)

cannawen commented 1 year ago

Data:

radiant fountain "xpos": -7136, "ypos": -7072

Dire fountain "xpos": 7510, "ypos": 6424

Top left "xpos": -8699, "ypos": 8731

Bottom right "xpos": 8720, "ypos": -8742

Building positions:

gsi-building.txt