HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Is there a way to detect images shown to player?

07-20-2010, 02:30 PM#1
Darkrider
I want to know if there is a way to detect if an specific type of image is being shown to a player. For example units in minimap or that kind of images

EDIT: Isn't it possible with handles?
07-20-2010, 11:57 PM#2
DioD
if you show image it is shown...

just log your code's actions.
07-21-2010, 11:38 AM#3
Darkrider
but i want to detect a unit's icon if it is shown
07-21-2010, 01:06 PM#4
Fledermaus
IsUnitVisible(whichUnit, whichPlayer)? Should work if all the units in the game have a minimap dot. Otherwise that + a check for unit type.
07-21-2010, 02:21 PM#5
Darkrider
actually i want to combine that with a "minimap image loaded" thingy. Thats why i need to know if there is a way to know if an image is being shown to some localplayer :/
07-21-2010, 04:02 PM#6
Bribe
What the heck?
07-21-2010, 04:15 PM#7
Fledermaus
Yeah seriously, I don't get it.
07-21-2010, 05:19 PM#8
Darkrider
i wan to know if there is a way to detect if an image is currently being displayed to a player. Any image, like for instance hero icons or unit icons (its just en example i don't want those :P)
07-21-2010, 05:27 PM#9
Fledermaus
Be more specific with the term "image". Do you mean the handle type image, or something completely different?
07-21-2010, 06:23 PM#10
DioD
for image - log your own actions

for ingame TGA-BLP noooooooo nooooooo noooooo
07-21-2010, 09:10 PM#11
Ammorth
certain actions cause hero and unit icons to display for a player (the player owns a hero, or there is an idle unit with the worker classification). Both of these can be tracked via triggers, so it is possible to "detect" when an "image" is shown to a player. However, each "image" has its only method of detection, and therefore requires different methods. There is no general detection function.

I am also lost as well. Please be specific and explain what you want the end result to be. No one here is going to steal your ideas and make a map/system out of it.
07-21-2010, 10:06 PM#12
TKF
Quote:
Originally Posted by Darkrider
I want to know if there is a way to detect if an specific type of image is being shown to a player. For example units in minimap or that kind of images

EDIT: Isn't it possible with handles?
Afaik that is not possible. Instead store booleans when the triggers shows the images only way of detecting as I know of (if the images shown to players is triggered, not game default created).

Other than that I don't know.
07-22-2010, 02:26 AM#13
DioD
its is not possible, ever with database.
07-22-2010, 01:33 PM#14
Darkrider
the only way i can explain this is with an example :/

I want to know if a "game default image" like hero minimap icon is currently being shown to some player. I know that there is no GUI for this, but i don't know JASS functions that might help me here.

I thought that, perhaps, there is some way to assign a handle to the hero mini-map icon when it is created or something... I know this sounds kind of weird but by the time i explain what i want to do, nobody is gonna care any longer :/

Hidden information:

Lets say, if a local player has some hero minimap icons loaded/displayed that it shouldn't have, then, he is using some kind of hack. If i hide a neutral hero in the map and its minimap icon is loaded for some player then i can kick the one who's seeing it because he shouldn't. This kind of things can't be detected via triggers because hacks screw memory. But images are not loaded if not being seen therefore if you see it you are hacking


That's the reason why i didn't post what i wanted because now everybody will say "bah! waste of time" and no more replies :(

EDIT: Perhaps this can help... I found ways to prevent some hack features like "show invisibles", "reveal units in map", "show skills", "show cooldowns" and "disable fog of war". But the most important "display units in minimap" its evading me :/. I've already tried hiding units beneath other units but it is worthless and also tried hiding minimap beneath invisible units showing a black 16*16 image, but also worthless. Also tried creating different kind of units with and without minimap icon but, you know, desync. Im really into this (also tried to use corrupted blps but they show black or not shown, doesn't cause critical errors).

So i came out with this idea and wanted to know if it is possible somehow


Thanks for reading this far ^^
07-22-2010, 01:57 PM#15
Anitarf
What you want to do is not possible as far as I know. Try this instead.