ValvePython / dota2

🐸 Python package for interacting with Dota 2 Game Coordinator
http://dota2.readthedocs.io
201 stars 32 forks source link

Match details mapping #46

Closed OmriGilhar closed 5 years ago

OmriGilhar commented 5 years ago

Hi rossengeorgiev, I recently started to use your wonderful lib, so far all is good, but, when I'm extracting a game detail I get a long and detailed string (dict style) and I'm trying to figure out the meaning of every variable there but I can't find any documentation on this subject, for example:

player_slot: 0 hero_id: 39 item_0: 116 item_1: 77 item_2: 77 item_3: 108 . . . permanent_buffs { permanent_buff: 6 stack_count: 1 } item_6: 0 item_7: 0 item_8: 0 hero_pick_order: 9

Can you please direct me to the mapping documentation? Thanks!

BTW very nice API and easy to use!

rossengeorgiev commented 5 years ago

You can get the from game files: https://github.com/SteamDatabase/GameTracking-Dota2/blob/master/game/dota/scripts/npc/npc_heroes.txt Or via the WebAPI: https://api.steampowered.com/IEconDOTA2_570/GetHeroes/v0001/ https://api.steampowered.com/IEconDOTA2_570/GetGameItems/v0001/