Arcana / node-dota2

A node-steam plugin for Dota 2.
MIT License
546 stars 191 forks source link

Bot doesn't receive "practiceLobbyUpdate" event after lobby was launched #688

Closed mage-ua closed 2 years ago

mage-ua commented 4 years ago

Maybe this is Dota2 feature update? :)

angel200sdnot commented 4 years ago

I think its been a couple of months since this issue appeared, you need to check the state property instead of the game_state property in the lobby object

mage-ua commented 4 years ago

@angel200sdnot Thx for the answer. state property has poor values for my targets: UI, SERVERSETUP, RUN, POSTGAME. How can I get member hero_id in RUN state in PRE_GAME & GAME_IN_PROGRESS game_state's? I know the only one way to get member hero_id in real time - exit => launch Dota2 after launching a lobby.

I have requested some support in Valve help center to resolve this issue.

angel200sdnot commented 4 years ago

In this case you will need to check the live games api to get the heroes while the match is in progress but this will only work if the match has a league ticket

If you get back from valve please let us know