Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Detecting Where You Click...
Detecting Where You Click...
Jun 15 2008, 10:31 pm
By: Brontobyte  

Jun 15 2008, 10:31 pm Brontobyte Post #1



I had a crazy idea that when you right click you mouse to move a unit you teleport there. I know there is a map "FRAGS" -by Lethal_Illusion that detects where you click via +3000 triggers and a lot of fancy know how, but I wonder if you could effectively use EUD's to find out where you clicked. I know you can do mouse position but is where you clicked stored in the ram. And another thing, can you detect where that green circle with a blip in the middle is using an EUD? I would need it to center a location on, obviously. If you couldn't I would need to use the mouse position in conjunction with the clicking to center a location on the exact pixel you clicked on and teleport a the selected unit there.



None.

Jun 15 2008, 10:47 pm Falkoner Post #2



This would also require thousands of triggers, is that what you are looking for?



None.

Jun 15 2008, 11:03 pm Brontobyte Post #3



Quote from Falkoner
This would also require thousands of triggers, is that what you are looking for?

Well not exactly. If its just "Death of bla bla -> Center location bla bla at bla bla" then yeah. If its like math and stuff, then forget about it.



None.

Jun 15 2008, 11:19 pm Impeached Post #4



You can't center a location on a click without EUD actions, though. You'd need a location XY grid or some sort of XY grid, then by the XY range of the mouse (maybe 1 tile specific) you would center a location at XY in your XY grid.

Could easily be done with a trigger duplicator, though tons of triggers do make huge maps.



None.

Jun 15 2008, 11:31 pm Brontobyte Post #5



Quote from Impeached
You can't center a location on a click without EUD actions, though. You'd need a location XY grid or some sort of XY grid, then by the XY range of the mouse (maybe 1 tile specific) you would center a location at XY in your XY grid.

Could easily be done with a trigger duplicator, though tons of triggers do make huge maps.

I already have the 200 triggers for the mouse position, tile by tile. I was going to make a better version of Mouse Defense but never got around to it, because of bugs. I could just throw something together but I wanted to implicate things that didn't work correctly. Can I do it with a mobile grid? Something like what FRAGS uses but just to center the telleported units location?



None.

Jun 16 2008, 12:09 am Twitch Post #6



Quote from Impeached
You can't center a location on a click without EUD actions, though. You'd need a location XY grid or some sort of XY grid, then by the XY range of the mouse (maybe 1 tile specific) you would center a location at XY in your XY grid.

Could easily be done with a trigger duplicator, though tons of triggers do make huge maps.
No you do not need EUD's at all for detecting clicks.All you need is the FRAGS system.



None.

Jun 16 2008, 12:11 am Impeached Post #7



Twitch, this topic is about not using FRAGS, but EUD.



None.

Jun 16 2008, 12:43 am Brontobyte Post #8



Quote from Twitch
Quote from Impeached
You can't center a location on a click without EUD actions, though. You'd need a location XY grid or some sort of XY grid, then by the XY range of the mouse (maybe 1 tile specific) you would center a location at XY in your XY grid.

Could easily be done with a trigger duplicator, though tons of triggers do make huge maps.
No you do not need EUD's at all for detecting clicks.All you need is the FRAGS system.

Can you detect the click sprite then?



None.

Jun 16 2008, 12:52 am O)FaRTy1billion[MM] Post #9

👻 👾 👽 💪

You could, but there is no telling where it would be in memory.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jun 16 2008, 1:03 am Brontobyte Post #10



Quote from O)FaRTy1billion[MM]
You could, but there is no telling where it would be in memory.

Aw! I was hoping someone would already have it... couldn't you just keep on clicking in the top left corner (0,0) and finding that value? I noticed with the mouse position, it was for the current screen. It did not matter where your screen was on the map.



None.

Jun 16 2008, 3:11 am O)FaRTy1billion[MM] Post #11

👻 👾 👽 💪

My point was that it probably just goes into whatever image slot that is available, meaning there is no way to find it.
You could find a units' order target... except that it is in the format of Y*65536+X, so you can only read a specific Y coordinate and a range of X coordinates. To read one whole 32x32 tile, you'd need 32 triggers.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jun 16 2008, 4:08 am Impeached Post #12



