Page 1 of 1

multiple recipe categories

Posted: Tue May 10, 2016 5:51 pm
by judos
Hi there,

Currently it's only possible to defiine one category per recipe. E.g.:

Code: Select all

{
  type = "recipe",
  name = "smelt-iron",
  category = "smelting"
}
However it would be useful to have the possibility of multiple categories per recipe.
Currently I have to do a workaround:
If a recipe should support two recipe categories:
- add a new recipe-category
- extend all necessary machines to support this recipe-category

I mean it's feasible, but still not so nice...

Re: multiple recipe categories

Posted: Wed May 11, 2016 9:45 am
by bobingabout
Indeed, I have a similar problem, I want me electronics to be hand craftable, and craftable in the normal crafting machines, and a special electronics crafting machine. My solution was to create 2 new electronics categories, one for able to be crafted by hand, and another machine only. I then added the hand crafting version to the player entity, and both to the machine, and all assembling machines.

The issue here though is... well, if you're playing sandbox mode, they don't have access to the new hand crafting category, so the work around doesn't work.

If I was able to have 2 categories, Crafting/Crafting-machine and Electronics/Electronics-machine, then it would work without adding the extra category to the player entity..

Re: multiple recipe categories

Posted: Wed May 11, 2016 11:35 am
by judos
You mean in God mode it's not possible to craft it?
Is there a special table for supportes categories in sandbox or god mode maybe..?

Re: multiple recipe categories

Posted: Wed May 11, 2016 2:09 pm
by bobingabout
judos wrote:You mean in God mode it's not possible to craft it?
Is there a special table for supportes categories in sandbox or god mode maybe..?
Hardcoded to be "crafting" only, which basically means that if you want anything to be hand craftable in godmode, it needs to be in the standard "crafting" category.

But yeah, it would be useful if you could specify multiple categories on both recipe and machine.