Extend signal_to_color_mapping to non-virtual signals

User avatar
zx64
Long Handed Inserter
Long Handed Inserter
Posts: 58
Joined: Fri Dec 16, 2016 3:57 pm
Contact:

Extend signal_to_color_mapping to non-virtual signals

Post 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.
Rseding91
Factorio Staff
Factorio Staff
Posts: 14913
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Extend signal_to_color_mapping to non-virtual signals

Post by Rseding91 »

Changed for 0.15.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Implemented mod requests”