[Genhis][2.0.65] Technology icons show both research_trigger and unit, but only research_trigger is used
Posted: Mon Aug 25, 2025 7:52 am
When defining a TechnologyPrototype with both a research_trigger and a cost then the technology screen shows the icons from both parameters, but only the research_trigger is used to unlock the technology.
Used code:
Observed result:

When mining a locomotive this technology is unlocked and the research cost is omitted. Therefore the icons from the research cost are redundant.
Expected result:

Next to that, either Factorio should throw an error if both research_trigger and cost are defined, or update the API docs to state that cost does nothing if research_trigger is defined.
Used code:
Code: Select all
data:extend({{
type = "technology",
name = "foo-train",
icon = "__base__/graphics/technology/railway.png",
icon_size = 256,
research_trigger = {
type = "mine-entity",
entity = "locomotive"
},
unit = {
count = 1,
time = 1,
ingredients = {{"automation-science-pack", 1}}
},
effects = {{
type = "unlock-recipe",
recipe = "locomotive"
}}
}})

When mining a locomotive this technology is unlocked and the research cost is omitted. Therefore the icons from the research cost are redundant.
Expected result:

Next to that, either Factorio should throw an error if both research_trigger and cost are defined, or update the API docs to state that cost does nothing if research_trigger is defined.