Page 1 of 1

[kovarex] Blueprint unexpectedly shifts when reselecting content

Posted: Wed Oct 30, 2024 7:26 pm
by drmason13
For some reason selecting new blueprint contents for a blueprint that has an absolute grid will destroy your offsets. Especially when rails are involved.

I am raising a bug report although it doesn't feel like a new bug in Space Age.

As an example/demo:
Good offsets
factorio-blueprint-good-offsets.png
factorio-blueprint-good-offsets.png (134.49 KiB) Viewed 478 times
If you then simply click the blue plus to select new blueprint contents and select the exact same objects, you end up with this:

Bad offsets
factorio-blueprint-bad-offsets.png
factorio-blueprint-bad-offsets.png (134.87 KiB) Viewed 478 times
(I want the big power pole in the middle, not off by 1)


To fix this and recreate the original offsets I must:
  • unselect `Snap to Grid`
  • select new contents for the blueprint
  • reselect snap to grid
  • enter the offsets again manually
The offsets are listed as being the same, but they result in the center of the blueprint (the red flag) being in a different place. By my eye, off by 1 tile south and 1 tile west.

I have the following vanilla mods enabled:
Base mod 2.0.12
Elevated Rails 2.0.12
Quality 2.0.12
Sapce Age 2.0.12

I have reproduced this issue with and without the following non-vanilla mods enabled:
Editor Extensions 2.3.0
Factorio Library 0.15.0

Here's a blueprint string (good offsets)

Code: Select all

0eNqN0uFqgzAQB/B3uc9JWW2i1VcpY0Q93EFMJIllpfjuS+LqxlpKP0nw7nf/nF6h1TNOjkyA5greqIkHywdHfTp/QXMoGFzSY2GgWm/1HJCnuonMAE1wMzKYrKdA1nCHWgU64z9kn419JKizxkNzirNoMEqnAqNGhAacIg2pxPSYepZ3BmhChHHtyIfLh5nHFl1G/3TyH+83zG12uZPreLGTy8LunGJzfIjS8Bl4jnIvidUpHymHTWlp4KixC446PlmNjzI9kcTLeY5PFPniduRtO1XcDoOeXEye3x/TB6CAY7rT9pcwOKPzuUCWRS3qWorirapETPENc7DBHQ==
Here's a blueprint string (bad offsets)

Code: Select all

0eNqNkl1uwyAQhO+yzxA1/q19laiqsL2iK2GwAEeNIu5eIIlbNVGUJ1gx+82wcIZBrbhY0h76MzgtFu4Nl5amVH9DXxYMTmkJDMTgjFo98qRbSEvovV2RwWIceTKaW1TC0xH/QfaZsY8IGo120B+iF0ktVBJoMSP0YAUpSBI9YeoJHwxQ+wjGS0cuTp96nQe0Gfqnk195v2Fu3u2uvtiXuzoEdscpNo7zkSS/PM9R7klXzkNKuVEGkhwVjt7SyBej8FGmJ6Tq5TzdE0r94nSa23TiJg5/IhuT5/P39ADkcU532n4JgyNalwV1U3RV19VV8da2VRPCD3PXwR0=
The numerical grid positions and contents are identical, but the (bad offsets) blueprint is off center, and is not the same blueprint - one cannot place both blueprints in the same place:
factorio-blueprint-collision.png
factorio-blueprint-collision.png (853.44 KiB) Viewed 478 times
The bad blueprint string seems to be consistent each time I make it by reslecting the blueprint contents starting with the first blueprint string.

I'd expect that reselecting the blueprint contents with the same contents would result in the same blueprint, regardless of offsets.

Re: [kovarex] Blueprint unexpectedly shifts when reselecting content

Posted: Thu Oct 31, 2024 8:49 pm
by Loewchen
See 117529

Re: [kovarex] Blueprint unexpectedly shifts when reselecting content

Posted: Mon Nov 11, 2024 2:00 pm
by kovarex
Hello, this is now fixed for the next version, and this example is added to the list of things that is automatically tested, so it shouldn't break again in the future when I try to wiggle things aorund the logic.