[2.0.45] Inserter's settings not applied when copying

Bugs that are actually features.
User avatar
Hares
Filter Inserter
Filter Inserter
Posts: 785
Joined: Sat Oct 22, 2022 8:05 pm
Contact:

[2.0.45] Inserter's settings not applied when copying

Post by Hares »

Looks like "Set filters: false" + "Use filters: true" is ignored when pasting over inserters with the inverse setting. Reverse is not true.
Steps to Reproduce
  1. Deploy attached blueprint
  2. Copy the top-most inserter via Ctrl+C
  3. Paste settings over any other inserter in the chain via Ctrl+V


Expected:
  • Filer is changed
Actual:
  • Nothing happens
See Also
Click to expand the recording
Attachments
2025-04-27 17-25-28.mp4
(8.09 MiB) Downloaded 15 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3838
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.45] Inserter's settings not applied when copying

Post by boskid »

I am going to throw this to Not a bug.

Given that the source inserter has all the settings inside of control behavior at their default values and your blueprint that was created contains no wires, the inserter inside of blueprint is considered as "nothing interesting in the control behavior, ignore it" and so the inserter control behavior settings are not pasted. if there would be anything non default in the inserter control behavior (even if it would be the read hand content mode "hold") it would be considered as interesting in the blueprint and so blueprint placement would change the settings.

if you do direct copy settings between those entities, the settings are correctly copied because the source inserter has control behavior considered interesting due to wires, while the source inserter in the blueprint looses its control behavior due to default settings and no wires.

True pasting of your blueprint, to fully configure the inserter to the state you have in the blueprint would have to remove all the wires and get rid of the control behavior. Given that this feels more harmful than useful, current behavior has to deal with the trickery of pasting a blueprint with no control behavior on top of entity that already has wires and so the settings are not cleared because clearing those settings to default would also remove wires.
User avatar
Hares
Filter Inserter
Filter Inserter
Posts: 785
Joined: Sat Oct 22, 2022 8:05 pm
Contact:

Re: [2.0.45] Inserter's settings not applied when copying

Post by Hares »

boskid wrote: Sun Apr 27, 2025 3:18 pm [...]
That's... counter-intuitive. But I understan why it's done so.

This is 2nd time I'm writing this post because of 125699: Pressing Ctrl+Enter while typing a post can sometimes lose it.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3838
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.45] Inserter's settings not applied when copying

Post by boskid »

That is indeed quite unintuitive, but there is nothing doable about it. Your expectation is really based on a bit of information in the blueprint that would say if it was created from an entity with a control behavior. You expected "set filters" in the control behavior to be cleared because source inserter had it turned off, however your blueprint has the inserter at default settings and with no wires at this point so it is virtually the same as if you would create a blueprint of an inserter with no control behavior at all and placing it on top of existing inserter with control behavior. If an existing inserter would be configured with "enable/disable" and would have wires, and you tried to paste blueprint where inserter has no control behavior but has spoiled priority configured, would you expect the enable/disable to turn off just because the source inserter had no control behavior?
User avatar
Hares
Filter Inserter
Filter Inserter
Posts: 785
Joined: Sat Oct 22, 2022 8:05 pm
Contact:

Re: [2.0.45] Inserter's settings not applied when copying

Post by Hares »

boskid wrote: Sun Apr 27, 2025 3:36 pm If an existing inserter would be configured with "enable/disable" and would have wires, and you tried to paste blueprint where inserter has no control behavior but has spoiled priority configured, would you expect the enable/disable to turn off just because the source inserter had no control behavior?
I'd say "yes". In 1.1 it worked so IIRC. Or at least that how you expect things to do... for inserters. My answer may be different for different prototypes, most probably -- logistical chests. (You may have already observed ton of force/super-force upgrade issues relating to chests reported by me.)

Also, I have use cases where I need to drag with Ctrl+V instead of Shift+LMB -- when I have a row Inserters facing different directions (or different kind of inserters) and I want bulk-apply settings to only one kind of them (which is pretty common practice -- i.e., see below), if there are no gaps between them, you can drag pasting cursor instead. Dragging Shift+LMB, in contrast, would apply settings to all inserters in row, regardless of direction & type.
04-27-2025, 18-44-52.png
04-27-2025, 18-44-52.png (490.79 KiB) Viewed 141 times
04-27-2025, 18-47-05.png
04-27-2025, 18-47-05.png (1.9 MiB) Viewed 141 times
Also, in the case describe in OP, inserter being copied has filters configured. To apply those settings, "set filters" should be turned off.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3838
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.45] Inserter's settings not applied when copying

Post by boskid »

Hares wrote: Sun Apr 27, 2025 3:49 pm Also, in the case describe in OP, inserter being copied has filters configured. To apply those settings, "set filters" should be turned off.
In this case, the "set filter" on the target inserter is not cleared because source inserter has no control behavior, and then target inserter rejects filter changes because it has them set by control behavior.
User avatar
Hares
Filter Inserter
Filter Inserter
Posts: 785
Joined: Sat Oct 22, 2022 8:05 pm
Contact:

Re: [2.0.45] Inserter's settings not applied when copying

Post by Hares »

boskid wrote: Sun Apr 27, 2025 3:53 pm
Hares wrote: Sun Apr 27, 2025 3:49 pm Also, in the case describe in OP, inserter being copied has filters configured. To apply those settings, "set filters" should be turned off.
In this case, the "set filter" on the target inserter is not cleared because source inserter has no control behavior, and then target inserter rejects filter changes because it has them set by control behavior.
As I said above, I understand why & how this works, I just provided a reason to re-visit the current implemetation. Compromise solution: keep this topic open (not locked) and if enough reports are collected, change how it works. Also it might be a good idea to ask other devs what do they think.
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 3838
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.45] Inserter's settings not applied when copying

Post by boskid »

I am not seeing any solid arguments to make this 9 years old piece of logic to change, especially since i see how it would remove existing functionality (when placing entity with settings on top of entity with control behaviors). Your use case is unusual because you are copying inserter partially (no wires) and expect a full settings to be changed. If inserter would have non default settings it would work, if you would not be going through intermediate blueprint it would work, but the blueprint in the middle is visually the same as one with no control behavior so it does not keep behavior settings and as such it cannot change them when pasting.
Post Reply

Return to “Not a bug”