edge-blade / Dota-2-AI-Bot-Experiment

My Dota 2 Bot Script
GNU General Public License v3.0
11 stars 0 forks source link

Warding Issue #23

Closed edge-blade closed 2 years ago

edge-blade commented 2 years ago

Supports are trying to place wards in old ward locations. This is causing the support role bots to get stuck if the location is unreachable.

edge-blade commented 2 years ago

In the WardUtility there's a series of Vectors where wards would be placed. Gotta work on remapping the vectors to proper corresponding locations now that the map has a new layout.

edge-blade commented 2 years ago

A rough list of vectors and descriptions so we can try fixing their jank warding behavior: Dire Top HighGround = 480 , 3660 Dire Top Left Pillar -2823, 3575 Dire Top Right Pillar 508, 4089 Dire Top Lower Pillar -761, 2048 Radiant Top Pillar Top -4107 1528 Radiant Top Pillar Bottom -4352, -1024 Dire Bottom Left Pillar 2055, -791 Dire Bottom Topmost Pillar 4612, 773 Radiant Bottom Top Right Pillar 2823, -3068 Radiant Bottom Top Left Pillar -523, -3299 Radiant Bottom Lower Pillar 1281, -5126 Dire Bottom Ancient River Stairs 2597, -1465 Radiant Mid -1535, 247 Dire Mid 728, -470 Radiant Roshan Stairs -3291, 549 Dire Roshan Stairs -974, 2841 Dire Top Gank Ward -3795, 4207 Dire Safe Lane behind first tower -3113, 5952 Radiant Safe Lane behind first tower 3420, -6093 Radiant Bot Anti-Gank 4027, -3952 Radiant Ancient Ward 5436, -3335 Dire Ancient Ward 5176, 2776

edge-blade commented 2 years ago

For anyone curious, Valve does have built-in ward locations that you can see using in game console commands. Problem is they clearly haven't maintained or provided enough for those to be useful so vector based warding is probably the most appropriate route that'll need updating as map changes occur.

Huge reason this jumped in priority is support role bots clearly get stuck in the jungle if they can't place a ward so they're out of commission for random intervals.

edge-blade commented 2 years ago

I'm gonna close this one out since I've established a rough approximation for where new warding vectors should be. While I work on others I can play-test them and push slightly better locations if necessary.

edge-blade commented 2 years ago

Wanted to also post that in the console, you can center your camera on your characters position by hitting spacebar, and then if you run the console, the following command will give you a vector of your camera center, which was very helpful to find locations on the map.

dota_camera_get_lookatpos