I use interrupts on my space platform that are named -> [Planet], contain a circuit condition for that planet's signal, and have that planet as the target. When creating a blueprint for this space platform I then parameterised the planet signal so that I can change which planet the platform calls home, and which planets it's willing to travel to as I don't want all my ships traveling to Aquilo.
What happened?
When I put down the blueprint with different planets from the original this happens
- The planet in the interrupt name does change
- The planet in the condition signal does change
- The planet in the targets does not change
What did you expect to happen instead? It might be obvious to you, but do it anyway!
My expectation was that the target would also change. Since the name and signal changed I only noticed when my space platforms were parking themselves at the incorrect planets, I had to open the interrupt to see that the target didn't change. I feel this is not obvious functionality, especially since the interrupt name it changed to exists on other platforms with the correct targets.
Does it happen always, once, or sometimes?
This happens whenever the planet I pick does not match the original planet that was parameterised. Here's a minimum blueprint to show the issue.
The original planet selected was Nauvis, so if you place this blueprint with any other planet and then check the interrupts you'll see the target hasn't changed.
To see that duplicate interrupts are created from this
- Create a platform with an interrupt named [Planet] and give it unique conditions and targets
- Place a second platform using my blueprint, select the planet you used in the title of the first platform
- See that the second platform has an interrupt named the same as the first platform but with different conditions and targets
Suggested solutions
- Don't change anything to do with interrupts from blueprint parameterisation
- If a planet is parameterised, include the interrupt targets in the things changed
- If the interrupt name changes due to a parameter, match interrupt to existing interrupts, give a warning if no match found
- Limit parameters seen in targets to only planets, similar to machine recipes parameters, then change the target on placement


