[RESOLVED]fast_replaceable_group

Place to get help with not working mods / modding interface.
Post Reply
User avatar
NathGamer
Inserter
Inserter
Posts: 42
Joined: Fri Feb 05, 2016 9:37 am
Contact:

[RESOLVED]fast_replaceable_group

Post by NathGamer »

I am trying to make solar panels be in a fast_replaceable_group but when I try and do it I get an error saying that the solar panel group enitiy doesn't exist or something.

This is what i am using:

Code: Select all

data.raw.solar-panel["solar-panel"].fast_replaceable_group = "solar-panel"
I am doing the same thing as above with accumulators and steam engines. Does someone know how I can do this successfully?
Last edited by NathGamer on Mon Apr 17, 2017 6:54 am, edited 1 time in total.

User avatar
NathGamer
Inserter
Inserter
Posts: 42
Joined: Fri Feb 05, 2016 9:37 am
Contact:

Re: fast_replaceable_group

Post by NathGamer »

I found my answer in another mods code.

Here is the solution:

Code: Select all

data.raw["solar-panel"]["solar-panel"].fast_replaceable_group = "solar-panel"

Post Reply

Return to “Modding help”