Page 1 of 1

reverse_entity_type_filters please

Posted: Mon Jun 13, 2022 8:12 pm
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?

Re: reverse_entity_type_filters please

Posted: Mon Jun 13, 2022 9:01 pm
by FuryoftheStars
Can I ask what "reverse" is supposed to mean in this context?

Re: reverse_entity_type_filters please

Posted: Tue Jun 14, 2022 7:00 am
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 3117 times

Re: reverse_entity_type_filters please

Posted: Tue Jun 14, 2022 1:58 pm
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. :/

Re: reverse_entity_type_filters please

Posted: Tue Jun 14, 2022 5:03 pm
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".

Re: reverse_entity_type_filters please

Posted: Tue Jun 14, 2022 5:46 pm
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.

Re: reverse_entity_type_filters please

Posted: Tue Jun 14, 2022 5:57 pm
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.

Re: reverse_entity_type_filters please

Posted: Tue Jun 14, 2022 6:10 pm
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.

Re: reverse_entity_type_filters please

Posted: Wed Jun 15, 2022 1:23 am
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 :)

Re: reverse_entity_type_filters please

Posted: Sun Jun 19, 2022 5:28 pm
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 2985 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! :-)

Re: reverse_entity_type_filters please

Posted: Fri Jul 01, 2022 12:16 am
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 :)