Page 1 of 1

[2.0.21] Rocket part signal is wrong if copy pasted as ghost signal from input signals

Posted: Sun Nov 24, 2024 10:08 pm
by joshinils


I tried configuring an arithmetic combinator, copy the rocket part item signal from the input signals into the first multiply slot.
The result is the lower combinator.

When I manually set the signal to rocket part by selecting it from all, it correctly sets the item, which is shown in the top combinator.

Here's the decoded blueprint of just the top combinator;

Code: Select all

{
    "blueprint": {
        "icons": [
            {
                "signal": {
                    "name": "arithmetic-combinator"
                },
                "index": 1
            }
        ],
        "entities": [
            {
                "entity_number": 1,
                "name": "arithmetic-combinator",
                "position": {
                    "x": -849,
                    "y": 1161.5
                },
                "direction": 12,
                "control_behavior": {
                    "arithmetic_conditions": {
                        "first_signal": {
                            "type": "recipe",
                            "name": "rocket-part"
                        },
                        "second_constant": 0,
                        "operation": "+",
                        "output_signal": {
                            "name": "rocket-part"
                        }
                    }
                },
                "player_description": "top"
            }
        ],
        "item": "blueprint",
        "version": 562949954797573
    }
}
Here's the decoded blueprint of just the bottom combinator;

Code: Select all

{
    "blueprint": {
        "icons": [
            {
                "signal": {
                    "name": "arithmetic-combinator"
                },
                "index": 1
            }
        ],
        "entities": [
            {
                "entity_number": 1,
                "name": "arithmetic-combinator",
                "position": {
                    "x": -849,
                    "y": 1163.5
                },
                "direction": 12,
                "control_behavior": {
                    "arithmetic_conditions": {
                        "first_signal": {
                            "name": "rocket-part"
                        },
                        "second_constant": 0,
                        "operation": "+",
                        "output_signal": {
                            "name": "rocket-part"
                        }
                    }
                },
                "player_description": "bottom"
            }
        ],
        "item": "blueprint",
        "version": 562949954797573
    }
}
when picking a ghost signal from the input signals at the bottomt, it doesnt add the "type": "recipe", line

Re: [2.0.21] Rocket part signal is wrong if copy pasted as ghost signal from input signals

Posted: Mon Nov 25, 2024 4:16 am
by robot256
The first odd thing here is that you got the recipe signal to begin with. Are there two entries with the rocket part icon in the selection menu?

That copying the recipe signal results in the item signal (the default when no type is given in the blueprint) is the second odd thing.

Re: [2.0.21] Rocket part signal is wrong if copy pasted as ghost signal from input signals

Posted: Mon Nov 25, 2024 12:04 pm
by joshinils
robot256 wrote: Mon Nov 25, 2024 4:16 am Are there two entries with the rocket part icon in the selection menu?
No, which confused me even more.
I only get tbe type=recipe when ghost copying the signal, from any slot in the combinator, even from the same slot i just set it to cia the selection.

I had a similar thing happen with copper cable and copper wire, but those are two different things with the same graphics, so thats annoying but not a bug (ref viewtopic.php?f=6&t=116362)

Re: [2.0.21] Rocket part signal is wrong if copy pasted as ghost signal from input signals

Posted: Tue Nov 26, 2024 2:39 pm
by Muche

Re: [2.0.21] Rocket part signal is wrong if copy pasted as ghost signal from input signals

Posted: Tue Mar 18, 2025 3:40 pm
by boskid
This is an unfortunate consequence of the feature set we have made with SignalID's in general. Signals can be of 8 types, 3 of them are items (this is the most commonly used one), recipe signals (because of assembler set recipe feature) and entities (because of gun turrets set priority feature). Because of that, it is possible to have 2 signals that are different (one being recipe other being an item) while showing the same icon. This is exactly what happens here: since rocket-part item is mark as hidden, in the constant combinator when selecting rocket part you are given a rocket-part recipe signal, signal shows on the network, and when you pipette that signal, since pipette cannot hold recipes, it sets your cursor to be the product of that recipe which gives you a rocket-part item. Because of this if you set the slot after using a pipette, you are setting a different signal because that is not a rocket-part recipe signal, thats a rocket-part item signal. This is more obvious when using a "concrete from molten iron" recipe signal which after pipette gives you a concrete item. I will mark this as Not a bug because this is a natural consequence of pipette not supporting recipes in cursor which means this report is primarily about signals duality (item vs recipe with same icon) causing player confusion. Ability of having recipe held by the cursor is a feature request.