[Solved] Naming a custom recipe
Posted: Mon Feb 26, 2018 4:12 pm
Hi,
I would like to name a recipe in my mod. Currently the engine seems to draw the recipes name from the name of the recipe result.
The recipe in data.lua looks like this:
It is recognized and works fine.
In my mod i have the folder and file structure "_ModName_/locale/en/config.cfg". Like described here https://wiki.factorio.com/Tutorial:Modd ... sir#Locale .
If I put the following in config.cfg
it does not change anything. I looked up the file base.cfg in the base mod. There is a section [recipe-name] that lists all the recipe names which are different from their results name, or which have multiple results.
I tried to make a file base.cfg next to config.cfg . But that has no effect either.
I had a look at other mods and there naming recipes works just fine.
Any knowledge/ideas? Thanks!
I would like to name a recipe in my mod. Currently the engine seems to draw the recipes name from the name of the recipe result.
The recipe in data.lua looks like this:
Code: Select all
data:extend{
{
type = "recipe",
name = "recipe-electronic-circuit-copper-plate",
normal =
{
ingredients =
{
{"copper-plate", 1},
{"copper-cable", 3}
},
result = "electronic-circuit",
},
expensive =
{
ingredients =
{
{"copper-plate", 2},
{"copper-cable", 10}
},
result = "electronic-circuit",
},
icon = "__Electronic_Circuit_Copper_Plate__/graphics/icons/recipe/electronic-circuit-copper-plate.png",
icon_size = 32,
}
}
In my mod i have the folder and file structure "_ModName_/locale/en/config.cfg". Like described here https://wiki.factorio.com/Tutorial:Modd ... sir#Locale .
If I put the following in config.cfg
Code: Select all
[recipe-name]
recipe-electronic-circuit-copper-plate=Recipe name in section recipe-name
I tried to make a file base.cfg next to config.cfg . But that has no effect either.
I had a look at other mods and there naming recipes works just fine.
Any knowledge/ideas? Thanks!