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.
[06:51 pm]
Vrael -- It is, and I could definitely use a company with a commitment to flexibility, quality, and customer satisfaction to provide effective solutions to dampness and humidity in my urban environment.
[06:50 pm]
NudeRaider -- Vrael
Vrael shouted: Idk, I was looking more for a dehumidifer company which maybe stands out as a beacon of relief amidst damp and unpredictable climates of bustling metropolises. Not sure Amazon qualifies
sounds like moisture control is often a pressing concern in your city
[06:50 pm]
Vrael -- Maybe here on the StarEdit Network I could look through the Forums for some Introductions to people who care about the Topics of Dehumidifiers and Carpet Cleaning?
[06:49 pm]
Vrael -- Perhaps even here I on the StarEdit Network I could look for some Introductions.
[06:48 pm]
Vrael -- On this Topic, I could definitely use some Introductions.
[06:48 pm]
Vrael -- Perhaps that utilizes cutting-edge technology and eco-friendly cleaning products?
[06:47 pm]
Vrael -- Do you know anyone with a deep understanding of the unique characteristics of your carpets, ensuring they receive the specialized care they deserve?
[06:45 pm]
NudeRaider -- Vrael
Vrael shouted: I've also recently becoming interested in Carpet Cleaning, but I'd like to find someone with a reputation for unparalleled quality and attention to detail.
beats me, but I'd make sure to pick the epitome of excellence and nothing less.
[06:41 pm]
Vrael -- It seems like I may need Introductions to multiple companies for the Topics that I care deeply about, even as early as Today, 6:03 am.
[06:38 pm]
Vrael -- I need a go-to solution and someone who understands that Carpets are more than just decorative elements in my home.
Please log in to shout.


Members Online: Ultraviolet, RIVE