reverse_entity_type_filters please

User avatar
moon69
Fast Inserter
Fast Inserter
Posts: 183
Joined: Sun Sep 18, 2016 6:53 pm
Contact:

reverse_entity_type_filters please

Post by moon69 »

Prototype/SelectionTool has
entity_filters
alt_entity_filters

entity_type_filters
alt_entity_type_filters

but no reverse_entity_filters or reverse_entity_type_filters.

"reverse" can't help it they are a little bit backward - they still deserve some filter love? please?
FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2768
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: reverse_entity_type_filters please

Post by FuryoftheStars »

Can I ask what "reverse" is supposed to mean in this context?
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles | New Gear Girl & HR Graphics
User avatar
moon69
Fast Inserter
Fast Inserter
Posts: 183
Joined: Sun Sep 18, 2016 6:53 pm
Contact:

Re: reverse_entity_type_filters please

Post by moon69 »

Selection tools have 3 events:

Normal select (left-drag)
on_player_selected_area

Alt select (default shift-left-drag) - vanilla use is to cancel upgrades, deconstruction etc.
on_player_alt_selected_area

Reverse select (default right-drag) - vanilla use is to downgrade with the upgrade planner (see image below)
on_player_reverse_selected_area

So a single selection-tool can be used for 3 different actions.
In my case:
  • normal select for selecting source entities
  • reverse-select to select destination entities (and execute the required action)
  • alt-select to select entities as both source and destination (and execute)

ReverseSelectBind.png
ReverseSelectBind.png (54.61 KiB) Viewed 3115 times
FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2768
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: reverse_entity_type_filters please

Post by FuryoftheStars »

I'm sorry, but while I already understand that there currently exist 3 selection modes, I'm afraid after reading your post multiple times I'm still no closer to understanding what you're wanting. :/
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles | New Gear Girl & HR Graphics
robot256
Filter Inserter
Filter Inserter
Posts: 987
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: reverse_entity_type_filters please

Post by robot256 »

Second post should have included a restatement of the request in the same manner the existing modes were described. I assume the request is for a fourth mode, activated by "shift-right-click-drag".
Last edited by robot256 on Tue Jun 14, 2022 6:24 pm, edited 1 time in total.
FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2768
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: reverse_entity_type_filters please

Post by FuryoftheStars »

robot256 wrote: Tue Jun 14, 2022 5:03 pm Second post should have included a restatement of the request in the same manner the existing modes were described. I assume the request is for a fourth mode, activated by "shift-right-click-drag".
So, this? viewtopic.php?f=28&t=102470

Edit: Nope, see below.
Last edited by FuryoftheStars on Tue Jun 14, 2022 6:11 pm, edited 1 time in total.
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles | New Gear Girl & HR Graphics
User avatar
moon69
Fast Inserter
Fast Inserter
Posts: 183
Joined: Sun Sep 18, 2016 6:53 pm
Contact:

Re: reverse_entity_type_filters please

Post by moon69 »

I'm talking specifically about the filters...

EG: For normal select I can specify entity_type_filters so the selection-tool will only select wooden-chests...

Code: Select all

entity_type_filters = { "wooden-chest"}
Similarly there is alt_entity_type_filters to restrict what the selection-tool will select when shift is held down.

But there is no reverse_entity_type_filters property for right-drag mode - so reverse select will always select all entities.
FuryoftheStars
Smart Inserter
Smart Inserter
Posts: 2768
Joined: Tue Apr 25, 2017 2:01 pm
Contact:

Re: reverse_entity_type_filters please

Post by FuryoftheStars »

moon69 wrote: Tue Jun 14, 2022 5:57 pm I'm talking specifically about the filters...

EG: For normal select I can specify entity_type_filters so the selection-tool will only select wooden-chests...

Code: Select all

entity_type_filters = { "wooden-chest"}
Similarly there is alt_entity_type_filters to restrict what the selection-tool will select when shift is held down.

But there is no reverse_entity_type_filters property for right-drag mode - so reverse select will always select all entities.
Ahhhh, ok, I get it now. :) Yes, that would be good to have.
My Mods: Classic Factorio Basic Oil Processing | Sulfur Production from Oils | Wood to Oil Processing | Infinite Resources - Normal Yield | Tree Saplings (Redux) | Alien Biomes Tweaked | Restrictions on Artificial Tiles | New Gear Girl & HR Graphics
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: reverse_entity_type_filters please

Post by Nexela »

moon69 wrote: Mon Jun 13, 2022 8:12 pm "reverse" can't help it they are a little bit backward - they still deserve some filter love? please?
Some love was added for the next version :)
Pi-C
Smart Inserter
Smart Inserter
Posts: 1738
Joined: Sun Oct 14, 2018 8:13 am
Contact:

Re: reverse_entity_type_filters please

Post by Pi-C »

Nexela wrote: Wed Jun 15, 2022 1:23 am
moon69 wrote: Mon Jun 13, 2022 8:12 pm "reverse" can't help it they are a little bit backward - they still deserve some filter love? please?
Some love was added for the next version :)
I thought they already were implemented. At least the prototype browser shows fields for reverse filters:
reverse_filters.png
reverse_filters.png (177.23 KiB) Viewed 2983 times
Alas, they don't work (I've tried to copy alt_entity_type_filters, but this didn't have any effect), so I'm looking forward to the next version! :-)
A good mod deserves a good changelog. Here's a tutorial (WIP) about Factorio's way too strict changelog syntax!
Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: reverse_entity_type_filters please

Post by Nexela »

Pi-C wrote: Sun Jun 19, 2022 5:28 pm I thought they already were implemented. At least the prototype browser shows fields for reverse filters:
Everything for them was implemented, except for the important part where they get read into the game :)
Post Reply

Return to “Implemented mod requests”