Add parameterization support to ghost build events

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
Stringweasel
Filter Inserter
Filter Inserter
Posts: 479
Joined: Thu Apr 27, 2017 8:22 pm
Contact:

Add parameterization support to ghost build events

Post by Stringweasel »

What
Add a field to ghost build events to gives a mapping between parameters and the signals they need to replaced with. Something like

Code: Select all

parameters : dictionary[SignalID → SignalID]  : mapping from parameter signal to signal it was replaced with
Will probably be needed for the events: on_built_entity, on_space_platform_built_entity and on_robot_built_entity.
Why
There's many mods with scripted entities that internally have conditions based on signals, or names. For example Space Exploration's custom landing pad names. It would be very powerful for players if we could support their parameterized blueprints to allow more generic blueprints.
Alt-F4 Author | Factorio Modder
Probably known for: (Configurable) Valves | Better Victory Screen | Space Spidertron | Fluidic Power
Official Contributor to Space Exploration
Post Reply

Return to “Modding interface requests”