[Resolved] 0.15 not taking code line

Place to get help with not working mods / modding interface.
User avatar
Volvith
Inserter
Inserter
Posts: 40
Joined: Mon Jun 26, 2017 12:28 pm
Contact:

[Resolved] 0.15 not taking code line

Post 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?
Last edited by Volvith on Sun Jul 02, 2017 4:58 pm, edited 1 time in total.
Rational People: If it ain't fucked, don't fuck it.
Engineers: If it ain't fucked, unfuck it till it's perfect.
Me as an Engineer: If it ain't fucked, i'll fuck it till it is.
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: 0.15 not taking code line

Post by DaveMcW »

Code: Select all

table.insert(data.raw["assembling-machine"]["assembling-machine-1"]["crafting_categories"], "automatrius-assem_burner")
User avatar
Volvith
Inserter
Inserter
Posts: 40
Joined: Mon Jun 26, 2017 12:28 pm
Contact:

Re: 0.15 not taking code line

Post 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! ^^
Rational People: If it ain't fucked, don't fuck it.
Engineers: If it ain't fucked, unfuck it till it's perfect.
Me as an Engineer: If it ain't fucked, i'll fuck it till it is.
Post Reply

Return to “Modding help”