Extend signal_to_color_mapping to non-virtual signals
Posted: Mon Feb 13, 2017 11:08 pm
If you add non-virtual signals to the signal_to_color_mapping table, e.g.:
You get the following runtime error during the "Building prototypes" stage:
Code: Select all
table.insert(data.raw.lamp["small-lamp"].signal_to_color_mapping, {signal="iron-ore", color={r=0,g=0.25,b=0.5,a=0.75}})
Code: Select all
Error Util.cpp:57: Error in assignID, virtual-signal with name 'iron-ore' does not exist.