Start any Factorio game world.
Run these commands:
Code: Select all
/c x = game.player.gui.center.add{type = "frame"}; x.style.height = 100; x.style.width = 100
/c x.elem_tooltip = {type = "signal", name = "signal-A", signal_type = "virtual"}
When you try to read the elem_tooltip, perhaps to make a copy of it elsewhere, you get this:
Code: Select all
/c game.print(serpent.block(x.elem_tooltip))
Code: Select all
{
name = "signal-A",
signal_type = "virtual",
type = "virtual-signal",
}
EDIT: Oh, just to be really clear, I expect this output:
Code: Select all
{
name = "signal-A",
signal_type = "virtual",
type = "signal",
}

