Problem toying with infinite tech

Place to get help with not working mods / modding interface.
User avatar
Stargateur
Fast Inserter
Fast Inserter
Posts: 247
Joined: Sat Oct 05, 2019 6:17 am
Contact:

Problem toying with infinite tech

Post by Stargateur »

I would like an infinite tech to activate or desactivate "create-ghost-on-entity-death". I have fail to have the game make it infinite:

Code: Select all

  data:extend({
    {
      type = "technology",
      name = "ghost-entity-on-death-true-1",
      icon_size = 256,
      icon = "__base__/graphics/technology/construction-robotics.png",
      effects = { {
        type = "create-ghost-on-entity-death",
        modifier = true,
      } },
      unit =
      {
        count_formula = "L",
        ingredients =
        {
          { "automation-science-pack", 1 },
        },
        time = 1,
        max_level = "infinite",
      },
    },
  })
I tried several thing and nothing work. Did I do a mistake or does infinite search only work for specific effect that have modifier that is not an number ?
Natha
Filter Inserter
Filter Inserter
Posts: 260
Joined: Sun Mar 15, 2015 1:48 pm
Contact:

Re: Problem toying with infinite tech

Post by Natha »

What is the max level you get?
I just saw that max_level must not be inside unit
Post Reply

Return to “Modding help”