Failed to create entity 'speech-bubble'

Bugs that are actually features.
ABacker
Burner Inserter
Burner Inserter
Posts: 13
Joined: Sun Mar 03, 2019 11:48 pm
Contact:

Failed to create entity 'speech-bubble'

Post by ABacker »

I use the following codes to create the 'speech-bubble' entity, and game crashed saying unknown entity name 'speech-bubble'.
It would not crash if I replace 'speech-bubble' with 'flying-text'.

Code: Select all

                
                entity.surface.create_entity {
                    name = 'speech-bubble',
                    position = {x = entity.position.x, y = entity.position.y + 1},
                    text = entity.energy .. 'J',
                    lifetime = 10
                }
User avatar
Klonan
Factorio Staff
Factorio Staff
Posts: 5382
Joined: Sun Jan 11, 2015 2:09 pm
Contact:

Re: Failed to create entity 'speech-bubble'

Post by Klonan »

This isn't a bug, there is no entity called 'speech-bubble', try 'compi-speech-bubble'
ABacker
Burner Inserter
Burner Inserter
Posts: 13
Joined: Sun Mar 03, 2019 11:48 pm
Contact:

Re: Failed to create entity 'speech-bubble'

Post by ABacker »

Klonan wrote: Fri Feb 14, 2020 10:42 am This isn't a bug, there is no entity called 'speech-bubble', try 'compi-speech-bubble'
The api doc says there is 'speech-bubble', :shock:
https://lua-api.factorio.com/latest/Lua ... ate_entity

The game changelog says:
- Added "speech-bubble" entity.
User avatar
Deadlock989
Smart Inserter
Smart Inserter
Posts: 2529
Joined: Fri Nov 06, 2015 7:41 pm

Re: Failed to create entity 'speech-bubble'

Post by Deadlock989 »

ABacker wrote: Fri Feb 14, 2020 10:54 am
Klonan wrote: Fri Feb 14, 2020 10:42 am This isn't a bug, there is no entity called 'speech-bubble', try 'compi-speech-bubble'
The api doc says there is 'speech-bubble', :shock:
https://lua-api.factorio.com/latest/Lua ... ate_entity

The game changelog says:
- Added "speech-bubble" entity.
"speech-bubble" isn't the name of a prototyped entity, it is the entity type. create_entity expects a named prototype that was set up in the data stage.
ABacker
Burner Inserter
Burner Inserter
Posts: 13
Joined: Sun Mar 03, 2019 11:48 pm
Contact:

Re: Failed to create entity 'speech-bubble'

Post by ABacker »

Deadlock989 wrote: Fri Feb 14, 2020 10:59 am
ABacker wrote: Fri Feb 14, 2020 10:54 am
Klonan wrote: Fri Feb 14, 2020 10:42 am This isn't a bug, there is no entity called 'speech-bubble', try 'compi-speech-bubble'
The api doc says there is 'speech-bubble', :shock:
https://lua-api.factorio.com/latest/Lua ... ate_entity

The game changelog says:
- Added "speech-bubble" entity.
"speech-bubble" isn't the name of a prototyped entity, it is the entity type. create_entity expects a named prototype that was set up in the data stage.
My bad, got it, thanks.
Post Reply

Return to “Not a bug”