Something weird with circuit network prereq for turrets tech

Place to get help with not working mods / modding interface.
Stroomschok
Manual Inserter
Manual Inserter
Posts: 3
Joined: Sun Apr 03, 2016 12:53 am
Contact:

Something weird with circuit network prereq for turrets tech

Post 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?
daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Something weird with circuit network prereq for turrets tech

Post 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.
quick links: log file | graphical issues | wiki
User avatar
Adil
Filter Inserter
Filter Inserter
Posts: 945
Joined: Fri Aug 15, 2014 8:36 pm
Contact:

Re: Something weird with circuit network prereq for turrets tech

Post by Adil »

Yeah, when you hover cursor over anything, under the name of anything appears list of mods, that add or modify this anything.
I do mods. Modding wiki is friend, it teaches how to mod. Api docs is friend too...
I also update mods, some of them even work.
Recently I did a mod tutorial.
Post Reply

Return to “Modding help”