Name: SmartLoader
Description: Adds a couple of buildings to simplify setting up supply trains.
License: CC BY 3.0
Version: 0.3.6
Tested-With-Factorio-Version: 0.12.30, 0.14.13
Category: Item
Tags: Inserter, Rail transportation
Download: Attached.
Long description
Little Diesel Locomotives That Could carrying ammo, turrets and other supplies are fascinating concept. Yet loading a single wagon of such supply train with a variety of items might become a hassle since a single inserter is prone to jam if the item stack size is not divisible by the inserter grab size or if the supplies flow is irregular. Building Turing-complete machines in order to ensure that a remote outpost takes from train exactly the amount of resources it should isn't very nice either. The goal of this mod is to simplify the outpost supplying so that player could focus on things other that hauling bullets to a dozen of remote bases.
This mod introduces a new inserter, smart loader, which is capable of detecting the situation when it's trying to shove in the items which wagon won't take (i.e. the remainder of item stack which was used to fulfill the limit of requested item). When such situation occurs, it rotates backwards to put the offending item to where it came from and continues the loading process.
This new inserter can be connected to circuit network (without connection it always on) but doesn't have filter in it as it's designed for loading the entities that have.
The smart loader recipe is unlocked by low tier research which comes after rail transportation.
Version 0.2.0 also introduces smart unloader addon, which is placed atop of any inserter capable of filtering (well, it can be placed atop of everything, but does nothing,). After placed, it can be selected by its top left corner. Clicking on it brings up the constant combinator gui. There you can set the desired amounts of items. The smart unloading controller will poll the drop target of inserter and if some of the items is below the threshold it will be added to inserter filter.
This mod introduces a new inserter, smart loader, which is capable of detecting the situation when it's trying to shove in the items which wagon won't take (i.e. the remainder of item stack which was used to fulfill the limit of requested item). When such situation occurs, it rotates backwards to put the offending item to where it came from and continues the loading process.
This new inserter can be connected to circuit network (without connection it always on) but doesn't have filter in it as it's designed for loading the entities that have.
The smart loader recipe is unlocked by low tier research which comes after rail transportation.
Version 0.2.0 also introduces smart unloader addon, which is placed atop of any inserter capable of filtering (well, it can be placed atop of everything, but does nothing,). After placed, it can be selected by its top left corner. Clicking on it brings up the constant combinator gui. There you can set the desired amounts of items. The smart unloading controller will poll the drop target of inserter and if some of the items is below the threshold it will be added to inserter filter.
Version history
0.1.0 Initial release.
0.2.0 Added smart unloaders.
0.2.1 There was a release?
0.2.2 Fixed "enable all filters" bug.
0.3.0(17.10.2015): A trivial update to 12.11
0.3.1(29.10.15) Fixed "enable all filters" bug, again.
0.3.2(16.04.16) Stability improvements.
0.3.3 (24.04.16) Various fixes. Thanks Nightingale.
0.3.4 (2.05.16) I think I've fixed something
0.3.5 (12.10.16) Update to 0.14.x
0.3.6 (28.01.16) I tiny fix of info.json description, new version just in case.
0.2.0 Added smart unloaders.
0.2.1 There was a release?
0.2.2 Fixed "enable all filters" bug.
0.3.0(17.10.2015): A trivial update to 12.11
0.3.1(29.10.15) Fixed "enable all filters" bug, again.
0.3.2(16.04.16) Stability improvements.
0.3.3 (24.04.16) Various fixes. Thanks Nightingale.
0.3.4 (2.05.16) I think I've fixed something
0.3.5 (12.10.16) Update to 0.14.x
0.3.6 (28.01.16) I tiny fix of info.json description, new version just in case.
Updating
To upgrade from the version 0.1.0 type the following into console right after the loading:
That mehod causes trouble, contact me here.
If you install some other mod, which alters filter slots of any inserter type the following in console:
Code: Select all
/c remote.call('SmrtLdr','migrate2')
If you install some other mod, which alters filter slots of any inserter type the following in console:
Code: Select all
/c remote.call('SmrtLdr','flush_filters')
Bugs and problems
It only unjams when trying to put item in something. It won't turn back if it cannot place item on the ground. This is almost by design. Otherwise script might become too performance heavy. (at least for such a small mod)