Staredit Network > Forums > SC1 UMS Mapmaking Assistance > Topic: Inverted Locations on a Fenix
Inverted Locations on a Fenix
Jun 10 2009, 9:38 pm
By: Cinolt  

Jun 10 2009, 9:38 pm Cinolt Post #1



I'm trying to detect if a Fenix stopped using an inverted location. I made the inverted location the same size as the Fenix's green square, and if a Fenix isn't in the location, it moves the location ontop of the Fenix. However the map always thinks the Fenix is out of the location.

I even verified they were the same size using paint, they are both 23x19 pixels.



Anything I'm doing wrong?

Attachments:
invtest.scx
Hits: 4 Size: 51.38kb



None.

Jun 10 2009, 10:55 pm Falkoner Post #2



It looks like you have the location flipped, for some reason DatEdit keeps crashing on me, so I can't be certain, try swapping the width and height.



None.

Jun 10 2009, 11:19 pm Roy Post #3

An artist's depiction of an Extended Unit Death

I wouldn't trust the green box the editor gives you. I made an inverted location fitted for a Zergling and it was quite different from the size shown by SCMD2.

Just tweak the box. Make it small enough so the unit is detected, and then increase the horizontal size to fit, followed by the vertical. It's a bit laborious, but worth it if you want every pixel to count.




Jun 11 2009, 12:58 am rockz Post #4

ᴄʜᴇᴇsᴇ ɪᴛ!

I would trust the green box the editor gives you. I wouldn't trust that the center is in the middle of that green box (it isn't). Locations are ALWAYS centered on the center of the unit. Location's centers are symmetrical. Most units are not.
Look in datedit:
Left 11
Right 11
Up 5
Down 13
That means the center is horizontally symmetrical, but is 5 from the top, 13 from the bottom. Make a 23x11 location. Then when the unit moves perfectly UP, it will take 8 pixels for the unit to not be there anymore. Any other way and it will work properly. If you want it to be perfect, don't use fenix, or use mobile grid division.



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

Jun 11 2009, 1:46 am Cinolt Post #5



Quote from Falkoner
It looks like you have the location flipped, for some reason DatEdit keeps crashing on me, so I can't be certain, try swapping the width and height.

It's not flipped width and height, as you can compare in the two pictures.

Quote from Roy
I wouldn't trust the green box the editor gives you. I made an inverted location fitted for a Zergling and it was quite different from the size shown by SCMD2.

Just tweak the box. Make it small enough so the unit is detected, and then increase the horizontal size to fit, followed by the vertical. It's a bit laborious, but worth it if you want every pixel to count.

I will try this method later.

Quote from name:Zachary Taylor
I would trust the green box the editor gives you. I wouldn't trust that the center is in the middle of that green box (it isn't). Locations are ALWAYS centered on the center of the unit. Location's centers are symmetrical. Most units are not.
Look in datedit:
Left 11
Right 11
Up 5
Down 13
That means the center is horizontally symmetrical, but is 5 from the top, 13 from the bottom. Make a 23x11 location. Then when the unit moves perfectly UP, it will take 8 pixels for the unit to not be there anymore. Any other way and it will work properly. If you want it to be perfect, don't use fenix, or use mobile grid division.

Just curious, where did you get 23x11 from? I tried it and it looks nothing like the green square, it's more long and thin. Doesn't work when I tested it, even when I didn't go perfectly up.

Edit: After a bit of testing, I've found that a 12x11 location works fairly well with Fenix, I dunno if it's exact or not, but it works well enough for me. Haven't had any problems with it yet.

Post has been edited 3 time(s), last time on Jun 11 2009, 3:14 am by yoonkwun.



None.

Jun 11 2009, 3:22 am rockz Post #6

ᴄʜᴇᴇsᴇ ɪᴛ!

That means you did it wrong.

Try this location:
Left 121
Top 110
Right 100
Bottom 100

I got 23 from min(left,right)*2+1. I got 11 from min(top,bottom)*2+1. Turns out you can actually have it 12, since it's top limited.



"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.
[12:52 pm]
Vrael -- if you're gonna link that shit at least link some quality shit: https://www.youtube.com/watch?v=uUV3KvnvT-w
[11:17 am]
Zycorax -- :wob:
[2024-4-27. : 9:38 pm]
NudeRaider -- Ultraviolet
Ultraviolet shouted: NudeRaider sing it brother
trust me, you don't wanna hear that. I defer that to the pros.
[2024-4-27. : 7:56 pm]
Ultraviolet -- NudeRaider
NudeRaider shouted: "War nie wirklich weg" 🎵
sing it brother
[2024-4-27. : 6:24 pm]
NudeRaider -- "War nie wirklich weg" 🎵
[2024-4-27. : 3:33 pm]
O)FaRTy1billion[MM] -- o sen is back
[2024-4-27. : 1:53 am]
Ultraviolet -- :lol:
[2024-4-26. : 6: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.
[2024-4-26. : 6: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
[2024-4-26. : 6: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?
Please log in to shout.


Members Online: Roy, Vrael, Dem0n, NudeRaider