(Resolved) Selection tools and neutral entities

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
0n0w1c
Inserter
Inserter
Posts: 39
Joined: Sat Sep 09, 2023 1:43 pm
Contact:

(Resolved) Selection tools and neutral entities

Post by 0n0w1c »

Selection tool (Big Pink Eraser mod) with the the select defined as:

Code: Select all

        select = {
            border_color = constants.pink,
            cursor_box_type = "not-allowed",
            mode = { "deconstruct", "any-entity", "items" },
            entity_filter_mode = "blacklist",
            entity_type_filters = constants.excluded_types_list
        },
        alt_select = {
            border_color = constants.pink,
            cursor_box_type = "not-allowed",
            mode = { "deconstruct", "any-entity", "items" },
            entity_filter_mode = "blacklist",
            entity_type_filters = constants.excluded_types_list
        }
And the filter is:

Code: Select all

    constants.excluded_types_list = { "character", "cliff", "decorative", "fish", "resource", "simple-entity", "tile", "tree" }
This is how the find is defined:

Code: Select all

    local entities = surface.find_entities_filtered({
        area = event.area,
        force = constants.allowed_forces
    })

constants.allowed_forces = { "neutral", "player" }
When the selection tool is used, neutral entities (ex. crash site entities) are selected, however they do not appear as selected.
Bug or my ignorance?
Last edited by 0n0w1c on Tue Oct 22, 2024 12:38 am, edited 1 time in total.
0n0w1c
Inserter
Inserter
Posts: 39
Joined: Sat Sep 09, 2023 1:43 pm
Contact:

Re: Selection tools and neutral entities

Post by 0n0w1c »

Note to the moderator: I think this is more of a technical modding question than a game play question.
0n0w1c
Inserter
Inserter
Posts: 39
Joined: Sat Sep 09, 2023 1:43 pm
Contact:

Re: Selection tools and neutral entities

Post by 0n0w1c »

Resolved by modifying:

Code: Select all

mode = { "deconstruct", "any-entity", "items" },
To be:

Code: Select all

mode = { "any-entity", "items" },
Gregor2701
Manual Inserter
Manual Inserter
Posts: 2
Joined: Tue Oct 08, 2024 12:56 pm
Contact:

Re: (Resolved) Selection tools and neutral entities

Post by Gregor2701 »

Hi,

i just tried to remove an ore field. Select with the Ersaser does not work. Nothing is selected. Also other things arent selectet by it.
Post Reply

Return to “Gameplay Help”