Type: Mod
Name: Picklock's Set Inventory Filters
Description: With this mod the filters of filterable inventars can be set or deleted.
License: GNU GPLv3
Version: 1.3.0
Release: 29.11.2024
Tested with-Factorio-version: 2.0.23
Compatible with Factorio: Space Age: Yes
Download: mods.factorio.com
Download-Url: https://mods.factorio.com/mod/PicksSetInventoryFilter
Category: Utility
Tags: Utility, Gui, Rocket silo stats
Website: viewtopic.php?f=190&t=105576
Introduction
With this mod, the filters of filterable inventories can be set or deleted. Sorting inventories and merging the contents of the inventory slots is also possible.
The following inventories are supported:
This mod can be used to set or delete the filters of filterable inventories. The name of the item, its quality and the comparator are stored in the filter. If a filter is used as a template, it is copied. If an item is used as a template, the name of the item, its quality and the comparator selected by the player are used.
Sorting inventories and summarising the contents of the inventory slots is also possible.
The following inventories are supported:
Cargo wagon
Car
Tank
Spidertron
Spidertron's trash slots (sort only)
Player's inventory
Player's trash slots (sort only)
storage chests (sort only)
logistic chests (sort only)
The following filter options are available:
All: The filter of all slots in the inventory is set to the filter or content of the first slot or item at the player's cursor. Depending on the mod settings, the filter for occupied slots is not set or is set to the content.
Right: The filter of the slot to the right of the slot under consideration is set to its filter or content.
Down: The filter of the slot located below the slot under consideration is set to its filter or content.
Set: The filters of the individual slots are set to the content of the slots. No filter is set for empty slots.
Clear: All set filters of the inventory are deleted.
If the "Always keep player's main inventory sorted" setting is activated in the Factorio interface settings, the player's main inventory is automatically sorted by Factorio itself.
In god mode, the player has no trash slots. This is why the button for sorting trash slots is not displayed in god mode.
+++++++
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.
+++++++
Abbreviated changelog
Version: 1.3.0
Date: 29.11.2024
Features:
Quality and comparator string added to the filters that are set.
Info:
If a filter is used as a template, the comparator string of the filter is used.
If an item is used as a template, the comparator string selected by the player via the drop-down menu is used.
I want to thank the Factorio team for making such an amazing game. It’s my favorite game at the moment.
+++++++
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.
Re: [MOD 1.1] Picklock's Set Inventory Filters
Posted: Wed Mar 15, 2023 5:46 pm
by picklock
Update V1.1.0 for Factorio V1.1:
- Updated and tweaked language files
See start post for details.
A typo in the mod name has been fixed with this hotfox.
Re: [MOD 1.1] Picklock's Set Inventory Filters
Posted: Tue Aug 29, 2023 2:25 pm
by picklock
Update V1.0.2 for Factorio V1.1:
- Optimized position of the GUI
- Fixed a rare error that occurred due to the on_gui_click event with an invalid LuaGuiElement.
See start post for details.
Re: [MOD 1.1] Picklock's Set Inventory Filters
Posted: Wed Aug 30, 2023 5:54 am
by picklock
Update V1.0.3 for Factorio V1.1:
- Fixed a bug that caused a crash if the event on_gui_clic was not triggered by this mod after opening a filterable inventory.
See start post for details.
Re: [MOD 1.1] Picklock's Set Inventory Filters
Posted: Fri Nov 10, 2023 2:46 pm
by picklock
Update V1.1.0 for Factorio V1.1:
Features:
- Manual sorting function for sortable inventories added.
Optimisations:
- Optimized position of the GUI
Locale:
- Updated and tweaked language files
If the "Always keep player's main inventory sorted" setting is activated in the Factorio interface settings, the player's main inventory is automatically sorted by Factorio itself.
In god mode, the player has no trash slots. This is why the button for sorting trash slots is not displayed in god mode.
See start post for details.
Re: [MOD 1.1] Picklock's Set Inventory Filters
Posted: Sun Nov 12, 2023 9:46 am
by picklock
Update V1.1.1 for Factorio V1.1:
Features:
- Added manual sorting function for the Spidertron's trash slots.
Optimisations:
- Optimized the position of the GUI for Spidertron at a resolution less than or equal to 1920x1080.
Locale:
- Updated and tweaked language files
See start post for details.
Re: [MOD 1.1] Picklock's Set Inventory Filters
Posted: Thu Dec 07, 2023 2:22 pm
by picklock
During my current playthrough I often had the need to sort my inventory while another inventory was open. Since I found it inconvenient to close the open inventory and open my inventory to sort it, I added the function that my inventory is sortable even if another inventory is open to my mod.
Update V1.1.2 for Factorio V1.1:
Features:
- Added manual sorting function for the player's inventory when other inventories are open.
See start post for details.
Re: [MOD 2.0] Picklock's Set Inventory Filters
Posted: Mon Oct 21, 2024 3:07 pm
by picklock
Update V1.2.0 for Factorio V2.0:
Features:
- Update for game version 2.0.
See start post for details.
Re: [MOD 2.0] Picklock's Set Inventory Filters
Posted: Fri Nov 29, 2024 10:04 am
by picklock
Update V1.3.0 for Factorio V2.0:
Date: 29.11.2024
Features:
- Quality and comparator string added to the filters that are set.
Info:
- If a filter is used as a template, the comparator string of the filter is used.
- If an item is used as a template, the comparator string selected by the player via the drop-down menu is used.
Locale:
- Updated and tweaked language files