Could you not do "At Least XY", "At Most XY" to detect a range?



None.

Jun 16 2008, 4:35 am ZzEzZ Post #13



not for wat farty was talkin about, cuz notice its Y*65536 then + X... so you could could easily set a little range for the X, but since Y is multiplied, the numbers would vary by too much and itd fuk u up
(i think, right farty? lol)



None.

Jun 16 2008, 4:42 am O)FaRTy1billion[MM] Post #14

👻 👾 👽 💪

Quote from Impeached
Could you not do "At Least XY", "At Most XY" to detect a range?
Quote from ZzEzZ
not for wat farty was talkin about, cuz notice its Y*65536 then + X... so you could could easily set a little range for the X, but since Y is multiplied, the numbers would vary by too much and itd fuk u up
(i think, right farty? lol)

Quote from O)FaRTy1billion[MM]
... so you can only read a specific Y coordinate and a range of X coordinates. To read one whole 32x32 tile, you'd need 32 triggers.
You could read like from (0,32) to (32,32), but not from (32,0) to (32,32).



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jun 16 2008, 11:06 am Brontobyte Post #15



Lethal_Illusion told me a good idea. He stated that I just use a 1x1 preplaced grid of locations (1 location = 1 tile) and detect when a unit is moved. I would then figure out that the unit has been moved and then would just move it towards the mouse position. Now I noticed that the mouse position eud's are not instant. That would mean that you could move the unit, detect that it had moved and still move it to an incorrect location, via just moving the mouse after you have ordered the unit.



None.

Jun 16 2008, 7:23 pm O)FaRTy1billion[MM] Post #16

👻 👾 👽 💪

How is mouse position not instant? It is the coordinates that the cursor is being drawn at.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Jun 17 2008, 2:39 am Brontobyte Post #17



Quote from O)FaRTy1billion[MM]
How is mouse position not instant? It is the coordinates that the cursor is being drawn at.

Well if its in a trigger, even with hyper triggers, it is not instantaneous. The time I am talking about is if you move your mouse around the screen, it will skip some of the boxes you moved in.



None.

Jun 17 2008, 3:07 am O)FaRTy1billion[MM] Post #18

👻 👾 👽 💪

Oh. Well that is not from it being slow, it is because the mouse actually jumps like that.



TinyMap2 - Latest in map compression! ( 7/09/14 - New build! )
EUD Action Enabler - Lightweight EUD/EPD support! (ChaosLauncher/MPQDraft support!)
EUDDB - topic - Help out by adding your EUDs! Or Submit reference files in the References tab!
MapSketch - New image->map generator!
EUDTrig - topic - Quickly and easily convert offsets to EUDs! (extended players supported)
SC2 Map Texture Mask Importer/Exporter - Edit texture placement in an image editor!
\:farty\: This page has been viewed [img]http://farty1billion.dyndns.org/Clicky.php?img.gif[/img] times!

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are some real members mixed in those latter pages, but the *vast* majority are spam accounts
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- there are almost 3k pages
[2024-4-14. : 9:21 pm]
O)FaRTy1billion[MM] -- the real members stop around page 250
[2024-4-14. : 9:20 pm]
O)FaRTy1billion[MM] -- look at the members list
[2024-4-12. : 12:52 pm]
Oh_Man -- da real donwano
da real donwano shouted: This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
it's pretty common
[2024-4-11. : 9:53 pm]
da real donwano -- This is the first time I've seen spam bots like this on SEN. But then again, for the last 15 years I haven't been very active.
[2024-4-11. : 4:18 pm]
IlyaSnopchenko -- still better than "Pakistani hookers in Sharjah" that I've seen advertised in another forum
[2024-4-11. : 4:07 pm]
Ultraviolet -- These guys are hella persistent
[2024-4-11. : 3:29 pm]
Vrael -- You know, the outdoors is overrated. Got any indoor gym and fitness equipment?
[2024-4-10. : 8:11 am]
Sylph-Of-Space -- Hello!
Please log in to shout.


Members Online: Oh_Man, Roy