[Kovarex] [1.1.103]Reselecting rail blueprint content shifts global grid position

This subforum contains all the issues which we already resolved.
luziferius
Inserter
Inserter
Posts: 40
Joined: Thu Jun 01, 2017 12:59 pm
Contact:

[Kovarex] [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 45 times
factorio-current.log
(4.97 KiB) Downloaded 53 times
Last edited by luziferius on Tue Jan 30, 2024 1:31 pm, edited 2 times in total.
SoShootMe
Filter Inserter
Filter Inserter
Posts: 517
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: 40
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: 25
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 1318 times
Non-examples of problem blueprints (again all with odd grid position coordinates):
not_affected.png
not_affected.png (579.14 KiB) Viewed 1318 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.
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

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

Post by kovarex »

Hello, thanks for the report, and mainly to xykite for the minimal reproducer.
I fixed it for the first case in the reproducer (rail + rail signal), with an automated test to make sure this one configuration will not fail.
The change I made is logical, and it will probably fix it for the rest of the cases, but I can't be 100% sure, so if other cases don't worn good, we will just add more edgcase-tests, so let me know if it happens in a different bug report.

TL;DR
Fixed for the version 2.0.9 (2.0.8 release is already in progress)
Jibbo
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Oct 24, 2024 6:11 am
Contact:

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

Post by Jibbo »

I am not sure if this is related, but I believe there is still an issue with global co-ords.

Steps to reproduce:

1) Make a rail blueprint with even size. i.e. w=100; h=100.
2) Make the grid position odd: x=1; y=1.
3) Make the absolute position odd: x=1; y=1.
4) Save the blueprint.
5) Open the blueprint.
6) Select new contents for the blueprint.
7) Save the blueprint.
8) Rails are re-adjusted to be aligned with even co-ords.

First blueprint:
0eNqlnNtu2zgQht9F11LB0/CQy75GESzsROsK60qGLGe3KPLu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Yh0wuruJqyMSxBzVumwnlMG2kPDyuVkgiA6JxME0T4jKwLRIQMNXTiRHlnB5nzII0hW+dalpQDqQV5lteWy2uKcA5IA+nVnC826UTE35vIaI05jdyYKREWbkexiYeJdRrILXXKS3mdY7RJL3eICBiC3/pLcQWQk1pgmQWYk1h5b+4LKYKf0Djm5KmpoTrLqQDYhuwtKzM0Jps3INFEtXEamibIzrhnC7JDBhrIkJQR/3tACQ0v+bHeLjiqihOLPGhr7gxxC8yMbVcQwduMBQ2atjFrmHJsrkbE0RpqKoh0izalGrxWG9DmrWK40GYc4oDQSOsMxSWmey+Lf8fP0l21+6JKmf8/l8d1032Z6P/1sfjeuGNNbNz2gxPH9mMV+/Hx6KadLRNOH4+v5sbGdZqh/TXvtjz9KVBZvdb8//Xc/q4IJgYyQUmr3/v4/apuadQ==
Jibbo
Manual Inserter
Manual Inserter
Posts: 2
Joined: Thu Oct 24, 2024 6:11 am
Contact:

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

Post by Jibbo »

Also, parameterazation appears to be broken for rail station names.
Post Reply

Return to “Resolved Problems and Bugs”