Page 1 of 1

[1.1.103]Reselecting rail blueprint content shifts global grid position

Posted: Tue Jan 30, 2024 12:41 pm
by luziferius
Re-selecting the content of some rail blueprints shifts the global grid set in the blueprint by 2 tiles (can be X, Y, or both). This change even persists when cancelling the edit via ESC or the [X] button in the blueprint editor window.

Reproduction steps:
  1. Have an affected blueprint (attached)
  2. Place it in some empty space
  3. Right click the blueprint
  4. Click the blue "Select new contents" button
  5. Drag a selection rectangle across the entire build, and nothing else
  6. Observe that a "Grid position" value has changed by 2
  7. Cancel Editing (Click the [X] button in the window decoration or hit ESC)
  8. Either try to place the blueprint again, or right click to open the BP editor
  9. Observe that the "Grid position" change was actually saved, even though editing was cancelled.
I expect that re-selecting the content of a blueprint does not alter the grid parameters in any way. It obstructs editing, especially when the edit is just some combinator value. It also does not happen with all blueprints, just some.

Screen capture
This blueprint is affected by this issue.

Map used to show the issue in the linked screen capture:
Blueprint shift.zip
(2.48 MiB) Downloaded 18 times
factorio-current.log
(4.97 KiB) Downloaded 18 times

Re: [1.1.103]Reselecting rail blueprint shifts global grid position, persists after cancelling edit

Posted: Tue Jan 30, 2024 1:17 pm
by SoShootMe
luziferius wrote:
Tue Jan 30, 2024 12:41 pm
Re-selecting the content of some rail blueprints shifts the global grid set in the blueprint by 2 tiles (can be X, Y, or both). This change even persists when cancelling the edit via ESC or the [X] button in the blueprint editor window.
The second part is a duplicate of [0.18.38] "Select new contents for the blueprint" saves blueprint directly after new selection.

Re: [1.1.103]Reselecting rail blueprint content shifts global grid position, persists after cancelling edit

Posted: Tue Jan 30, 2024 1:29 pm
by luziferius
Thanks.
I guess, that makes the second part of the issue a feature request to rename the display text of the blue button to something like "Reselect content and save" :|

Re: [1.1.103]Reselecting rail blueprint content shifts global grid position

Posted: Sun Mar 10, 2024 4:54 am
by xykite
This happens to me sometimes (1.1.104).

Best guess at the condition to trigger: The grid position coords must be odd, and the horizontal distance from the leftmost tile/entity to the leftmost rail entity must be odd. Similarly for topmost.

So in your posted blueprint, I think it's the topmost signal that's causing the problem.

Examples of problem blueprints (all with odd grid position coordinates). The furnace one shows the alignment problem twice.
affected.png
affected.png (904.41 KiB) Viewed 265 times
Non-examples of problem blueprints (again all with odd grid position coordinates):
not_affected.png
not_affected.png (579.14 KiB) Viewed 265 times
The fourth (single diagonal) rail seems to occur as both an example and a non-example, however the ghosts below show how the bounding boxes are different.