Copy-Paste Recipe Signals

by zomis

Copying settings from an Assembling Machine to a combinator will paste one or more signals describing the recipe. On some entities it can be pasted again to switch the signal used

Utilities
4 months ago
0.18 - 1.1
1.17K
Circuit network

b [Fixed] Error when copying from inserter to pump

4 months ago

Thanks for making this mod! I use it extensively to calcuate what ingredients I need to request via cargo rockets in SE.
I ran into an error however, when I copy-paste from an inserter to a pump:

The mod Copy-Paste Recipe Signals (1.5.0) caused a non-recoverable error.
Please report this error to the mod author.

Error while running event copy-paste-recipe-signals::on_entity_settings_pasted (ID 33)
copy-paste-recipe-signals/paste_to.lua:5: bad argument #2 of 2 to 'table_size' (table expected, got nil)
stack traceback:
[C]: in function 'table_size'
copy-paste-recipe-signals/paste_to.lua:5: in function 'iterate'
copy-paste-recipe-signals/paste_to.lua:30: in function <copy-paste-recipe-signals/paste_to.lua:23>
(...tail calls...)
copy-paste-recipe-signals/control.lua:49: in function <copy-paste-recipe-signals/control.lua:35>

4 months ago

Thanks. I don't know why you would copy-paste from an inserter to a pump but it is indeed something that I want to support.

Copying from an inserter is supported by the mod yet, only copying to. Shouldn't be too hard to fix though and it's something I will support in the next release (hopefully this week).

4 months ago

Released an update that should fix this :)

4 months ago

Awesome, thanks! Can confirm it doesn't crash any more.

I copied from an inserter to a pump to copy the circuit enabled condition. I don't think people do that often, so not a high priority to support that.

4 months ago

Copying the entire condition isn't anything I thought of, but I now do support copying the first signal of the condition.

I could make it configurable whether to copy full condition or just first signal. But I want to also avoid the need to go into the mod settings too often to change the settings... Is this something you yourself will do often, copying the full circuit condition from one entity type to another entity type?

New response