Page 1 of 1

Custom furnace

Posted: Fri Oct 04, 2013 12:02 pm
by Nirahiel
Hi all, i wanted to create a custom furnace, and everything is fine, unless I change the "smelting_categories", then the game says my category is not registered. (Even though it is). Maybe it's trying to find it as a sort of crafting ? I dunno :s
Aren't crafting categories universal ? Why is there even a "smelting_categories" in the furnace code ? shouldn't it be "crafting_categories" ?

Re: Custom furnace

Posted: Fri Oct 04, 2013 12:08 pm
by kovarex
You need to add your category.
Categories are specified in base/prototypes/recipe-category/caregories.lua, so you can just create new category in your mod and use it.

Re: Custom furnace

Posted: Fri Oct 04, 2013 12:37 pm
by Nirahiel
kovarex wrote:You need to add your category.
Categories are specified in base/prototypes/recipe-category/caregories.lua, so you can just create new category in your mod and use it.
Already done, remember, I did a grinder :) It's a custom category isn't it ? :)

My file :

data:extend(
{
{
type = "recipe-category",
name = "industrio-grinding"
},
{
type = "recipe-category",
name = "coke-oven"
}
}
)

the grinding one works well, the coke oven doesn't work ... Maybe it's considered a "crafting" category and not a "smelting" one ? As I said, it's weird that the furnace uses smelting_categories and not crafting_categories (In the entity)

Re: Custom furnace

Posted: Fri Oct 04, 2013 12:57 pm
by kovarex
The smelting_category is only (probably misleading) identifier of the crafting categories.

Re: Custom furnace

Posted: Fri Oct 04, 2013 1:01 pm
by Nirahiel
Okay !
But then why isn't this working ? Can you meet me on Jabber ? :) I can't even play factorio because of this (I'm not going to revert everything I did !)

EDIT : I *MAY* have found the solution, give me a sec !
EDIT 2 : Yep, found the solution ... D'uh, created tech to unlock recipe, didn't add recipe yet ...