Math + Physics + StarCraft = Zoan
When I test this map, the inverted location is not being centered. There is only one trigger (as well as some hyper triggers) which goes as follows:
Player 1
Bring("Current Player", "Protoss Dark Templar", "Location 4", Exactly, 0);
Move Location("Current Player", "Protoss Dark Templar", "Anywhere", "Location 4");
Display Text Message(Always Display, "!!!!");
Preserve Trigger();
When I step off of the inverted location, it constantly spams "!!!!," meaning the location is not being centered.
HELP! Why is it doing this?? ;_;
Map is attached
Attachments:
An artist's depiction of an Extended Unit Death
It's a matter of precision when centering the location: because you have the inverted location so precise, there's a chance that the center location will put it at a pixel offset that leaves it not fully encapsulating the Dark Templar. If you test it a little bit more, you'll notice that it will stop spamming the message if you position the Dark Templar just right.
You can fix the issue by slightly reducing the size of the inverted location.
Edit: Changing the bottom boundary from "7744" to "7747" seems to fix the issue. This does unfortunately make vertical movement less sensitive than horizontal movement, of course.
Post has been edited 1 time(s), last time on Jun 29 2015, 2:27 am by Roy.
Math + Physics + StarCraft = Zoan
You can fix the issue by slightly reducing the size of the inverted location.
Edit: Changing the bottom boundary from "7744" to "7747" seems to fix the issue. This does unfortunately make vertical movement less sensitive than horizontal movement, of course.
Ahhh, thank you!
Dark Templar have a really short up direction. The "List of Units" page on the wiki used to have all this information, but it looks like it got deleted in the wiki migration. You can look this information up in datedit. Inverted locations do not have a true center, but an average center. Dark templars are 30 units tall, but I think it's 6 pixels up and 13 pixels down, 12 pixels left, and 11 pixels right. So you need to use a 24x14 inverted location (or a little smaller) for it to fit properly. Walking up will be slower than walking left, right, or down, since you need to walk a full 16 pixels (4 frames) before the dark templar is out of the location.
Another problem happens on Lurkers, which are 15 left and 16 right. This is contrary to other 32x32 units like dragoons which are 16 left, 15 right, so centering a 32x32 inverted location will work on a dragoon but not on a lurker.
Other units like firebats, marines, and ghosts also have this issue, but to a lesser degree. DTs are the worst by far, but Firebats are also pretty bad.
"Parliamentary inquiry, Mr. Chairman - do we have to call the Gentleman a gentleman if he's not one?"
This is something that could be fixed through modding if you're open to including one for your project.