Prototype property to stop inserters from "chasing" items

Bilka
Factorio Staff
Factorio Staff
Posts: 3310
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Prototype property to stop inserters from "chasing" items

Post by Bilka »

Example of the chasing behaviours: viewtopic.php?f=7&t=61345

I want to be able to turn this off on a prototype basis.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5207
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Prototype property to stop inserters from "chasing" items

Post by eradicator »

What would be the alternative? "take-only-from-near/far-lane"?
User avatar
lovely_santa
Filter Inserter
Filter Inserter
Posts: 502
Joined: Sat Feb 18, 2017 9:41 pm
Contact:

Re: Prototype property to stop inserters from "chasing" items

Post by lovely_santa »

Well, wouldn't that belt start to backup eventualy? if you're in a loop, the belt will get new items and the chasing stops, when there is no loop, the belt will start backing up from the end... I don't see the issue here except that another assembling machine down the line will work instead...
You can find all my mods on the mod portal. Also helping on Arch666Angel's mods.
Image
Rseding91
Factorio Staff
Factorio Staff
Posts: 14360
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Prototype property to stop inserters from "chasing" items

Post by Rseding91 »

lovely_santa wrote:Well, wouldn't that belt start to backup eventualy? if you're in a loop, the belt will get new items and the chasing stops, when there is no loop, the belt will start backing up from the end... I don't see the issue here except that another assembling machine down the line will work instead...
It's a performance thing mostly. The cost to chase the item is very expensive.
If you want to get ahold of me I'm almost always on Discord.
User avatar
lovely_santa
Filter Inserter
Filter Inserter
Posts: 502
Joined: Sat Feb 18, 2017 9:41 pm
Contact:

Re: Prototype property to stop inserters from "chasing" items

Post by lovely_santa »

Rseding91 wrote:
lovely_santa wrote:Well, wouldn't that belt start to backup eventualy? if you're in a loop, the belt will get new items and the chasing stops, when there is no loop, the belt will start backing up from the end... I don't see the issue here except that another assembling machine down the line will work instead...
It's a performance thing mostly. The cost to chase the item is very expensive.
I would say this is a bug then, but i like the idea of beiing able to select only one side of the belt, like eradicator said. Would even be a nice addition to the base game?
You can find all my mods on the mod portal. Also helping on Arch666Angel's mods.
Image
Rseding91
Factorio Staff
Factorio Staff
Posts: 14360
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Prototype property to stop inserters from "chasing" items

Post by Rseding91 »

lovely_santa wrote:
Rseding91 wrote:
lovely_santa wrote:Well, wouldn't that belt start to backup eventualy? if you're in a loop, the belt will get new items and the chasing stops, when there is no loop, the belt will start backing up from the end... I don't see the issue here except that another assembling machine down the line will work instead...
It's a performance thing mostly. The cost to chase the item is very expensive.
I would say this is a bug then, but i like the idea of beiing able to select only one side of the belt, like eradicator said. Would even be a nice addition to the base game?
What? How would that be a bug? A bug is some bit of logic not working how it was designed to work. The inserter is working exactly as it was designed to work (chasing the items).
If you want to get ahold of me I'm almost always on Discord.
User avatar
lovely_santa
Filter Inserter
Filter Inserter
Posts: 502
Joined: Sat Feb 18, 2017 9:41 pm
Contact:

Re: Prototype property to stop inserters from "chasing" items

Post by lovely_santa »

Rseding91 wrote:
lovely_santa wrote:
Rseding91 wrote:
lovely_santa wrote:Well, wouldn't that belt start to backup eventualy? if you're in a loop, the belt will get new items and the chasing stops, when there is no loop, the belt will start backing up from the end... I don't see the issue here except that another assembling machine down the line will work instead...
It's a performance thing mostly. The cost to chase the item is very expensive.
I would say this is a bug then, but i like the idea of beiing able to select only one side of the belt, like eradicator said. Would even be a nice addition to the base game?
What? How would that be a bug?
The chasing? the stack inserter/fast inserter not fast enough to pick from a blue belt? I would've guessed the fastest inserter beiing fast enough to handle the fastest belt? (vanilla speaking, there are mods to solve this like express inserters from bobs mod)
You can find all my mods on the mod portal. Also helping on Arch666Angel's mods.
Image
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5207
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Prototype property to stop inserters from "chasing" items

Post by eradicator »

lovely_santa wrote:The chasing? the stack inserter/fast inserter not fast enough to pick from a blue belt? I would've guessed the fastest inserter beiing fast enough to handle the fastest belt? (vanilla speaking, there are mods to solve this like express inserters from bobs mod)
If you watch the gif linked in the OP again you'll notice that the inserter to the left picks items with similar distance up just fine. It's just the middle one that somehow managed to get a very peculiar timing that just so happens to be ever-so-slightly too fast for the inserter because the items are in a perfect zick-zack on the belt. Similar things happen when you try to grab items from the inner (shorter) lane of a curved belt. It's not a bug, just meh timing.
User avatar
bobingabout
Smart Inserter
Smart Inserter
Posts: 7352
Joined: Fri May 09, 2014 1:01 pm
Contact:

Re: Prototype property to stop inserters from "chasing" items

Post by bobingabout »

Well, the inserter was already holding an item, but never dropping it in the machine because of chasing the zigzagging items on the belt.

There are a couple of solutions I have in mind to this specific issue...

1. I know inserters holding items do have a time-out if no other item comes by, perhaps a solution would be to also have a time out if holding an item, but failing to pick up another through chasing

