[kovarex] Blueprint unexpectedly shifts when reselecting content

This subforum contains all the issues which we already resolved.
drmason13
Inserter
Inserter
Posts: 37
Joined: Sat Apr 16, 2016 1:47 pm
Contact:

[kovarex] Blueprint unexpectedly shifts when reselecting content

Post 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 448 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 448 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 448 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.
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: [kovarex] Blueprint unexpectedly shifts when reselecting content

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

Return to “Resolved Problems and Bugs”