[0.16.22] Inserters not picking up items from source

We are aware of them, but they have low priority. We have more important things to do. They go here in order not to take space in the main bug thread list.
Ardagan
Fast Inserter
Fast Inserter
Posts: 101
Joined: Sat Dec 21, 2013 11:24 pm
Contact:

[0.16.22] Inserters not picking up items from source

Post by Ardagan »

Build 35382 (seen this in earlier 0.16 builds/versions also)

Sometimes inserters just get stuck and don't pick up items from chests/factories. Have seen it multiple times already. See image attached for sample situation.
Couldn't find specific logic for this.

I'm not sure how to repro this. However in the save attached, character stands right by the sample chest+inserter.
Attachments
factorio-current.log
current logs of latest factorio run
(8.29 KiB) Downloaded 196 times
inserter_not_working_mods.zip
mod folder
(583.38 KiB) Downloaded 175 times
inserter_not_working_save.zip
save. original name "rw_6.zip"
(7.53 MiB) Downloaded 186 times
sample setup where this happened.
sample setup where this happened.
Inserter_not_working.PNG (970.6 KiB) Viewed 9192 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 14316
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.22] Inserters not picking up items from source

Post by Rseding91 »

Thanks for the report. The inserter is sleeping in the curved rail because inserters are setup to prioritize interacting with rails over anything else. See: Image

You can fix it by changing the curved rail to be straight for 1 more piece then turning.
If you want to get ahold of me I'm almost always on Discord.
Ardagan
Fast Inserter
Fast Inserter
Posts: 101
Joined: Sat Dec 21, 2013 11:24 pm
Contact:

Re: [0.16.22] Inserters not picking up items from source

Post by Ardagan »

Thank you for showing how this can be debugged :) will use it further.

Problematic part is that if I merely pick up and place inserter again, it will start working as expected.
1) I had similar issues with no tracks nearby. So this doesn't seem to be more reason.
2) shouldn't inserter behavior be deterministic? I mean same setup should always work the same way.

(Replying from phone, sorry if not too explicit here)
Rseding91
Factorio Staff
Factorio Staff
Posts: 14316
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.16.22] Inserters not picking up items from source

Post by Rseding91 »

Ardagan wrote:Thank you for showing how this can be debugged :) will use it further.

Problematic part is that if I merely pick up and place inserter again, it will start working as expected.
1) I had similar issues with no tracks nearby. So this doesn't seem to be more reason.
2) shouldn't inserter behavior be deterministic? I mean same setup should always work the same way.

(Replying from phone, sorry if not too explicit here)
It is deterministic. If it wasn't it would desync in multiplayer.

The state the game is in when you place the inserter is different virtually every time you place it which changes what it does next.
If you want to get ahold of me I'm almost always on Discord.
Ardagan
Fast Inserter
Fast Inserter
Posts: 101
Joined: Sat Dec 21, 2013 11:24 pm
Contact:

Re: [0.16.22] Inserters not picking up items from source

Post by Ardagan »

Rseding91 wrote:
Ardagan wrote:Thank you for showing how this can be debugged :) will use it further.

Problematic part is that if I merely pick up and place inserter again, it will start working as expected.
1) I had similar issues with no tracks nearby. So this doesn't seem to be more reason.
2) shouldn't inserter behavior be deterministic? I mean same setup should always work the same way.

(Replying from phone, sorry if not too explicit here)
It is deterministic. If it wasn't it would desync in multiplayer.

The state the game is in when you place the inserter is different virtually every time you place it which changes what it does next.
My assumption here is that the same setup of objects on map, should always result in same behavior of all elements of setup. So regardless whether I replace inserter, or not, it should still behave the same. Like if inserter was putting object on rails -- it should always do so, regardless of how many times times I replace it with another inserter.

Is there any explicit reasoning why we have current behavior in place?
ethernal
Inserter
Inserter
Posts: 27
Joined: Fri Jan 05, 2018 7:07 am
Contact:

