adamqqqplay / dota2ai

Ranked Matchmaking AI: An improved Dota2 AI based on Valve's default AI. Has more than 3 million subscribers on Steam.
http://steamcommunity.com/sharedfiles/filedetails/?id=855965029
GNU General Public License v3.0
320 stars 86 forks source link

[Developer] 'IsInvulnerable' called on an entity (npc_dota_goodguys_fort at -5920 -5352 240) that cannot be seen! flood/spam #158

Open Espionage724 opened 4 months ago

Espionage724 commented 4 months ago

https://github.com/ValveSoftware/Dota-2/issues/2737

https://www.youtube.com/watch?v=GJo5N9VC7bQ

When using RMMAI bot scripts, lines like this are constantly spammed on the in-game Console:

[Developer] 'IsInvulnerable' called on an entity (npc_dota_badguys_fort at 5528 5000 248) that cannot be seen!

Launching with +sv_cheats 1 or doing a custom lobby with cheats don't stop the spam.

forest0xia commented 3 months ago

its a known issue and wildly used across a lot of bot scripts simply because the units were returned or in a list of a normal bot script api call such as the api to get the near by units. It has nothing to do with the developer or the script itself trying to cheat, but just due to the scripts do not have one simple additional check to validate of the entity or unit is CanBeSeen before checking if the unit IsInvulnerable. If you know how to code or want to learn bot developing, you should know it's just taking tedious effort to add that simple check, anyone can do it, you can do it as well. Just need to check all places that the IsInvulnerable is called without a CanBeSeen check in advance. If you are not interested to fix it, just ignore it by the suggestion from that link https://github.com/ValveSoftware/Dota-2/issues/2737: developer 0