[0.15.35] Non-square assemblers rotate strangely

Post your bugs and problems so we can fix them.

[0.15.35] Non-square assemblers rotate strangely

Postby Hexicube » Wed Oct 11, 2017 3:16 pm

There's a number of different things going on with assemblers and rotations, which become exposed when an attempt is made to create non-square ones:
  • The selection box never rotates
  • The collision box always rotates
  • The north sprite is always used for creating new assemblers without always-visible fluid boxes (however, an empty list of fluid boxes tricks it into using rotations)
  • An already placed assembler remembers the direction of the sprite that it got when it was placed, even if that is now impossible (such as when a mod updates)
The first two alone make it impossible to create a non-square assembling machine, since the selection box will be inaccurate for at least two of the four rotations.

One of the two should happen:
  • Collision boxes should never rotate, so that non-square assemblers act like rocket silos in that they have a fixed rotation
  • Selection boxes should always rotate and direction sprites should always be used, so that non-square assemblers can always rotate

The attached mod demonstrates the issue:
  • The battery charger machine is a non-square assembler (6x4)
  • Using an empty fluid box list it has been tricked into using rotation graphics, and the collision box also rotates, but the selection box does not
  • If the empty fluid box list is removed it only uses the north graphic, but the collision box still rotates
  • There is no way to disable collision rotation or enable selection rotation
Attachments
Hexi_Recharging_Batteries_0.1.0.zip
(263.35 KiB) Downloaded 3 times
Hexicube
Fast Inserter
Fast Inserter
 
Posts: 162
Joined: Wed Feb 24, 2016 9:50 pm

Return to Bug Reports

Who is online

Users browsing this forum: Google [Bot] and 3 guests