[Resolved] "Made In" Question

Place to get help with not working mods / modding interface.
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1456
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

[Resolved] "Made In" Question

Post 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.
Last edited by TheSAguy on Fri Sep 08, 2017 2:23 am, edited 1 time in total.
Bilka
Factorio Staff
Factorio Staff
Posts: 3470
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: "Made In" Question

Post 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.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Rseding91
Factorio Staff
Factorio Staff
Posts: 16016
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: "Made In" Question

Post 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.
If you want to get ahold of me I'm almost always on Discord.
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1456
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Re: "Made In" Question

Post 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.
Attachments
recipe-categories.lua
Category
(385 Bytes) Downloaded 74 times
recipe.lua
Recipe
(14.09 KiB) Downloaded 65 times
entities.lua
Entities
(11.54 KiB) Downloaded 82 times
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1456
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Re: "Made In" Question

Post by TheSAguy »

Is it only when the output is a fluid?
Rseding91
Factorio Staff
Factorio Staff
Posts: 16016
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: "Made In" Question

Post 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.
If you want to get ahold of me I'm almost always on Discord.
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1456
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Re: "Made In" Question

Post 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.
Attachments
Bio_Industries_1.9.4.zip
(8.1 MiB) Downloaded 64 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 16016
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: "Made In" Question

Post 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.
If you want to get ahold of me I'm almost always on Discord.
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1456
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Re: [Resolved] "Made In" Question

Post 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!
Post Reply

Return to “Modding help”