Page 1 of 1

recipe names.

Posted: Thu Sep 03, 2015 12:25 am
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.

Re: recipe names.

Posted: Thu Sep 03, 2015 12:49 am
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.

Re: recipe names.

Posted: Fri Sep 04, 2015 4:58 am
by 666JTK666
thank you vary much for your help!!