Hey,
I dont know if this is intended or not, but when using a Signal which is also a Entity/Item orso, it shows the Rich Text, not the Icon.
Greetz,
Luzifer
[wheybags] [17.68] Rich Text virtual-signal
- LuziferSenpai
- Filter Inserter
- Posts: 333
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
Re: [wheybags] [17.68] Rich Text virtual-signal
Not a bug, it's not a virtual signal, it's an item.
- LuziferSenpai
- Filter Inserter
- Posts: 333
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
Re: [wheybags] [17.68] Rich Text virtual-signal
So I need to check for it?
Re: [wheybags] [17.68] Rich Text virtual-signal
I read the report as rich text for virtual signal "iron-ore" not showing the associated icon.
My Mods: mods.factorio.com
Re: [wheybags] [17.68] Rich Text virtual-signal
There is no "iron-ore" virtual signal, so that would be working correctly. Virtual signals are only the colors + letters + numbers, not the items and fluids.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Re: [wheybags] [17.68] Rich Text virtual-signal
[sarcasm]Factorio also ensures there's never any mod doing something like adding virtual with the same name as item.[/sarcasm]
My Mods: mods.factorio.com
Re: [wheybags] [17.68] Rich Text virtual-signal
If your mod does add virtual signal prototype called iron-ore, there will be virtual signal called iron-ore in the game and
Code: Select all
[img=virtual-signal/iron-ore]
Re: [wheybags] [17.68] Rich Text virtual-signal
Correct.
I just made a mod to test it for fluid, item and entity.
In game result:
I just made a mod to test it for fluid, item and entity.
Code: Select all
local icon_background = { icon = "__base__/graphics/icons/signal/signal_white.png", icon_size = 32 }
data:extend{
{
type = "item-subgroup",
name = "virtual-signal-test",
group = "signals",
order = "zzz"
},
}
local function make_signal(base)
local vs_icons
if base.icons then
vs_icons = table.deepcopy(base.icons)
table.insert(vs_icons, 1, icon_background)
elseif base.icon then
vs_icons = { icon_background, { icon = base.icon, icon_size = base.icon_size } }
else
vs_icons = { icon_background }
end
local signal = {
type = "virtual-signal",
name = base.name,
icons = vs_icons,
subgroup = "virtual-signal-test",
order = "z",
}
data:extend{signal}
end
make_signal(data.raw.fluid["water"])
make_signal(data.raw.item["iron-plate"])
make_signal(data.raw.item["stone-furnace"])
My Mods: mods.factorio.com
- LuziferSenpai
- Filter Inserter
- Posts: 333
- Joined: Tue Jul 08, 2014 10:06 am
- Contact:
Re: [wheybags] [17.68] Rich Text virtual-signal
I just need to to put the type as Rich Text Filter, in that way it should work.