Smart Inserters


A modern and configurable approach at adjustable inserters to change pickup/drop position/offsets, and much more like custom inserter length, custom setting for ranges and diagonals, support for slim and big inserters... Enjoy!

Utilities
2 months ago
1.1 - 2.0
9.75K
Logistics

i [Planned] Circuit control

3 days ago

Just a way to control the smart inserters with circuits, may it be by connecting every cube to a different circuit condition or by making it a grid controlled by x nd y coordinates (so then you could have 2xa, 2ya, -2xb, -2yb for the inserter to pick up something from a diagonal position two blocks to the right and up and drop it on the opposite spot.

2 days ago

This is an interesting addition, I'll see how to implement it

7 hours ago
(updated 7 hours ago)

So I got it working, but the problem is that it's quite heavy on performance right now, so I will need to optimize it before releasing it.
Although I'm not familiar with the in-game wiki, I will add the necessary information to the mod page on how to use it and add an in-game help once I have time.

On Discord you can see a demo https://discord.gg/qbJwX5FZ.

7 hours ago

Yeah the performance could be a bit of a problem... A way would be to only correct the positions when the inserter get's a specific signal so then a circuit could send the new data into the inserter with a reset signal which would then after a tick delay trigger the update. That way it wouldn't have to check each tick for all of the stuff to check if it changed but only for that one signal. It would be slightly tougher to work with but could save a lot of ups

7 hours ago
(updated 7 hours ago)

The problem is that, from my understanding, the game does not have an "on circuit condition changes", so I need to add that myself.
I will add a listener for circuit connection/disconnection on the inserter to check only connected inserters.
I'm planning on having a configurable "check interval"
Additionally, I would like to add a "circuit-controlled" flag to the circuit connection menu, which would allow me to disable shortcuts and player interaction. However, in the past, I failed to add this kind of stuff to vanilla menus.

It's quite a bit of work.

2 hours ago

Stuff happened, and I discovered that the game does not notify you when inserters are connected/disconnected from the circuit network... this sucks since now I need to scan the world periodically and check if an inserter is connected, then add it to the list of entities updated every nth tick...
To make this faster, I could add listeners in events such as "cursor movements" and "entity placed/destroyed", but this means the update will take longer...

New response