Broken off from 61354.
Here's a strawman proposal for a "single lane only" inserter, set on a per-prototype basis.
1) Add new optional prototype property to inserters: pickup_position_only. Default value is false, and preserves current inserter behavior. To summarize, the current behavior is: when selecting an item to chase & pick up, select the lane that's closest to the inserter's position. If both are equidistant, select the "left" lane as seen from the belt's perspective. If there are no items in the selected lane that meet the inserter's filters, look again in the opposite lane.
2) When this new property is true, when selecting an item to chase & pick up, select the lane that's closest to the inserter's current pickup_position. If there are no items in the selected lane that meet the inserter's filters, do not chase any item and treat the belt as completely empty, dropping the currently held stack or returning the inserter hand to the pickup_position.
Prototype property to restrict inserters to pick up from a single lane
Prototype property to restrict inserters to pick up from a single lane
Miniloader — UPS-friendly 1x1 loaders
Bulk Rail Loaders — Rapid train loading and unloading
Beltlayer & Pipelayer — Route items and fluids freely underground
Bulk Rail Loaders — Rapid train loading and unloading
Beltlayer & Pipelayer — Route items and fluids freely underground
Re: Prototype property to restrict inserters to pick up from a single lane
Well, today's FFF put to rest any chance of turning off inserter chasing, so that discussion is over. This, however, is probably a better solution for my modding needs and could still work. Is there a chance, devs?
Don't forget, you're here forever.
Re: Prototype property to restrict inserters to pick up from a single lane
Sounds like a prerequisite for having lane-filtering miniloaders - so +1 for beeing able to restrict pickup location to a specific lane of a belt.
Re: Prototype property to restrict inserters to pick up from a single lane
Additional use case here: I’d like Beltlayer to be able to preserve which item is in which lane, but currently there isn’t a way to guarantee to pick up items from just one side of a belt without using expensive scripting, so I can’t know which lane an item came from to be able to restore it to the same lane on the other surface.
Miniloader — UPS-friendly 1x1 loaders
Bulk Rail Loaders — Rapid train loading and unloading
Beltlayer & Pipelayer — Route items and fluids freely underground
Bulk Rail Loaders — Rapid train loading and unloading
Beltlayer & Pipelayer — Route items and fluids freely underground
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Prototype property to restrict inserters to pick up from a single lane
+1
Trying to implement a custom entity that is partially similar to a splitter and this would greatly help.
Trying to implement a custom entity that is partially similar to a splitter and this would greatly help.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Restrict inserter pickup to single lane.
For shenanigans with hidden inserters it would be nice if it was possible to restrict a modded inserter prototype to pick up from a single lane only (same as it only drops off on one). Determined by which lane is closer to the pickup vector position.
[Edit: Meh. Apparently my search-foo is worse than that of the kind moderator who moved this post here... ]
[Edit: Meh. Apparently my search-foo is worse than that of the kind moderator who moved this post here... ]
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
-
- Filter Inserter
- Posts: 359
- Joined: Thu Jun 01, 2017 12:05 pm
- Contact:
Re: Prototype property to restrict inserters to pick up from a single lane
I guess there's nothing changed in this regard?