[0.16.21] Flying text not placeable by item or blueprintable
Posted: Fri Feb 09, 2018 2:43 am
While trying to store some extra data in a blueprint i thought "Maybe i can abuse a placeable flying text to store some strings...".
So i went ahead and tried making flying-text blueprintable:This seems to have no effect. Flying text is still ignored by blueprints.
Then i tried making an item to place a flying text:This creates the item correctly (but still not blueprintable). I can player.insert() it and pick it up in my inventory, but as soon as my cursor "touches" the surface (i.e. either by moving the cursor outside of the window or by closing the window) the game shows an error message and quits to desktop after pressing ok.
Expected behavior:
Allow specifying a default text (or default to empty string) in the prototye so that the placement preview render works. And flying text type entities should be blueprintable if they have an item to place or placeable_by?
So i went ahead and tried making flying-text blueprintable:
Code: Select all
data.raw["flying-text"]["flying-text"].placeable_by = { item="iron-plate", count = 1}
Then i tried making an item to place a flying text:
Code: Select all
data:extend{
{
type = "item",
name = "blackbox",
icon = "__base__/graphics/icons/assembling-machine-1.png",
icon_size = 32,
flags = {"goes-to-quickbar"},
-- subgroup = "production-machine",
-- order = "a[assembling-machine-1]",
place_result = "flying-text",
--text = 'test', --does't work :P
stack_size = 50
},
}
Expected behavior:
Allow specifying a default text (or default to empty string) in the prototye so that the placement preview render works. And flying text type entities should be blueprintable if they have an item to place or placeable_by?