Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: EUD selection detection
EUD selection detection
Dec 3 2009, 9:41 pm
By: Wormer  

Dec 3 2009, 9:41 pm Wormer Post #1



Here is the questiion:
Can I easily detect the type of the selected unit?



Some.

Dec 3 2009, 9:56 pm Cinolt Post #2



I think it's only possible in a controlled environment where the Local IDs are known, then you'd just detect what Local ID was selected and know what type it is. If units are dying and being created all over the place and you're trying to detect those, I don't think there's a reliable method.

In multiplayer, that is.



None.

Dec 3 2009, 10:01 pm ClansAreForGays Post #3



Quote
Can I easily detect the type of the selected unit?
no




Dec 3 2009, 10:39 pm rockz Post #4

ᴄʜᴇᴇsᴇ ɪᴛ!

yes.
0x68C14C Currently selected unit ID
Not shared.
0x654889 also looks like it could be one as well, but it's a 1 byte deal, and is sandwiched between two other numbers which may or may not change.

Morphling can help more, since he did something along these lines.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Dec 4 2009, 12:50 am Morphling Post #5



Quote from rockz
yes.
0x68C14C Currently selected unit ID
Not shared.
0x654889 also looks like it could be one as well, but it's a 1 byte deal, and is sandwiched between two other numbers which may or may not change.

Morphling can help more, since he did something along these lines.
Quote from MorphLing
I found another method.

Memory(-13043, Exactly, 0);
This EUD detects when you select your own unit. (green selection circle)
Memory(-13043, Exactly, 1);
This EUD detects when you select an enemy. (red selection circle)
Memory(-13043, Exactly, 2);
This EUD detects when you select an ally or player 12. (yellow selection circle)

Memory(264058, Exactly, 0);
This EUD detects the currently selected unit number (Marine=0, Ghost=1, and so on)

You can't tell when you select a marine since the value is 0 when no unit is selected and like rockz said, it is only single player, but other than that it works fine.



None.

Dec 4 2009, 8:55 pm Wormer Post #6



Hrmmm...
Morphling, do you know what happens with the X value in Memory(-13043, Exactly, X) when
1. The selected unit dies, or goes out of vision.
2. Player selects several units.



Some.

Dec 4 2009, 9:29 pm rockz Post #7

ᴄʜᴇᴇsᴇ ɪᴛ!

1. don't know. You can figure this out pretty easily by looking at the memory.
2. can only be green

Edit: How did you get this Morphling?

I'm getting 0 consistently for selecting my unit(s), but when I select an enemy, I get 2 a lot of the time, or the value just doesn't change. 0x57d798 is the address I'm looking at, since that's 0x58a364 - 13043*4.

Post has been edited 1 time(s), last time on Dec 4 2009, 9:48 pm by rockz.



"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:56 am]
Ultraviolet -- I suppose we'll likely never know, but my guess would be that they already saw it operating successfully and there was no monetary incentive to finish the original work. And the dev cycle in old school Blizzard was so hectic, it's possible it just got forgotten about after the original game got released. Plus there's an element of existing MPQ files that were packaged with the original discs becoming outdated if they updated it. And it's not like they remade the original MPQs, they just made new ones for BW specifically
[04:26 am]
Oh_Man -- so that makes me think maybe the theory they are unfinished is not true and its a deliberate design decision, coz why not finish them wen ur making brood war?
[04:25 am]
Oh_Man -- the thing is thos buildings are from classic. that means they went ahead and made brood war without ever finishing the 'unfinished' buildings
[2026-6-20. : 6:15 pm]
Ultraviolet -- Yeah he's talked about a lot of that stuff in his casts before. It seems plausible. Especially knowing how Blizzard of yesteryear operated.
[2026-6-20. : 3:47 pm]
NudeRaider -- to clarify: couldn't recall the behavior for every single Protoss building but I was aware the disparity exists.
[2026-6-20. : 3:43 pm]
NudeRaider -- Contained nothing new for me. Didn't know all building's behavior, but very much all unit's. Also Terran balance whine - also nothing new :lol:
[2026-6-19. : 9:57 am]
Oh_Man -- makes me wonder if SEN knows anything about the topic
[2026-6-19. : 9:57 am]
Oh_Man -- artosis dropped pretty interesting vid: https://youtu.be/EqZHB8Blra4
[2026-6-18. : 5:01 pm]
Ultraviolet -- :wob:
[2026-6-17. : 6:15 am]
RexyRex -- :wob:
Please log in to shout.


Members Online: Prankenstein, Symmetry