[0.16.21] Flying text not placeable by item or blueprintable

Bugs that are actually features.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

[0.16.21] Flying text not placeable by item or blueprintable

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

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

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

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

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5211
Joined: Tue Jul 12, 2016 9:03 am
Contact:

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

Post 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 ;).
Post Reply

Return to “Not a bug”