Re: [0.16.22] Inserters not picking up items from source

Post by ethernal »

Couldn't inserters "look" for a distance to object and then decide if they can actually place an item there. Obviously, it's too far away and there is object nearer it that it can place items into.
Jap2.0
Smart Inserter
Smart Inserter
Posts: 2378
Joined: Tue Jun 20, 2017 12:02 am
Contact:

Re: [0.16.22] Inserters not picking up items from source

Post by Jap2.0 »

ethernal wrote:Couldn't inserters "look" for a distance to object and then decide if they can actually place an item there. Obviously, it's too far away and there is object nearer it that it can place items into.
I believe it's because the rail's bounding box extends into that tile, even though it's only a small amount.
The bounding boxes aren't planned to be changed, because that would break stuff... wait... :P
There are 10 types of people: those who get this joke and those who don't.
ZerackLB
Manual Inserter
Manual Inserter
Posts: 1
Joined: Wed Aug 04, 2021 11:51 pm
Contact:

Re: [0.16.22] Inserters not picking up items from source

Post by ZerackLB »

Coming here from a Reddit post I made earlier today, where I also assumed this behavior was a bug: thread link, YouTube minimal repro.

From upthread:
Ardagan wrote:So regardless whether I replace inserter, or not, it should still behave the same. Like if inserter was putting object on rails -- it should always do so, regardless of how many times times I replace it with another inserter.
...I think that sums up exactly my expectations as well. I understand that the behavior is "deterministic" in the Factorio-internal sense that it doesn't cause multiplayer desyncs. However, as a player the fact that the drop target for the inserter depends on the build order of the chest and / or rails is really quite confusing.

I think the common use-case is pretty illustrative of why this is painful - "If I blueprint this and build it with bots, does it work?" - and in this case the answer is "Sometimes, it depends on which bot(s) build their item fastest". That's not particularly rewarding as a player.

Anyway! This is me dredging up a thread from 2+ years ago (and I apologize!) but it's really the first time I've ever encountered something I'd consider a bug in Factorio, so I felt like it was worth chiming in and nudging the feedback. Cheers!
sparr
Smart Inserter
Smart Inserter
Posts: 1448
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: [0.16.22] Inserters not picking up items from source

Post by sparr »

Coming here from my duplicate report and adding another voice in opposition to build order dependent behavior here.
Etherblood
Burner Inserter
Burner Inserter
Posts: 14
Joined: Tue Mar 21, 2017 12:20 am
Contact:

Re: [0.16.22] Inserters not picking up items from source

Post by Etherblood »

This bug happened in one of Nefrums 100% attempts recently: https://clips.twitch.tv/GrotesqueNastyM ... BkM-ttI7Ur ("Waiting for train" can be seen 8s into the video)
I also managed to reproduce it [1.1.58], and even if you put a wagon onto the curved rails, the inserter will remain stuck instead of inserting into the wagon.
You can fix the broken inserter by reconstructing it.
Screenshot 2022-05-02 182700.png
Screenshot 2022-05-02 182700.png (246.29 KiB) Viewed 4825 times
Screenshot 2022-05-02 183653.png
Screenshot 2022-05-02 183653.png (282.05 KiB) Viewed 4825 times
sparr
Smart Inserter
Smart Inserter
Posts: 1448
Joined: Fri Feb 14, 2014 5:52 pm
Contact:

Re: [0.16.22] Inserters not picking up items from source

Post by sparr »

This doesn't just apply to curved rails. It seems to apply any time an inserter could have two targets. I wouldn't mind if it was consistently prioritized, but it being dependent on build order doesn't seem reasonable.


Screenshot_2022-07-30_20-43-52.png
Screenshot_2022-07-30_20-43-52.png (210.91 KiB) Viewed 4166 times
If you build the wagon first, the inserter targets the wagon. If you build the underground first, the inserter targets the underground.
Post Reply

Return to “Minor issues”