Page 1 of 1

[Resolved] "Made In" Question

Posted: Sun Sep 03, 2017 8:08 pm
by TheSAguy
I was wondering why sometimes "Made In" shows at the bottom of recipes and other times not.
Is there something I can do to add showing Made in, to my added recipes?

Image

Thanks.

Re: "Made In" Question

Posted: Sun Sep 03, 2017 9:02 pm
by Bilka
It depends on the crafting category afaik. Add a new crafting category to your items and some machines, and it should show up.

Re: "Made In" Question

Posted: Mon Sep 04, 2017 6:41 am
by Rseding91
Made in only shows when you're looking at the recipe in a context where you can't craft it.

So, recipes with fluid in your inventory, recipes in a machine where the machine can't craft that recipe and so on.

Re: "Made In" Question

Posted: Mon Sep 04, 2017 1:26 pm
by TheSAguy
Rseding91 wrote:Made in only shows when you're looking at the recipe in a context where you can't craft it.

So, recipes with fluid in your inventory, recipes in a machine where the machine can't craft that recipe and so on.
So why would my "Seed" recipe not show my greenhouse. It has a fluid, so can't be crafted by hand. I followed this old post.

I have:
recipe-categories.lua:

Code: Select all

	{
		type = "recipe-category",
		name = "biofarm-mod-greenhouse"
	},
Recipe:

Code: Select all

	--- Seeds from Water (BASIC)
	{
		type = "recipe",
		name = "bi_seed_1",
		icon = "__Bio_Industries__/graphics/icons/bio_seed1.png",
		category = "biofarm-mod-greenhouse",
		order = "a[bi]-ssw-a1[bi_seed_1]",		
		enabled = false,
		energy_required = 100,
		ingredients =
		{
			{type="item", name="raw-wood", amount=20},     
			{type="fluid", name="water", amount=100},
		},

		result_count = 40,
		result = "bi-seed"
	},
And Entity:

Code: Select all

------ Greenhouse
   {
    type = "assembling-machine",
    name = "bio-greenhouse",
    icon = "__Bio_Industries__/graphics/icons/bio_greenhouse.png",
    flags = {"placeable-neutral", "placeable-player", "player-creation"},
    minable = {hardness = 0.2, mining_time = 0.25, result = "bio-greenhouse"},
    collision_box = {{-1.2, -1.2}, {1.2, 1.2}},
    selection_box = {{-1.5, -1.5}, {1.5, 1.5}},
    max_health = 250,
    corpse = "medium-remnants",
    dying_explosion = "medium-explosion",
    crafting_categories = {"biofarm-mod-greenhouse"},
    crafting_speed = 0.75,
    energy_source =

	{
      type = "electric",
      usage_priority = "primary-input",
	  drain = "15kW",
	  emissions = -0.1, -- the "-" means it eats pollution. Absorbs about 10 PU
    },	

    energy_usage = "50kW",
    ingredient_count = 2,
    resistances =
    {
      {
        type = "fire",
        percent = 70
      }
    },
    fluid_boxes =
    {
      {
        production_type = "input",
        pipe_picture = assembler3pipepictures(),
        pipe_covers = pipecoverspictures(),
        base_area = 10,
        base_level = -1,
        pipe_connections = {{ type="input", position = {0, -2} }}
      },
    },
	module_specification =
    {
      module_slots = 2
    },
    allowed_effects = {"consumption", "speed"},
    animation =
    {
      filename = "__Bio_Industries__/graphics/entities/biofarm/bio_greenhouse_off.png",
      width = 266,
      height = 182,
      frame_count = 1,
	  scale = 0.5,
      shift = {0.3, 0}
    },
    working_visualisations =
    {
      {
        light = {intensity = 1, size = 6},
        animation =
        {
          filename = "__Bio_Industries__/graphics/entities/biofarm/bio_greenhouse_on.png",
		  width = 266,
		  height = 182,
		  frame_count = 1,
		  scale = 0.5,
		  shift = {0.3, 0}
        }
      }
    },
    open_sound = { filename = "__base__/sound/machine-open.ogg", volume = 0.85 },
    close_sound = { filename = "__base__/sound/machine-close.ogg", volume = 0.75 },
    vehicle_impact_sound =  { filename = "__base__/sound/car-metal-impact.ogg", volume = 0.65 },
  },
  
  
What am I missing?
Thanks.

Re: "Made In" Question

Posted: Thu Sep 07, 2017 4:13 pm
by TheSAguy
Is it only when the output is a fluid?

Re: "Made In" Question

Posted: Thu Sep 07, 2017 6:43 pm
by Rseding91
You have to give me a working mod. The files you provided reference biofarm pipe connectors and as such I can't load them to test.

Re: "Made In" Question

Posted: Thu Sep 07, 2017 8:32 pm
by TheSAguy
Sure thing! Mod attached.
I don't understand why the seed, seedlings don't have "Made In", since they have fluid as input, you can't craft by hand.

Thanks.

Re: "Made In" Question

Posted: Thu Sep 07, 2017 9:26 pm
by Rseding91
http://i.imgur.com/AGuijy1.jpg they do show made-in.

Are you using cheat mode? Because cheat mode allows you to craft any recipe that contains item results meaning you're able to craft all of the seeds by hand so it doesn't need to show made-in.

Re: [Resolved] "Made In" Question

Posted: Fri Sep 08, 2017 2:33 am
by TheSAguy
You're right!
I was doing all my testing

Code: Select all

/c game.player.cheat_mode = true; game.player.force.research_all_technologies()
Feel pretty silly now :oops:

Thanks for checking!