Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: How EXACTLY does Starcraft determine if...
How EXACTLY does Starcraft determine if...
Sep 18 2009, 6:39 pm
By: LazyCoder  

Sep 18 2009, 6:39 pm LazyCoder Post #1



Does it go by if the center point of a unit is within the rectangle? Or does each unit have a bounding rectangle or oval that Starcraft checks against to see if any part of that rectangle or oval is in the location? Or does Starcraft perform a per pixel search to see if ANY part of it is in the location (not bloody likely).

I need to know this so I can be very specific about a location size. I need to kill some units if they're keeping a building from being spawned, but ONLY if they're keeping it from being spawned. I'm trying to avoid a situation where there are 2+ zerglings, one of which is blocking the building, and another that's not but the location is too big so it kills it anyways.



None.

Sep 18 2009, 6:47 pm Kaias Post #2



http://www.staredit.net/wiki/Inverted_Locations

"A unit is registered as inside a location if any part of the unit is right of the location's left border, left of the right border, below the top border and above the bottom border. Under normal circumstances, of course, this creates a rectangular area that units can enter."

The article is on inverted locations, but it makes the idea clear. Each unit has a collision size, a rectangle, that counts as its area. You can look at this area in Scmdraft by enabling debug and checking show unit collision sizes under the debug tab.



None.

Sep 18 2009, 11:24 pm rockz Post #3

ᴄʜᴇᴇsᴇ ɪᴛ!

In SCMDraft, the right and bottom lines actually include themselves. For example, a square location made in SCMDraft (or staredit for that matter) on a 32x32 grid makes a 33x33 pixel location as read by starcraft.



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

Sep 19 2009, 2:01 am Falkoner Post #4



I'm always mad when people say a 0x0 location, IT'S A FRIGGIN' 1X1 PIXEL!

Post has been edited 1 time(s), last time on Sep 19 2009, 4:02 am by Kaias. Reason: removed portion responding to deleted post



None.

Sep 19 2009, 4:04 am Lethal_Illusion Post #5



Quote from Falkoner
I'm always mad when people say a 0x0 location, IT'S A FRIGGIN' 1X1 PIXEL!
I think they're referring to it as a 0x0 square location. A 0x0 square location is the same as a 1x1 pixel location.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[06:02 pm]
Zoan -- of course it isn't full understanding. You could ask "is the mechanism by which this counterexample blows up the ONLY mechanism possible for an initial configuration to blow up?"
[05:48 pm]
Zoan -- ppl do it all the time in PDEs
[05:47 pm]
Zoan -- Heinermann
Heinermann shouted: it also didn't solve that problem but hey as long as the investors are pleased
Constructing a counterexample is answering the question: "Is Navier Stokes well posed?" in the negative
[05:44 pm]
NudeRaider -- I only heard about it, didn't any news article, so what did it do then?
[05:43 pm]
Heinermann -- it also didn't solve that problem but hey as long as the investors are pleased
[05:39 pm]
NudeRaider -- I have no idea tbh. All I know no human was ever able to solve it, but there's at least a few that beat portal ;)
[05:32 pm]
Zoan -- Navier Stokes is not that esoteric I thought
[04:32 pm]
NudeRaider -- Zoan
Zoan shouted: I find it kind of sad that on the same day it was announced AI solved Navier Stokes, it was also announced AI beat Portal, and there's a good deal of people who don't know which is more impressive
you find it sad not everyone is a math nerd?
[03:25 pm]
NudeRaider -- (and yes, I capitalized that correctly :ego:)
[03:24 pm]
NudeRaider -- Symmetry
Symmetry shouted: Hi not I'm dad
Hi dad, I'm nude
Please log in to shout.


Members Online: Moose, DarkenedFantasies