Picklocks Inserter block detacher


This mod prevents Inserters to get stuck holding Items.

Utilities
14 days ago
0.17 - 2.0
2.50K
Logistics

g mod not working when inserter is X crossed

4 months ago

https://imgur.com/yT79RFK

when inserter is placed like above image, this mod won't work

4 months ago

Hi jungooji,

Thanks for your message. I'll take a look at it.
What other mods do you use?

a month ago

same problème with bob inserter with no vanilla pos
https://imgur.com/a/1j5sZHY

a month ago

Hi ShinoHarvest,

I'll take a look at it.

a month ago

if you not found solution this mod make it long time ago with all bob inserter possition but not updated https://mods.factorio.com/mod/shia-clear-inserter

a month ago
(updated 29 days ago)

Hi ShinoHarvest,

First of all, thank you for pointing out the other mod. The fact that it hadn't been updated was the reason why I programmed my mod. I used Shia's mod as inspiration.

Now to the problem you reported. I was able to reproduce the problem in my test environment with Bob's inserter. I have already found the cause. To detect whether an inserter is blocked, I check whether it is holding items and whether the drop_position is the same as the held_stack_position. When the drop position is changed by Bob's inserter, these positions are evaluated as unequal by Factorio, even though the values are identical when displayed. Unfortunately, Shia's mod does not help with the solution, as it uses the same method to determine a blockage.

However, I am working on the issue. I need to find a solution that does not cause desyncs in multiplayer, does not affect the function of the standard inserters, and does not compromise performance.

a month ago

bizar on my old game in 0.16 krastorio, shia no make problem on my unload train with 36 inserter per wagon ^^

a month ago

Since version 0.16, there have been several changes in Factorio itself. And according to the changelog for Bob's Adjustable Inserters, there have also been several changes to the mod itself since version 0.16, which affect the drop position and the held_stack_position. This can lead to rounding errors, which can cause slightly different values for the drop position and held_stack_position when there is a blockage. But since I don't use the Bob mod myself and haven't received any reports from the community about this issue until now, I can't say when the problem started.

28 days ago

Fixed with V2.1.1

19 days ago

not fixed this (myInserter.status == defines.entity_status.waiting_for_space_in_destination ) is very good idea but not work
https://cdn.discordapp.com/attachments/441986498586476557/1464828037093916826/image.png?ex=6978346b&is=6976e2eb&hm=ecb247228f303247c262bd8854cdeece96bbcd4561a2e1974362bf1f40581cc0&

but change this line 284, conrole.lua work
or math.floor(myInserter.drop_position.x) == math.floor(myInserter.held_stack_position.x) and math.floor(myInserter.drop_position.y) == math.floor(myInserter.held_stack_position.y))

19 days ago

Thanks for your feedback.

The link in your post is no longer valid. What did you want to show me?

I need to take a closer look at the change you suggested to rule out any unwanted side effects. But thanks for the suggestion.

17 days ago
(updated 17 days ago)

https://imgur.com/a/F8ltOcP

you solution work ~80% of time but make randomly fail

14 days ago

I have now implemented your suggestion. Thanks again for the tip. I had already had this idea, but rounding to whole numbers only seemed too inaccurate to me for detecting whether an inserter is blocked. I was afraid that inserters that were not blocked would also be cleaned up by mistake.

However, I have now tested this extensively in my test environment and it seems to work.

I hope that with this change, the inserters will be reliably cleaned up for you as well.

New response