Page 1 of 1

Something weird with circuit network prereq for turrets tech

Posted: Wed Apr 06, 2016 4:53 pm
by Stroomschok
In the tech tree, Circuit Networks is a prerequisite for Turrets.

However, if you look in the code this is is not mentioned.

Code: Select all

type = "technology",
    name = "turrets",
    icon = "__base__/graphics/technology/turrets.png",
    effects =
    {
      {
        type = "unlock-recipe",
        recipe = "gun-turret"
      }
    },
    unit =
    {
      count = 10,
      ingredients = {{"science-pack-1", 1}},
      time = 10
    },
    order = "a-j-a"
And if I try to change it with the following code, Circuit Network is changed properly, but Turrets isn't.

Code: Select all

data.raw.technology["turrets"].prerequisites = 
	{"electronics", "military"}

data.raw.technology["circuit-network"].prerequisites = 
	{"advanced-electronics"}

Am I doing something wrong?

Re: Something weird with circuit network prereq for turrets tech

Posted: Wed Apr 06, 2016 5:05 pm
by daniel34
Stroomschok wrote:In the tech tree, Circuit Networks is a prerequisite for Turrets.
Are you using any mods? None of the Turrets (Gun and Laser) require Circuit Network in the base game.

Re: Something weird with circuit network prereq for turrets tech

Posted: Wed Apr 06, 2016 8:03 pm
by Adil
Yeah, when you hover cursor over anything, under the name of anything appears list of mods, that add or modify this anything.