Code: Select all
{type="item", name="automation-science-pack", color={r=0.71,g=0.05,b=0.09,a=1.00}}
Code: Select all
{type="tool", name="automation-science-pack", color={r=0.71,g=0.05,b=0.09,a=1.00}}
Code: Select all
{type="item", name="automation-science-pack", color={r=0.71,g=0.05,b=0.09,a=1.00}}
Code: Select all
{type="tool", name="automation-science-pack", color={r=0.71,g=0.05,b=0.09,a=1.00}}
Does it give an error if you give this format:PantherX wrote: ↑Sun Apr 26, 2020 5:39 am Previously it was possible to map lamp signal colors to science packs as the following worked:
However as science packs are defined as "tools" this color mapping no longer works. If you change the signal mapping to:Code: Select all
{type="item", name="automation-science-pack", color={r=0.71,g=0.05,b=0.09,a=1.00}}
The game throws an error saying "Invalid signal type: tool". Is it possible to have a way to get this working again so that science packs can output a colored signal to lamps?Code: Select all
{type="tool", name="automation-science-pack", color={r=0.71,g=0.05,b=0.09,a=1.00}}
Code: Select all
{type="item", name="automation-science-pack", color={r=0.71,g=0.05,b=0.09,a=1.00}}
Science packs have been tools for a very long time, when did this previously work?Previously it was possible to map lamp signal colors to science packs as the following worked:
Code: Select all
{type = "item", name = "automation-science-pack", color = {r = 0.71, g = 0.05, b = 0.09, a = 1.00}},
{type = "item", name = "logistic-science-pack", color = {r = 0.18, g = 0.60, b = 0.11, a = 1.00}},
{type = "item", name = "chemical-science-pack", color = {r = 0.15, g = 0.65, b = 0.75, a = 1.00}},
{type = "item", name = "military-science-pack", color = {r = 0.23, g = 0.27, b = 0.31, a = 1.00}},
{type = "item", name = "production-science-pack", color = {r = 0.58, g = 0.11, b = 0.76, a = 1.00}},
{type = "item", name = "utility-science-pack", color = {r = 0.81, g = 0.69, b = 0.08, a = 1.00}},
{type = "item", name = "space-science-pack", color = {r = 0.96, g = 0.96, b = 0.96, a = 1.00}},
{type = "item", name = "burner-inserter", color = {r = 0.38, g = 0.31, b = 0.26, a = 0.92}},
{type = "item", name = "inserter", color = {r = 0.78, g = 0.51, b = 0.20, a = 0.92}},
{type = "item", name = "long-handed-inserter", color = {r = 0.76, g = 0.20, b = 0.13, a = 0.92}},
{type = "item", name = "fast-inserter", color = {r = 0.27, g = 0.45, b = 0.58, a = 0.92}},
{type = "item", name = "filter-inserter", color = {r = 0.45, g = 0.27, b = 0.54, a = 0.92}},
{type = "item", name = "stack-inserter", color = {r = 0.56, g = 0.63, b = 0.16, a = 0.92}},
{type = "item", name = "stack-filter-inserter", color = {r = 0.70, g = 0.70, b = 0.69, a = 0.92}},
Code: Select all
if data.raw[signal.type][signal.name] then