[2.0.73][MOD API] Missing on_player_super_forced_selected_area event

Post your bugs and problems so we can fix them.
miodec
Burner Inserter
Burner Inserter
Posts: 12
Joined: Wed Oct 30, 2024 2:58 pm
Contact:

[2.0.73][MOD API] Missing on_player_super_forced_selected_area event

Post by miodec »

I was working on a mod and noticed there is no event that fires when selecting an area with super force (ctrl + shift).

I can modify the color of the selection and so on in `data.lua`
02-04-2026, 11-38-26.png
02-04-2026, 11-38-26.png (20.55 KiB) Viewed 360 times
02-04-2026, 11-40-07.png
02-04-2026, 11-40-07.png (36.84 KiB) Viewed 360 times
but the event for this selection is not in the modding api:
02-04-2026, 11-39-46.png
02-04-2026, 11-39-46.png (84.12 KiB) Viewed 360 times
User avatar
boskid
Factorio Staff
Factorio Staff
Posts: 4387
Joined: Thu Dec 14, 2017 6:56 pm
Contact:

Re: [2.0.73][MOD API] Missing on_player_super_forced_selected_area event

Post by boskid »

Hm... it looks like the "super_forced_select" was added only for the purpose of deconstruction planners and as such it only causes game state effects when part of deconstruction item. In that case it would raise on_player_deconstructed_area event without any extra flags to know if it was due to super_forced_select or regular select (this detail is available on the game side since it affects deconstruct behavior).

Since it was never properly implemented as additional selection mode usable with arbitrary selection tools, i would rather fix this by moving super_forced_select from SelectionToolPrototype down onto DeconstructionItemPrototype making it fully non-functional including frame color.
miodec
Burner Inserter
Burner Inserter
Posts: 12
Joined: Wed Oct 30, 2024 2:58 pm
Contact:

Re: [2.0.73][MOD API] Missing on_player_super_forced_selected_area event

Post by miodec »

boskid wrote: Wed Feb 04, 2026 11:43 am Hm... it looks like the "super_forced_select" was added only for the purpose of deconstruction planners and as such it only causes game state effects when part of deconstruction item. In that case it would raise on_player_deconstructed_area event without any extra flags to know if it was due to super_forced_select or regular select (this detail is available on the game side since it affects deconstruct behavior).

Since it was never properly implemented as additional selection mode usable with arbitrary selection tools, i would rather fix this by moving super_forced_select from SelectionToolPrototype down onto DeconstructionItemPrototype making it fully non-functional including frame color.

I tried setting `super_forced_select mode` to deconstruct - it didnt fire `on_player_deconstructed_area`. In fact i tried listening to all events and nothing was fired when ctrl shift selecting an area. Ill try using the DeconstructionItemPrototype.

EDIT: Yeah DeconstructionItemPrototype is better for me right now. Having super_forced_select on the event there would be great. Currently it only has the `alt` property. https://lua-api.factorio.com/latest/eve ... ucted_area
Post Reply

Return to “Bug Reports”