Page 1 of 1

not listing recipe

Posted: Sun Apr 24, 2016 12:09 pm
by oresKa2
hey,
I am trying to edit the base file's for my mod and add a recipe

Code: Select all

  {
    type = "recipe",
    name ="coal-craking",
    category = "chemistry",
    enabled = "false",
    energy_required = 5,
    ingredients =
    {
      {type="item", name="coal", amount=12},

    },
    results=
    {
      {type="fluid", name="crude-oil", amount=4}
    },
    subgroup = "fluid",
    icon = "__base__/graphics/icons/fluid/coal-cracking.png",
    order = "b[fluid-chemistry]-a[coal-cracking]"
,	 
	 {
    type = "recipe",
    name = "wood-oil-processing",
    category = "chemistry",
    enabled = false,
    energy_required = 20,
    ingredients =
    {
      {type="item", name="raw-wood", amount=40}
    },
    results=
    {
      {type="fluid", name="crude-oil", amount=10},
    },
    icon = "__base__/graphics/icons/fluid/basic-oil-processing.png",
    subgroup = "fluid",
    order = "b[fluid-chemistry]-a[wood-oil-processing]"
  },
   {
    type = "recipe",
    name = "coal-oil-processing",
    category = "oil-processing",
    enabled = false,
    energy_required = 5,
    ingredients =
    {
      {type="fluid", name="crude-oil", amount=10}
	  {type="item", name="coal", amount=4}
    },
    results=
    {
      {type="fluid", name="heavy-oil", amount=6},
      {type="fluid", name="light-oil", amount=4.5},
      {type="fluid", name="petroleum-gas", amount=6}
    },
    icon = "__base__/graphics/icons/fluid/advanced-oil-processing.png",
    subgroup = "fluid",
    order = "a[oil-processing]-a[coal-oil-processing]"
the coal craking is doing just fine but the wood and coal oil processing are not showing up.
am I just being blind and not seeing the obvious problem?

smal note. I am not experienced with lua.

Re: not listing recipe

Posted: Sun Apr 24, 2016 12:21 pm
by Simcra
your code is not wrapped properly, see below

Code: Select all

  {
    type = "recipe",
    name ="coal-craking",
    category = "chemistry",
    enabled = "false",
    energy_required = 5,
    ingredients =
    {
      {type="item", name="coal", amount=12},

    },
    results=
    {
      {type="fluid", name="crude-oil", amount=4}
    },
    subgroup = "fluid",
    icon = "__base__/graphics/icons/fluid/coal-cracking.png",
    order = "b[fluid-chemistry]-a[coal-cracking]"
  },   
  {
    type = "recipe",
    name = "wood-oil-processing",
    category = "chemistry",
    enabled = false,
    energy_required = 20,
    ingredients =
    {
      {type="item", name="raw-wood", amount=40}
    },
    results=
    {
      {type="fluid", name="crude-oil", amount=10},
    },
    icon = "__base__/graphics/icons/fluid/basic-oil-processing.png",
    subgroup = "fluid",
    order = "b[fluid-chemistry]-a[wood-oil-processing]"
  },
  {
    type = "recipe",
    name = "coal-oil-processing",
    category = "oil-processing",
    enabled = false,
    energy_required = 5,
    ingredients =
    {
      {type="fluid", name="crude-oil", amount=10}
     {type="item", name="coal", amount=4}
    },
    results=
    {
      {type="fluid", name="heavy-oil", amount=6},
      {type="fluid", name="light-oil", amount=4.5},
      {type="fluid", name="petroleum-gas", amount=6}
    },
    icon = "__base__/graphics/icons/fluid/advanced-oil-processing.png",
    subgroup = "fluid",
    order = "a[oil-processing]-a[coal-oil-processing]"
  }

Re: not listing recipe

Posted: Sun Apr 24, 2016 12:33 pm
by oresKa2
Simcra wrote:your code is not wrapped properly, see below

Code: Select all

  {
    type = "recipe",
    name ="coal-craking",
    category = "chemistry",
    enabled = "false",
    energy_required = 5,
    ingredients =
    {
      {type="item", name="coal", amount=12},

    },
    results=
    {
      {type="fluid", name="crude-oil", amount=4}
    },
    subgroup = "fluid",
    icon = "__base__/graphics/icons/fluid/coal-cracking.png",
    order = "b[fluid-chemistry]-a[coal-cracking]"
  },   
  {
    type = "recipe",
    name = "wood-oil-processing",
    category = "chemistry",
    enabled = false,
    energy_required = 20,
    ingredients =
    {
      {type="item", name="raw-wood", amount=40}
    },
    results=
    {
      {type="fluid", name="crude-oil", amount=10},
    },
    icon = "__base__/graphics/icons/fluid/basic-oil-processing.png",
    subgroup = "fluid",
    order = "b[fluid-chemistry]-a[wood-oil-processing]"
  },
  {
    type = "recipe",
    name = "coal-oil-processing",
    category = "oil-processing",
    enabled = false,
    energy_required = 5,
    ingredients =
    {
      {type="fluid", name="crude-oil", amount=10}
     {type="item", name="coal", amount=4}
    },
    results=
    {
      {type="fluid", name="heavy-oil", amount=6},
      {type="fluid", name="light-oil", amount=4.5},
      {type="fluid", name="petroleum-gas", amount=6}
    },
    icon = "__base__/graphics/icons/fluid/advanced-oil-processing.png",
    subgroup = "fluid",
    order = "a[oil-processing]-a[coal-oil-processing]"
  }
thanks for the repy
but it still feels like not working :cry:

Code: Select all

{
    type = "recipe",
    name ="coal-craking",
    category = "chemistry",
    enabled = "false",
    energy_required = 5,
    ingredients =
    {
      {type="item", name="coal", amount=12},

    },
    results=
    {
      {type="fluid", name="crude-oil", amount=4}
    },
    subgroup = "fluid",
    icon = "__base__/graphics/icons/fluid/coal-cracking.png",
    order = "b[fluid-chemistry]-a[coal-cracking]"
  },   
  {
    type = "recipe",
    name = "wood-oil-processing",
    category = "chemistry",
    enabled = false,
    energy_required = 20,
    ingredients =
    {
      {type="item", name="raw-wood", amount=40}
    },
    results=
    {
      {type="fluid", name="crude-oil", amount=10},
    },
    icon = "__base__/graphics/icons/fluid/basic-oil-processing.png",
    subgroup = "fluid",
    order = "b[fluid-chemistry]-a[wood-oil-processing]"
  },
  {
    type = "recipe",
    name = "coal-oil-processing",
    category = "oil-processing",
    enabled = false,
    energy_required = 5,
    ingredients =
    {
      {type="fluid", name="crude-oil", amount=10}
     {type="item", name="coal", amount=4}
    },
    results=
    {
      {type="fluid", name="heavy-oil", amount=6},
      {type="fluid", name="light-oil", amount=4.5},
      {type="fluid", name="petroleum-gas", amount=6}
    },
    icon = "__base__/graphics/icons/fluid/advanced-oil-processing.png",
    subgroup = "fluid",
    order = "a[oil-processing]-a[coal-oil-processing]"
  }
it is as off now in the base game's file's cause doing it as a separate mod was not so much fun for me (aka crash ahoi)

Re: not listing recipe

Posted: Sun Apr 24, 2016 12:45 pm
by Simcra
Try this

Code: Select all

data:extend({
{
	type = "recipe",
	name ="coal-craking",
	category = "chemistry",
	enabled = "false",
	energy_required = 5,
	ingredients = {
		{type="item", name="coal", amount=12},
	},
	results = {
		{type="fluid", name="crude-oil", amount=4},
	},
	subgroup = "fluid",
	icon = "__base__/graphics/icons/fluid/coal-cracking.png",
	order = "b[fluid-chemistry]-a[coal-cracking]"
},   
{
	type = "recipe",
	name = "wood-oil-processing",
	category = "chemistry",
	enabled = false,
	energy_required = 20,
	ingredients = {
		{type="item", name="raw-wood", amount=40},
	},
	results = {
		{type="fluid", name="crude-oil", amount=10},
	},
	icon = "__base__/graphics/icons/fluid/basic-oil-processing.png",
	subgroup = "fluid",
	order = "b[fluid-chemistry]-a[wood-oil-processing]"
},
{
	type = "recipe",
	name = "coal-oil-processing",
	category = "oil-processing",
	enabled = false,
	energy_required = 5,
	ingredients = {
		{type="fluid", name="crude-oil", amount=10},
		{type="item", name="coal", amount=4}
	},
	results = {
		{type="fluid", name="heavy-oil", amount=6},
		{type="fluid", name="light-oil", amount=4.5},
		{type="fluid", name="petroleum-gas", amount=6},
	},
	icon = "__base__/graphics/icons/fluid/advanced-oil-processing.png",
	subgroup = "fluid",
	order = "a[oil-processing]-a[coal-oil-processing]"
}
})