Page 1 of 1

[kovarex] [2.0.11] Blueprint, selecting new contents causes off by one for rails.

Posted: Sun Oct 27, 2024 3:32 pm
by rupsbant
Expected behaviour: When selecting new contents for a blueprint, the blueprint should paste as selected.

Reproduction:
1) Make a blueprint with a rail and a roboport directly to the right of the rail.
2) Make a blueprint and set snap to all odd values. (e.g. 1,1,1,1)
3) Save the blueprint. (When pasting it works as expected.)
4) Edit the blueprint and select new contents
5) Select exactly the same contents.
6) Save the blueprint
7) Try to paste and see the rail and the roboport overlap.

The bug is not sensitive to it being an actual roboport, any general object can be used. It is sensitive to setting all even 'Snap to grid' values.
Screenshot 2024-10-27 161519.png
Screenshot 2024-10-27 161519.png (297.71 KiB) Viewed 398 times
Screen Recording 2024-10-27 162026.mp4
(18.65 MiB) Downloaded 10 times

Ref.: 117529

Re: [kovarex] [2.0.11] Blueprint, selecting new contents causes off by one for rails.

Posted: Mon Nov 11, 2024 1:13 pm
by kovarex
Hello, thank you for the report, this was now fixed for a next release.
(I made a list of test cases of the reassign, as it is a bit tricky, and I'm adding more and more cases like this to it, so it should not ever re-appear)