2. Probably a better solution... just, increase the inserter's lateral movement(Extension) speed, but not rotation, that way it can quickly jump to the other lane of a belt to grab the item, without really effecting the items moved per second.
Creator of Bob's mods. Expanding your gameplay since version 0.9.8.
I also have a Patreon.
Aeternus
Filter Inserter
Filter Inserter
Posts: 835
Joined: Wed Mar 29, 2017 2:10 am
Contact:

Re: Prototype property to stop inserters from "chasing" items

Post by Aeternus »

Or just increase the "collisionbox" size from where it can immediately grab an item, so it doesn't need to chase at all. Item magnetism/vacuuming of sorts. Make those inserters suck... in a good way ;)
This would also make stack inserters run much quicker when grabbing stuff from a fast belt and make slower inserters be able to grab from a fast belt at all, helping with the bot/belt bias a little, and be more UPS friendly since the inserter would be moving less of the time.
Bilka
Factorio Staff
Factorio Staff
Posts: 3310
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Prototype property to stop inserters from "chasing" items

Post by Bilka »

Or just stop arguing about this and let Rseding implement exactly what I want, since he knows what I want :P
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5207
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Prototype property to stop inserters from "chasing" items

Post by eradicator »

Bilka wrote:Or just stop arguing about this and let Rseding implement exactly what I want, since he knows what I want :P
Bleh. I was 99% sure this was just another "as per discussed on discord"-type request. But forgot to ask in the first post.
Please mark these accordingly in the future.
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 580
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: Prototype property to stop inserters from "chasing" items

Post by raiguard »

I would like to add my +1 to this. I am creating an entity that will act similar to Creative Mode's matter source/void, the difference being that mine will use inserters with an infinity chest instead of control scripting. The inserters are (usually) invisible and move extremely quickly.

Because inserters can "chase" items, this means that they don't always pick up items at the location you specify. In this GIF, the green dot indicates the pickup position, the teal dot the drop position, and the tall skinny red box is the chest:
input loader exposed.gif
input loader exposed.gif (261.52 KiB) Viewed 9936 times
As you can see, not only does it not obey the pickup position, but it actually prefers the wrong side of the belt entirely! The functionality of my entity depends on being able to pick up from a specific side of the belt, and that can't be done without being able to disable the "chasing". The reason for this is I want to be able to set filters for each side of the belt specifically. For outputting onto a belt, this works fine, but it doesn't work for taking items from a belt.

So it's my hope that this can be added. Thanks!
Don't forget, you're here forever.
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Prototype property to stop inserters from "chasing" items

Post by Optera »

Raiguard wrote: Mon Aug 05, 2019 4:44 am I would like to add my +1 to this. I am creating an entity that will act similar to Creative Mode's matter source/void, the difference being that mine will use inserters with an infinity chest instead of control scripting. The inserters are (usually) invisible and move extremely quickly.

Because inserters can "chase" items, this means that they don't always pick up items at the location you specify. In this GIF, the green dot indicates the pickup position, the teal dot the drop position, and the tall skinny red box is the chest:
input loader exposed.gif
As you can see, not only does it not obey the pickup position, but it actually prefers the wrong side of the belt entirely! The functionality of my entity depends on being able to pick up from a specific side of the belt, and that can't be done without being able to disable the "chasing". The reason for this is I want to be able to set filters for each side of the belt specifically. For outputting onto a belt, this works fine, but it doesn't work for taking items from a belt.

So it's my hope that this can be added. Thanks!
Hasn't Therax solved this issue in Miniloader, or did he use a workaround?
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 580
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: Prototype property to stop inserters from "chasing" items

Post by raiguard »

Optera wrote: Mon Aug 05, 2019 5:14 am Hasn't Therax solved this issue in Miniloader, or did he use a workaround?
No, he hasn't. Inserters can place onto a specific side of a belt just fine, but when you have an input miniloader, they'll jump around just as much as mine do. It's just not noticable because miniloaders don't use per-side filtering (yet).
Don't forget, you're here forever.
User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2920
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Prototype property to stop inserters from "chasing" items

Post by Optera »

Raiguard wrote: Mon Aug 05, 2019 5:22 am
Optera wrote: Mon Aug 05, 2019 5:14 am Hasn't Therax solved this issue in Miniloader, or did he use a workaround?
No, he hasn't. Inserters can place onto a specific side of a belt just fine, but when you have an input miniloader, they'll jump around just as much as mine do. It's just not noticable because miniloaders don't use per-side filtering (yet).
I see, then turning off inserter lane switching and chasing would really help you both implement these features without resorting to performance killing per line scripting.
User avatar
raiguard
Factorio Staff
Factorio Staff
Posts: 580
Joined: Wed Dec 13, 2017 8:29 pm
Contact:

Re: Prototype property to stop inserters from "chasing" items

Post by raiguard »

Optera wrote: Mon Aug 05, 2019 5:26 am I see, then turning off inserter lane switching and chasing would really help you both implement these features without resorting to performance killing per line scripting.
Yes, precisely! It would be an enormous help.
Don't forget, you're here forever.
User avatar
Therax
Filter Inserter
Filter Inserter
Posts: 471
Joined: Sun May 21, 2017 6:28 pm
Contact:

Re: Prototype property to stop inserters from "chasing" items

Post by Therax »

Raiguard wrote: Mon Aug 05, 2019 5:44 am
Optera wrote: Mon Aug 05, 2019 5:26 am I see, then turning off inserter lane switching and chasing would really help you both implement these features without resorting to performance killing per line scripting.
Yes, precisely! It would be an enormous help.
Created a new thread to track this, since it seems separate from whatever Bilka was referring to.
Miniloader — UPS-friendly 1x1 loaders
Bulk Rail Loaders — Rapid train loading and unloading
Beltlayer & Pipelayer — Route items and fluids freely underground
Post Reply

Return to “Implemented mod requests”