Skip to content

WardsPlacedChangedEvent does not fire #39

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

Open
jfbn opened this issue Mar 24, 2025 · 3 comments
Open

WardsPlacedChangedEvent does not fire #39

jfbn opened this issue Mar 24, 2025 · 3 comments

Comments

@jfbn
Copy link

jfbn commented Mar 24, 2025

The event PlayerWardsPlacedChanged does not fire when the player places a ward.

Other events are firing in my test setup so I guess it's specific to this event.

GameState.Player.LocalPlayer.WardsPlaced also does not change.

Semi related request:

Is there any chance you can expand the Ward related events to contain information about where the ward was placed? This data is the reason I tried this library out. I am working on another DOTA project that deals with ward positions and I want to use this to debug ward positions.

@antonpup
Copy link
Owner

Hello Johan,

The player detail for placed wards is only available in spectator mode. At least that's what I have documented for that field, https://github.com/antonpup/Dota2GSI/blob/master/Dota2GSI/Nodes/PlayerProvider/PlayerDetails.cs#L209.

I am not sure that Dota 2 itself exposes positional information for wards. Even if it does, the positional coordinates are usually only available while spectating a game. At least for CS2, no positional coordinates are available when a local player is in the game.

You might be able to get placed ward locations from the Minimap provider, https://github.com/antonpup/Dota2GSI/blob/master/Dota2GSI/Nodes/MinimapProvider/MinimapElement.cs.

@jfbn
Copy link
Author

jfbn commented Mar 25, 2025

Hey @antonpup thank you for taking your time to answer.

I was hoping to use this tool as a crutch for debugging player (playing) related events. Unfortunately it is not that helpful for me to extract the events from a replay, as my research revolves around understanding the bounding boxes that events are grouped into (the map is enourmous but events such was wards being placed are grouped into a 128 x 128 grid).

I suspect that you may be right about using the MinimapProvider as a means of extracting locations.

Can you say anything about whether or not this will run on a live game?

@antonpup
Copy link
Owner

You would have to try it out in a local/practice match. What I know is that most/all data is available when spectating a match (you can see both teams and the game is delayed so there isn't much issue with cheating), but during the game, some information is not available.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants