Name: Picklocks Inserter
Description: This mod prevents Inserters to get stuck holding Items.
License: GNU GPLv3
Version: 1.110.7
Release: 07.03.2024
Tested with-Factorio-version: 1.1.104
Download: mods.factorio.com
Download-Url: https://mods.factorio.com/mod/Picks-Inserter
Category: Utility
Tags: Utility, Inserters, Train, Cargo wagon
Website: viewtopic.php?f=190&t=79205
Introduction
If an inserter is not able to place items at the target then this mod prevents the Inserter to get stuck holding these items.
- tems will be put back to where they were picked up.
- If this is not possible and the option is activated then the items will be destroyed.
License
+++++++
Long Description - Story
+++++++
I made this mod because the behave of inserter in vanilla does not match my favoured way to build my train network. So, I searched for mods to fulfill my goal but could not find any mod matching. Either there are much more functions included in the mod that I don’t want or the mod was not compatible with the current game version (0.17). I decided to try to write my own mod. I present the result here.
My first goal was to clean inserters at train stations. As there are other situations with stuck inserters, too, I tried to include these inserters also. As result Picklocks Inserters works as follows:
My first goal was to clean inserters at train stations. As there are other situations with stuck inserters, too, I tried to include these inserters also. As result Picklocks Inserters works as follows:
- Items will be put back to where they were picked up.
- You can enable to unlock locked chest slots to put items back even to chests that are normally stuffed.
- You can also enable to destroy items in the hand of an inserter if the inserter is not able to put the items back. If you don’t enable this function and the inserter could not put the items back the inserter will stay stuck with items in hand.
- With the inserter cleanup planner, you could select any inserter you want to be cleaned.
- If enabled the selected inserters will be cleaned up permanently.
- To visualize selected inserters, you can enable to mark them (this affects only inserters marked with the inserter cleanup planner).
- If enabled inserters around cargo wagons at train stations will be cleaned when the train leaves the train station. Therefore, the train hast to enter and leave the train stop in "automatic" mode (do not change to "manual" mode in between). The check will be done for the areas on both sides of every cargo wagon connected to the train. Cargo wagons which are not aligned horizontally or vertically will be skipped even if loading / unloading is possible.
Known Issues
+++++++
There aren’t any open issues.
+++++++
When you find a problem, post it below and I will add it to the list of issues to be dealt with when possible. For more detailed discussions you can always send me a PM. As I’m not always online it may take a while till you get a response. I will consider the posts or issues I see, and do my best to work fixes into the mod, although I might not reply directly to every notice.
+++++++
Regarding bugs, hopefully there will be few crashes and loading failures. I have solved all of these that I found by my local testing. Interaction with other mods is almost wholly untested.
+++++++
When you find a problem, post it below and I will add it to the list of issues to be dealt with when possible. For more detailed discussions you can always send me a PM. As I’m not always online it may take a while till you get a response. I will consider the posts or issues I see, and do my best to work fixes into the mod, although I might not reply directly to every notice.
+++++++
Regarding bugs, hopefully there will be few crashes and loading failures. I have solved all of these that I found by my local testing. Interaction with other mods is almost wholly untested.
Abbreviated changelog
+++++++
Version: 1.110.7
Date: 07.03.2024
Bugfixes:
Version: 1.110.6
Date: 01.03.2023
Bugfixes:
Version: 1.110.5
Date: 07.02.2021
Features:
Version: 1.110.4
Date: 03.02.2021
Bugfixes:
Version: 1.110.3
Date: 06.12.2020
Bugfixes:
Version: 1.110.2
Date: 05.12.2020
Bugfixes:
Version: 1.110.1
Date: 30.11.2020
Bugfixes:
Version: 1.110.0
Date: 23.11.2020
Features:
Date: 07.03.2024
Bugfixes:
- Fixes a bug causing a non-recoverable error on the client and the server when a player joins a headless server.
- For performance reasons, the maximum number of inserters that can be cleaned per tick has been reduced from 120 to 30.
- Updated and tweaked language files
Version: 1.110.6
Date: 01.03.2023
Bugfixes:
- Fixed a bug causing a non-recoverable error with the event on_runtime_mod_setting_changed.
Version: 1.110.5
Date: 07.02.2021
Features:
- Added cargo-wagon as target for set back (applies only to inserter cleanup planner).
Version: 1.110.4
Date: 03.02.2021
Bugfixes:
- Fixed a bug that prevented the cleaning of the inserters if the train was in the "destination_full" status after leaving the station.
- Fixed a bug that prevented the cleaning of the inserters if the train was in the "wait_signal" status after leaving the station.
Version: 1.110.3
Date: 06.12.2020
Bugfixes:
- Fixed a non-recoverable error occouring in some circumstates when starting a new game or loading a savegame.
Version: 1.110.2
Date: 05.12.2020
Bugfixes:
- Fixed a bug that after loading a game, a mark was not deleted if the associated inserter was destroyed.
- With a custom-input (default: CONTROL + ALT + I or AltGr + I) orphaned marks can be removed in the game.
Version: 1.110.1
Date: 30.11.2020
Bugfixes:
- Fixed mulitplayer desync related to inserters selected with the inserter cleanup planner
- Updated language files
- Reworked icons for item and shortcut
Version: 1.110.0
Date: 23.11.2020
Features:
- Update for game version 1.1
- Changed debugging behavior for better investigation
- Some code optimizing in detecting if an inserter is stuck
Inspiration
First, I want to thank the Factorio team for making such an amazing game. Its my favorite game at the moment.
Also, thanks to the various mods regarding inserters out there, for having interesting ideas.
+++++++
A Note:
In making this mod, I tried my best to work with the base assets and my own custom code. But it is possible that I missed something like a copied placeholder. If you find something that should not be there, please tell me explaining what it is, and I will try to rectify the matter as soon as possible.
Also, thanks to the various mods regarding inserters out there, for having interesting ideas.
+++++++
A Note:
In making this mod, I tried my best to work with the base assets and my own custom code. But it is possible that I missed something like a copied placeholder. If you find something that should not be there, please tell me explaining what it is, and I will try to rectify the matter as soon as possible.