not listing recipe

Place to get help with not working mods / modding interface.
Post Reply
oresKa2
Burner Inserter
Burner Inserter
Posts: 19
Joined: Sun Aug 30, 2015 9:10 pm
Contact:

not listing recipe

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

Simcra
Long Handed Inserter
Long Handed Inserter
Posts: 76
Joined: Wed Apr 06, 2016 6:05 am
Contact:

Re: not listing recipe

Post 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]"
  }

oresKa2
Burner Inserter
Burner Inserter
Posts: 19
Joined: Sun Aug 30, 2015 9:10 pm
Contact:

Re: not listing recipe

Post 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)

Simcra
Long Handed Inserter
Long Handed Inserter
Posts: 76
Joined: Wed Apr 06, 2016 6:05 am
Contact:

Re: not listing recipe

Post 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]"
}
})

Post Reply

Return to “Modding help”