"planet" event filter for entity-related events

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
MeteorSwarm
Burner Inserter
Burner Inserter
Posts: 9
Joined: Thu Sep 25, 2025 10:49 pm
Contact:

"planet" event filter for entity-related events

Post by MeteorSwarm »

Some modded planets use scripts to influence the behavior of entities when placed. Some planets, such as Maraxsis, have far-reaching effects on every entity in the game when placed. When too many mods use unscoped events when entities are built like Maraxsis does, this creates a performance problem when entities are placed. This issue could be addressed with a "planet" event filter, allowing events to only fire when the relevant entity is on a particular planet.
User avatar
protocol_1903
Filter Inserter
Filter Inserter
Posts: 514
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: "planet" event filter for entity-related events

Post by protocol_1903 »

If planet is too specific, maybe surfaceID. But I feel that planet is more likely to be added.
pY and pYblock developer, wielder of fluid networks and subtick events in arbitrary ways. I make mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903

Buy me a coffee
robot256
Smart Inserter
Smart Inserter
Posts: 1362
Joined: Sun Mar 17, 2019 1:52 am
Contact:

Re: "planet" event filter for entity-related events

Post by robot256 »

+1. SurfaceID would be the right approach. Lots of mods have special surfaces not attached to a planet, or multiple surfaces that represent the same planet.
My mods: Multiple Unit Train Control, RGB Pipes, Shipping Containers, Rocket Log, Smart Artillery Wagons.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
Post Reply

Return to “Modding interface requests”