Making a new category for my assembler?

Place to get help with not working mods / modding interface.
YoloJoe
Inserter
Inserter
Posts: 34
Joined: Wed Apr 13, 2016 2:56 pm
Contact:

Making a new category for my assembler?

Post by YoloJoe »

Hi! :D

I've got my new assembler working now, but I want it to only be able to assemble one thing. (I will only be able to select one thing from the list when I click on my assembler.) I guess I need to create a new category for it? However when I add something like:

Code: Select all

{
	type = "NewCategory",
	name = "NewItemName"
  }
into my categories.lua file, it just returns "no loader found for 'NewCategory' ".

I guess my custom item also needs to be set to 'type = "NewCategory" ' and my assembler to 'Crafting_categories = "NewItemName" '. right?
User avatar
Arch666Angel
Smart Inserter
Smart Inserter
Posts: 1636
Joined: Sun Oct 18, 2015 11:52 am
Contact:

Re: Making a new category for my assembler?

Post by Arch666Angel »

category

Code: Select all

{
    type = "recipe-category",
    name = "newcraftingcategory",
  },
recipe

Code: Select all

 {
    type = "recipe",
    name = "blubb",
    category = "newcraftingcategory",
   ...
 }
assembler entity

Code: Select all

 { 
    type = "assembling-machine",
    name = "blubb-maker",
    crafting_categories = {"newcraftingcategory"},
   ...
 }
JasonC
Filter Inserter
Filter Inserter
Posts: 451
Joined: Tue Mar 22, 2016 3:05 am
Contact:

Re: Making a new category for my assembler?

Post by JasonC »

Also fwiw the Terraforming mod does this, so there's should be some example code there too.
Took a break from 0.12.29 to 0.17.79, and then to ... oh god now it's 1.something. I never know what's happening.
YoloJoe
Inserter
Inserter
Posts: 34
Joined: Wed Apr 13, 2016 2:56 pm
Contact:

Re: Making a new category for my assembler?

Post by YoloJoe »

Thanks a lot guys! I think I tried every combination but that one XD
Post Reply

Return to “Modding help”