[1.1.103]Reselecting rail blueprint content shifts global grid position

Post your bugs and problems so we can fix them.
Post Reply
luziferius
Inserter
Inserter
Posts: 35
Joined: Thu Jun 01, 2017 12:59 pm
Contact:

[1.1.103]Reselecting rail blueprint content shifts global grid position

Post 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 17 times
factorio-current.log
(4.97 KiB) Downloaded 18 times
Last edited by luziferius on Tue Jan 30, 2024 1:31 pm, edited 2 times in total.

SoShootMe
Filter Inserter
Filter Inserter
Posts: 476
Joined: Mon Aug 03, 2020 4:16 pm
Contact:

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

Post 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.

luziferius
Inserter
Inserter
Posts: 35
Joined: Thu Jun 01, 2017 12:59 pm
Contact:

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

Post 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" :|

xykite
Inserter
Inserter
Posts: 24
Joined: Thu Jul 30, 2020 9:39 pm
Contact:

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

Post 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 221 times
Non-examples of problem blueprints (again all with odd grid position coordinates):
not_affected.png
not_affected.png (579.14 KiB) Viewed 221 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.

Post Reply

Return to “Bug Reports”