Page 1 of 1

[Resolved] 0.15 not taking code line

Posted: Sun Jul 02, 2017 10:49 am
by Volvith
Hey guys,

Transferring my (unfinished) mod to 0.15, but the following line of code just stopped working:

Code: Select all

table.insert(data.raw["assembling-machine"]["assembling-machine-1"], {crafting_categories = "automatrius-assem_burner"})
EDIT: Same line for machine-2/3.

I reassigned a bunch of base recipes to the crafting category above, created an individual assembler that only takes that category, and added the new cat to the existing assemblers.
Problem is, items with this cat now don't show up in the assemblers anymore.

Did the formatting of a function like this change with 0.15, or did i screw up somewhere else?

Re: 0.15 not taking code line

Posted: Sun Jul 02, 2017 2:57 pm
by DaveMcW

Code: Select all

table.insert(data.raw["assembling-machine"]["assembling-machine-1"]["crafting_categories"], "automatrius-assem_burner")

Re: 0.15 not taking code line

Posted: Sun Jul 02, 2017 4:57 pm
by Volvith
DaveMcW wrote:

Code: Select all

table.insert(data.raw["assembling-machine"]["assembling-machine-1"]["crafting_categories"], "automatrius-assem_burner")
Ah, that's what changed.
Thank you kindly sir! ^^