Page 1 of 1

Extend signal_to_color_mapping to non-virtual signals

Posted: Mon Feb 13, 2017 11:08 pm
by zx64
If you add non-virtual signals to the signal_to_color_mapping table, e.g.:

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}})
You get the following runtime error during the "Building prototypes" stage:

Code: Select all

Error Util.cpp:57: Error in assignID, virtual-signal with name 'iron-ore' does not exist.

Re: Extend signal_to_color_mapping to non-virtual signals

Posted: Thu Feb 16, 2017 1:49 am
by Rseding91
Changed for 0.15.