recipe names.

Place to post guides, observations, things related to modding that are not mods themselves.
666JTK666
Long Handed Inserter
Long Handed Inserter
Posts: 52
Joined: Sat May 30, 2015 11:19 pm
Contact:

recipe names.

Post by 666JTK666 »

Hello
I am tweaking a mod to make it more inline with an Idea I have and I need to know what the recipe name for the straight and curved rail's.
In the technology.lua file I find lines like this.

{ type = "unlock-recipe", recipe = "y_loco_desw_recipe",},

I think in order to make rails available I need to add the recipe names to this list of effects.
but I don't know the names and so far I have not been able to find a list of recipe's on the wiki.
if you happen to know how I can find the names for the rails or if you know what they are Please tell me.
thank you.
sillyfly
Smart Inserter
Smart Inserter
Posts: 1103
Joined: Sun May 04, 2014 11:29 am
Contact:

Re: recipe names.

Post by sillyfly »

Look at data/base/prototypes/recipe/recipe.lua You'll find:

Code: Select all

  {
    type = "recipe",
    name = "straight-rail",
    enabled = false,
    ingredients =
    {
      {"stone", 1},
      {"iron-stick", 1},
      {"steel-plate", 1}
    },
    result = "straight-rail",
    result_count = 2
  },
  {
    type = "recipe",
    name = "curved-rail",
    enabled = false,
    ingredients = {{"stone", 4}, {"iron-stick", 4}, {"steel-plate", 4}},
    result = "curved-rail",
    result_count = 2
  },
Of course, if you mean the modded rails, you'll need to look in the code of the mod you are changing.
666JTK666
Long Handed Inserter
Long Handed Inserter
Posts: 52
Joined: Sat May 30, 2015 11:19 pm
Contact:

Re: recipe names.

Post by 666JTK666 »

thank you vary much for your help!!
Post Reply

Return to “Modding discussion”