Autofilter

by Wyrrrd

Automatically set inserter filters based on adjacent inventory/belt.

Utilities
2 years ago
0.17 - 1.1
1.12K
Owner:
Wyrrrd
Source:
https://github.com/Wyrrrd/Autofilter
Homepage:
N/A
License:
MIT
Created:
4 years ago
Latest Version:
1.1.3 (2 years ago)
Factorio version:
0.17 - 1.1
Downloaded by:
1.12K users

Features

When you manually place a filter inserter, it reads the inventory contents, inventory filters or belt contents on the pickup side and sets its filter to those items. There are extensive configuration options.


Settings

There is only one text field to enter configuration into. This can be done on the fly, while ingame. You can add each of the following keywords into the text field, in any order, separated by spaces. They will be processed left to right.

  • contents - Checks for filter candidates in the inventory contents at the inserter's pickup position.
  • filter - Checks for filter candidates in the inventory's filter settings at the inserter's pickup position.
  • belt - Checks for filter candidates in the items on a belt at the inserter's pickup position.
  • check - Checks for the current filter candidates, if they could be inserted in the inventory at the inserter's drop position and removes them from the candidate list, if unsuccessful.
  • anything else - Gets ignored. If you want to disable all functionality, just write anything.

After those are processed, a deduplication removes all but the first appearance of each item from the filter candidate list, and then the candidates are written to the inserter's filter until it is full.


Compatibility

This mod should work with all modded filter inserters, but I specifically added compatibility for the following mods:


Locale

If you want to contribute by translating this mod, you can view the existing translations here. I'd be happy to add your language and credits to the next release.


Credits

Thanks to Friendch for the french translation.