Page 1 of 1

Recipe is not selectable in circuit network

Posted: Sat Jan 03, 2026 10:47 am
by snakeru
Hello.

I'm trying to debug a problem in my mod: "Imersite Asteroids".

The mod adds 2 recipes: imerstite-asteroid-crushing and advanced-imersite-asteroid-crushing. The recipes are very similar, but despite of that only one of them is selectable in circuit network - the advanced variant is just not there. I can't figure why. Could anyone help?

There is also another smaller issue that might or might not be related to it: the recipe icons are shown twice in technologies. For example, if one opens the technology tree and looks for "Basic imersite processing" then there would be 3 technologies unlocked, yet 4 icons displayed - the advanced imersite asteroid crushing would be twice there.

Re: Recipe is not selectable in circuit network

Posted: Sat Jan 03, 2026 1:33 pm
by Natha
For the technology issue, do you have specified the recipe twice as unlock-recipe?

Re: Recipe is not selectable in circuit network

Posted: Sat Jan 03, 2026 9:26 pm
by snakeru
Natha wrote: Sat Jan 03, 2026 1:33 pm For the technology issue, do you have specified the recipe twice as unlock-recipe?
Yes, that was it. Indirectly though - the script is apparently called twice and it was adding the technology each time. Thank you!

The more serious problem (missing circuit logic signal) was not fixed with it, unfortunately.

Re: Recipe is not selectable in circuit network

Posted: Sat Jan 03, 2026 9:45 pm
by eugenekay
From recipe.lua:

Code: Select all

    {
        type = "recipe",
        name = "advanced-imersite-asteroid-crushing",
        icon = "__Imersite-Asteroids__/graphics/icons/advanced-imersite-asteroid-crushing.png",
        icons = {
          { icon = "__Krastorio2Assets__/icons/items/rare-metal-ore.png" , scale = 0.25, shift = { -10, -6 }},
          { icon = "__Krastorio2Assets__/icons/items/rare-metal-ore.png" , scale = 0.25, shift = { 10, -6 }},
          { icon = "__Imersite-Asteroids__/graphics/icons/imersite-asteroid-chunk.png", shift = { 0, 0 } },
          { icon = "__Krastorio2Assets__/icons/items/imersite.png" , scale = 0.25, shift = { -10, 10 }},
          { icon = "__Krastorio2Assets__/icons/items/rare-metal-ore.png" , scale = 0.25, shift = { 10, 10 }},
        },
You are specifying both icon and icons parameter; the Vanilla advanced crushing recipes use only icon. Editing this file to remove the icons reference (and creating the missing file advanced-imersite-asteroid-crushing.png) results in:
01-03-2026, 16-45-29.png
01-03-2026, 16-45-29.png (107.3 KiB) Viewed 165 times

Good Luck!

Re: Recipe is not selectable in circuit network

Posted: Sat Jan 03, 2026 10:05 pm
by snakeru
eugenekay wrote: Sat Jan 03, 2026 9:45 pm Editing this file to remove the icons reference (and creating the missing file advanced-imersite-asteroid-crushing.png) results in:
01-03-2026, 16-45-29.png
Good Luck!
Thank you! On your screenshot, though, only one recipe is visible - my goal was to have both.

HOWEVER!

I was able to fix the problem by adding this line to the prototype:
hide_from_signal_gui = false,

Thank you, everyone! All problems are fixed now.

Re: Recipe is not selectable in circuit network

Posted: Sat Jan 03, 2026 10:15 pm
by eugenekay
snakeru wrote: Sat Jan 03, 2026 10:05 pm Thank you! On your screenshot, though, only one recipe is visible - my goal was to have both.
In my screenshot I searched for "advanced" to highlight it functioning; both Imersite recipes were selectable as Signals.