Trouble Modifying follower robot count tech

Place to get help with not working mods / modding interface.
DRT99
Inserter
Inserter
Posts: 25
Joined: Mon Jul 11, 2016 5:11 pm
Contact:

Trouble Modifying follower robot count tech

Post by DRT99 »

I am attempting to modify the follower robot count bonus from the repeatable techs, using

Code: Select all

data.raw["technology"]['follower-robot-count-1'].effects = {type = "maximum-following-robots-count", modifier = 2}
and getting the error

Code: Select all

error while loading technology prototype "follower-robot-count-1". Value must be a dictionary in property tree at ROOT.technology.follower-robot-count-1
Based on my (admittedly, very limited) knowledge, follower-robot-count techs for levels 1-6 are generated via a function, but they seem to be output as "follower-robot-count-[level]", so I would assume it is available as such for any mod loaded after base (but, again, very limited knowledge)

I am unsure where my error is, could someone point me in the right direction?
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3715
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Trouble Modifying follower robot count tech

Post by DaveMcW »

Effects is a dictionary. Each individual effect is also a dictionary. So you need two dictionaries.

Code: Select all

data.raw["technology"]['follower-robot-count-1'].effects = {{type = "maximum-following-robots-count", modifier = 2}}
Post Reply

Return to “Modding help”