Page 1 of 1

[0.16.21] Flying text not placeable by item or blueprintable

Posted: Fri Feb 09, 2018 2:43 am
by eradicator
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:

Code: Select all

data.raw["flying-text"]["flying-text"].placeable_by = { item="iron-plate", count = 1}
This seems to have no effect. Flying text is still ignored by blueprints.

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
  },
}
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.
error.png
error.png (5.05 KiB) Viewed 1161 times
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?

Re: [0.16.21] Flying text not placeable by item or blueprintable

Posted: Fri Feb 09, 2018 3:04 am
by Rseding91
Thanks for the report. This is working as intended: flying-text entities can't be part of blueprints just like ores and biters can't be part of bueprints.

Re: [0.16.21] Flying text not placeable by item or blueprintable

Posted: Fri Feb 09, 2018 4:02 am
by eradicator
Rseding91 wrote:Thanks for the report. This is working as intended: flying-text entities can't be part of blueprints just like ores and biters can't be part of bueprints.
What about the crash/error with the item that (tries to) place flying-text?

Re: [0.16.21] Flying text not placeable by item or blueprintable

Posted: Fri Feb 09, 2018 5:56 am
by Rseding91
eradicator wrote:
Rseding91 wrote:Thanks for the report. This is working as intended: flying-text entities can't be part of blueprints just like ores and biters can't be part of bueprints.
What about the crash/error with the item that (tries to) place flying-text?
The error tells you what's wrong. You simply can't make an entity that builds flying text from an item. There are several other entities like that as well.

Re: [0.16.21] Flying text not placeable by item or blueprintable

Posted: Fri Feb 09, 2018 6:46 am
by eradicator
Rseding91 wrote:
eradicator wrote:
Rseding91 wrote:Thanks for the report. This is working as intended: flying-text entities can't be part of blueprints just like ores and biters can't be part of bueprints.
What about the crash/error with the item that (tries to) place flying-text?
The error tells you what's wrong. You simply can't make an entity that builds flying text from an item. There are several other entities like that as well.
Except i can define such an item ptototype and it only crashes when i attempt to place it. Usually that kind of total-impossibility results in an error in the data phase ;).