I attempted to increase the number of filter slots from 5 to 10 today and got an error saying that the limit to filters on a filter inserter is 5.
You should be able to set the filter count of a filter inserter to any positive integer.
Allow filtered inserters to have more than 5 filters
- bigyihsuan
- Filter Inserter
- Posts: 299
- Joined: Thu Jan 01, 2015 12:57 pm
- Contact:
Re: Allow filtered inserters to have more than 5 filters
We store the filters as an array (compile time size) which is why you can't have more than 5.
It's done this way for performance reasons.
It's done this way for performance reasons.
If you want to get ahold of me I'm almost always on Discord.
Re: Allow filtered inserters to have more than 5 filters
And negative filter? It takes all, but not the specified.Rseding91 wrote:We store the filters as an array (compile time size) which is why you can't have more than 5.
It's done this way for performance reasons.
- bigyihsuan
- Filter Inserter
- Posts: 299
- Joined: Thu Jan 01, 2015 12:57 pm
- Contact:
Re: Allow filtered inserters to have more than 5 filters
Honestly, it would be best for all integers to be accepted for filter count, with negatives being a blacklist, like you say.darkfrei wrote:And negative filter? It takes all, but not the specified.Rseding91 wrote:We store the filters as an array (compile time size) which is why you can't have more than 5.
It's done this way for performance reasons.
Re: Allow filtered inserters to have more than 5 filters
No. Making it a compile time max size gives a massive performance improvement because the memory doesn't need to be dynamically allocated and dereferenced every time the inserter checks the filter.bigyihsuan wrote:Honestly, it would be best for all integers to be accepted for filter count, with negatives being a blacklist, like you say.darkfrei wrote:And negative filter? It takes all, but not the specified.Rseding91 wrote:We store the filters as an array (compile time size) which is why you can't have more than 5.
It's done this way for performance reasons.
If you want to get ahold of me I'm almost always on Discord.