Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Unit coordinate detection
Unit coordinate detection
Jan 10 2013, 6:19 am
By: Leeroy_Jenkins  

Jan 10 2013, 6:19 am Leeroy_Jenkins Post #1



Hello all, I was hoping someone would be able to give me a head-start towards tracking a unit's coordinates through euds. I want to eliminate "locations" to detect where the main hero is, as I have run in to location limits (and unit limits for other methods of doing this). I imagine that for each "location" I would have 4 EUD conditions, "at leasts" for the left and top bounds of the "location", and "at mosts" for the right and bottom bounds. I need help in determining what condition those would be, and then how to convert location coordinates into the memory values.

Edit: I should also mention the unit's index is 1594



None.

Jan 10 2013, 11:54 am Kaias Post #2



For the memory condition use player 27940 for X coordinate and player 27941 for the Y coordinate (for index 1594). The values you give it should be *256 the coordinate you want.

Or you could use Roy's EUD Generator, and just input the index and range of values. Or you could let Oreo do it for you (a little late in development for that though).

Post has been edited 2 time(s), last time on Jan 10 2013, 11:59 am by Kaias.



None.

Jan 10 2013, 12:06 pm NudeRaider Post #3

We can't explain the universe, just describe it; and we don't know whether our theories are true, we just know they're not wrong. >Harald Lesch

Quote from Kaias
Or you could let Oreo do it for you (a little late in development for that though).
Couldn't he make a new map with these triggers using Oreo and then copy it over?

Worst thing that could happen he has to rename a dc, right?




Jan 10 2013, 2:22 pm Roy Post #4

An artist's depiction of an Extended Unit Death

I might be biased, but I'd recommend EUDGen because it's fast and easy for what you're doing. You'll have to do each trigger individually, of course, but it will let you enter all four coordinates at the same time.






Jan 10 2013, 8:35 pm Leeroy_Jenkins Post #5



Thanks for the help Kaias that's what I was looking for. But thanks even more Roy I didn't know about this program



None.

Jan 10 2013, 10:23 pm Kaias Post #6



Quote from NudeRaider
Quote from Kaias
Or you could let Oreo do it for you (a little late in development for that though).
Couldn't he make a new map with these triggers using Oreo and then copy it over?

Worst thing that could happen he has to rename a dc, right?
Yes, but Oreo works best when you make the entire map with it. This is because Oreo does resource management for you- if you mix it with regularly made triggers then you have to manually tell Oreo what resources it isn't allowed to use. When you create a deathcounter in Oreo, you don't actually know which unit/player the deathcounter uses, because ideally there's no reason to. Of course, you could manually tell it which unit/player to use.

Roy's EUD gen is the best option here. If, however, Leeroy wanted to load a couple deathcounters with the x and y coordinates of the unit, then I could easily generate it for him with Oreo. The advantage of doing that is you can then compare the x and y position against other deathcounter coordinates.



None.

Jan 11 2013, 1:11 am Leeroy_Jenkins Post #7



I noticed that irridate is not part of the unit status options in your program Roy, is this possible to detect?



None.

Jan 11 2013, 1:20 am Roy Post #8

An artist's depiction of an Extended Unit Death

Yes, it is.

Quote from Source
+0x112 - WORD wDMatrixDamage
+0x114 - BYTE bDMatrixTimer
+0x115 - BYTE bStimTimer
+0x116 - BYTE bEnsnareTimer
+0x117 - BTYE bLockdownTimer
+0x118 - BYTE bIrradiateTimer
+0x119 - BYTE bStatisTimer
+0x11A - BYTE bPlagueTimer
+0x11B - BYTE bIsUnderStorm
It's the first byte after the Matrix/Stim/Ensnare/Lockdown block. Just add one to the player number on the Defensive Matrix generated trigger (e.g., if you're using Index 0, change "19094" to "19095").




Jan 11 2013, 4:56 am Leeroy_Jenkins Post #9



Thanks!



None.

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: Roy, Vrael, NudeRaider