"planet" event filter for entity-related events
-
MeteorSwarm
- Burner Inserter

- Posts: 9
- Joined: Thu Sep 25, 2025 10:49 pm
- Contact:
"planet" event filter for entity-related events
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.
- protocol_1903
- Filter Inserter

- Posts: 512
- Joined: Fri Sep 09, 2022 4:33 pm
- Contact:
Re: "planet" event filter for entity-related events
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
https://mods.factorio.com/user/protocol_1903
Buy me a coffee
Re: "planet" event filter for entity-related events
+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.
Maintainer of Auto Deconstruct, Cargo Ships, Vehicle Wagon, Honk, Shortwave.
