[Rseding91] [0.17.48] Filtering rails (and stations) out of blueprint results in broken exchange string

This subforum contains all the issues which we already resolved.
gleard
Burner Inserter
Burner Inserter
Posts: 10
Joined: Mon Jun 11, 2018 4:52 pm
Contact:

[Rseding91] [0.17.48] Filtering rails (and stations) out of blueprint results in broken exchange string

Post by gleard »

Steps to reproduce:
  1. Open a blueprint (or create a new one) that has some rails (and/or railroad stations) and also has some other entities with even size along at least one dimension.
  2. Filter out (or remove one by one) all rails (and stations) out of the blueprint.
  3. Click 'Export to string', then 'Copy', and 'Ok'. Close the blueprint (by pressing 'e' or elsewise).
  4. Open blueprint library. Click 'Import string'. Paste from buffer. Click 'Import'.
  5. Place a ghost with the resulting blueprint.
Result:
In the ghost from the resulting blueprint, all entities with even size along at least one dimension are shifted relative to their positions in the original blueprint (and also relative to their shown positions on the resulting blueprint). The shift is equal to -1 tile along dimension(s) along which the entities have even size (regardless of blueprint rotation). Some illustrations below.

Expected result:
The resulting blueprint working exactly like the original one, only without rails (as if they weren't there in the first place).


On the images, left to right: 1. arrangement from which original blueprint is taken (belts are placed as reference frame); 2. blueprint resulting from filtering out the rails, and exporting-importing the string; 3. ghost obtained by placing the resulting blueprint.
Image
Images with some other entities

Note: For splitters the behaviour is a bit different: after step 4, on resulting blueprint (when in the hand, but not on preview from inventory) the belt segments are shown shifted from under the splitting mechanism by -0.5 tiles in both directions. Not sure if this is a separate bug or not.
Image

Exchange string of the resulting (corrupted) blueprint with 4 splitters:
Exchange string of the blueprint taken from initial arrangement without the rails:


It seems quite probable that this bug is related to the fact that blueprints with rails are aligned to 2x2 grid, unlike all other blueprints (as mentioned here). However, I'm very interested to learn how exactly was it causing such behaviour, so I really hope that you would provide some brief explanation.
gleard
Burner Inserter
Burner Inserter
Posts: 10
Joined: Mon Jun 11, 2018 4:52 pm
Contact:

Re: [Rseding91] [0.17.48] Filtering rails (and stations) out of blueprint results in broken exchange string

Post by gleard »

This report seems to be about the same problem. Sorry that I didn't find it before posting. It's because I was searching for something related to rails as well as blueprints. Maybe these two should be merged.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14330
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [Rseding91] [0.17.48] Filtering rails (and stations) out of blueprint results in broken exchange string

Post by Rseding91 »

Thanks for the report. It's now fixed for the next version of 0.17.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”