ValvePython / dota2

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

Issue with Real Time Match data. #89

Open ring0jke opened 2 years ago

ring0jke commented 2 years ago

Hello.

Is it possible to get Live data of match using request_matchdetails? It returns me /n if i request live match info. If i request match which already ended, it shows all info about it.

And second question how to use method : request_matches() It tried to insert args (Skill,game_mode and etc) from source,but its also returns nothing. Any help please :(

Philaeux commented 1 year ago

To my knowledge, request_matchdetails gives data only for finished game, and the only way to have information about running games is to use https://github.com/ValvePython/dota2/blob/474d819d2ef949d8b3c742a562aa06dfa2c1548d/dota2/features/match.py#L105

It is how the games are displayed in the WATCH category in the client. This method displays at max 100 games if you call it like that: request_top_source_tv_games(start_game=90). There should be a way to display friend lobbies (like in client) or specific lobbies because the message accepts a lobby_ids array parameter. However finding a lobby_id for a specific running game is not easy.