Page 1 of 1

New FilteredContainer prototype

Posted: Tue Apr 20, 2021 1:36 am
by Xorimuth
I'd really like to be able to create a `type = container` prototype that allows filters, like character and vehicle inventories. An optional prototype property in https://wiki.factorio.com/Prototype/Container perhaps?

For performance reasons this would presumably have to be a separate prototype e.g. FilteredContainer (kinda like LinkedContainer!).

I'd like it for the docks in Spidertron Patrols which act as a proxy to a spidertron's inventory by scripting to sync the inventory. But a spidertron can have filters and the docks (which are of type Container) can't, which causes a mess if filters are used.

I know that quite a few things (e.g. cargo rockets in Space Exploration) could benefit from this.

Re: Optional filter support for container prototypes

Posted: Thu Apr 14, 2022 10:23 pm
by Dominiquini
+1

Re: New FilteredContainer prototype

Posted: Fri May 27, 2022 8:03 pm
by melandor0
+1 really want this please

Re: New FilteredContainer prototype

Posted: Thu Jul 14, 2022 8:53 pm
by Rseding91
I've added support for containers to have the inventor-with-filters type for the next release:
Added support for container entities with filters by using inventory_type = "with_bar" or "with_filters_and_bar".