Custom furnace

Place to get help with not working mods / modding interface.
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Custom furnace

Post 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" ?
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Custom furnace

Post 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.
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: Custom furnace

Post 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)
kovarex
Factorio Staff
Factorio Staff
Posts: 8207
Joined: Wed Feb 06, 2013 12:00 am
Contact:

Re: Custom furnace

Post by kovarex »

The smelting_category is only (probably misleading) identifier of the crafting categories.
Nirahiel
Filter Inserter
Filter Inserter
Posts: 351
Joined: Mon Sep 23, 2013 2:18 pm
Contact:

Re: Custom furnace

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

Return to “Modding help”