Ah, this calls for a clarification, making sure we are on the same page!
Indeed, it only noticeably affects image at 100%, native zoom level, which is how ships tend to be displayed in the refit screen, for example.
And the non-whole weapon coordinate will cause the same issue too, also true!
Right so, a wolf with a rift lance at 100% zoom (from a clean, fresh ss install just to be completely sure nothing funny is going on
)
Two rift lances infact, a turret which renders fine, and the hardpoint which does, well, not.
Weapon slot coords on a wolf are nice and whole, no issue there.
Now, for the weapon itself the center coordinate appears to be decided by sprite's canvas size, so let's take a look!
Rift lance turret dimensions are 42x42, and the center for turrets... is in the center, nice and even, all is well.
The hardpoint is 21x34, with the center for hardpoints shifted by a quarter vertically, thats no good on both dimensions!
Cropping the hardpoint's sprite canvas to, lets say 22x36 without resizing or stretching the gun itself (and same adjustment for the glow sprite!)
Does the trick!
Attached is an utility mod with the above edit applied for several weapons, while enabled it will override vanilla sprites, for easy comparison.
Wow that was needlesly werbose, haha [attachment deleted by admin]