Something weird with the size circle

Got questions about Shipmaker? Get answers here. Please read the stickied topics first!

Moderators: th15, Moderators

Post Reply
Rugdumph
Commander
Commander
Posts: 135
Joined: Fri Dec 04, 2009 6:21 am
Location: UK

Something weird with the size circle

Post by Rugdumph »

I've just noticed whilst peacefully building away, that the circle that dictates the size (and hence threat etc for any metagamers) was at nearest, still a good 20 pixels away from any part of the ship, like so...
Image

I can't think of any reason for this, there are no obscenely big section selection boxes which would invisibly extent the size either. More of a puzzlement than a problem but any answer would be enlightening.
"Damn hippies with their slippers and mesh bags looking for "adventure" or friggin' nerds who hasn't held anything but a microscope in their girly little hands. Such posers don't last long here." - Wolf (S.T.A.L.K.E.R.)
Droid
Vice Admiral
Vice Admiral
Posts: 1173
Joined: Mon Jan 07, 2008 2:07 pm
Location: Canada

Post by Droid »

I think it counts the longest dimension of the sprite, and treats it as a square (or something like that).
if you rotate it, the corner sticks out and extends the size.
Anyhow, it's not perfect.
jwa8402
Admiral
Admiral
Posts: 1988
Joined: Tue Feb 26, 2008 9:09 am

Post by jwa8402 »

Plus even if you delete all sections, the size of the core is still 20 so maybe it adds it on top of that.
User avatar
Arcalane
Pseudofeline Overlord
Posts: 4034
Joined: Thu Sep 13, 2007 10:37 am
Location: UK

Post by Arcalane »

jwa8402 wrote:Plus even if you delete all sections, the size of the core is still 20 so maybe it adds it on top of that.
That's a stupid assumption. :?

Furthermore:

Image

It's possible that there's a slight colour error for one of the custom sections used there. The game automatically calculates simple hitboxes based off the colour of the bottom left corner of the sprite compared to other colours. If the bottom left pixel's colour is 0,0,0, then only a 0,0,0 pixel is treated as background. Even 1,1,1 counts as part of the section.

That's the main thing I can think of that might cause it. Alternately it might be a minor hiccup in the size calc - try moving one of the sections near the edge a bit and see if it fixes itself.

With a little testing, I believe it is somehow related to the rotation of the Kae_gnr-sw79 you're using on the ringtips. Not sure exactly why.
Rugdumph
Commander
Commander
Posts: 135
Joined: Fri Dec 04, 2009 6:21 am
Location: UK

Post by Rugdumph »

Hmm i think you're right, since if i add more sections outwards, the circle forms perfectly, but deleting them again just causes the previous problem to return. Oh well it's all the fun of ship building though isn't it?
"Damn hippies with their slippers and mesh bags looking for "adventure" or friggin' nerds who hasn't held anything but a microscope in their girly little hands. Such posers don't last long here." - Wolf (S.T.A.L.K.E.R.)
Droid
Vice Admiral
Vice Admiral
Posts: 1173
Joined: Mon Jan 07, 2008 2:07 pm
Location: Canada

Post by Droid »

I'm pretty sure that it's rotating sections that messes it up.
Kaelis
Moderator
Posts: 1590
Joined: Fri Dec 14, 2007 4:46 am

Post by Kaelis »

Every section sprite has an axis aligned bounding box (ie the box rotates when you rotate the sections). The bounding box takes scaling into account. Ship size is simply the furthest (from the ship core) corner from all section bounding boxes.
Post Reply