Recipe is not selectable in circuit network

Place to get help with not working mods / modding interface.
snakeru
Burner Inserter
Burner Inserter
Posts: 18
Joined: Sun Nov 24, 2019 5:48 pm
Contact:

Recipe is not selectable in circuit network

Post 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.
Natha
Filter Inserter
Filter Inserter
Posts: 300
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

Re: Recipe is not selectable in circuit network

Post by Natha »

For the technology issue, do you have specified the recipe twice as unlock-recipe?
snakeru
Burner Inserter
Burner Inserter
Posts: 18
Joined: Sun Nov 24, 2019 5:48 pm
Contact:

Re: Recipe is not selectable in circuit network

Post 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.
eugenekay
Filter Inserter
Filter Inserter
Posts: 929
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: Recipe is not selectable in circuit network

Post 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 152 times

Good Luck!
snakeru
Burner Inserter
Burner Inserter
Posts: 18
Joined: Sun Nov 24, 2019 5:48 pm
Contact:

Re: Recipe is not selectable in circuit network

Post 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.
eugenekay
Filter Inserter
Filter Inserter
Posts: 929
Joined: Tue May 15, 2018 2:14 am
Contact:

Re: Recipe is not selectable in circuit network

Post 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.
Post Reply

Return to “Modding help”