defines.entity_status.broken cannot be set through LuaEntity::status

User avatar
Quezler
Fast Inserter
Fast Inserter
Posts: 207
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

defines.entity_status.broken cannot be set through LuaEntity::status

Post by Quezler »

It is read only.
Attachments
Screenshot 2025-01-10 at 20.47.23.png
Screenshot 2025-01-10 at 20.47.23.png (29.47 KiB) Viewed 619 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 15712
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: defines.entity_status.broken cannot be set through LuaEntity::status

Post by Rseding91 »

If you want to get ahold of me I'm almost always on Discord.
curiosity
Filter Inserter
Filter Inserter
Posts: 657
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: defines.entity_status.broken cannot be set through LuaEntity::status

Post by curiosity »

Rseding91 wrote: Sun May 25, 2025 2:17 am It should be https://lua-api.factorio.com/latest/cla ... tom_status
That doesn't make any sense either. You can't specify one of the predefined states with that.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15712
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: defines.entity_status.broken cannot be set through LuaEntity::status

Post by Rseding91 »

Hmm, It looks like I fell for the same thing whoever wrote that doc line did. Oops.
If you want to get ahold of me I'm almost always on Discord.
User avatar
Quezler
Fast Inserter
Fast Inserter
Posts: 207
Joined: Fri Mar 25, 2016 6:37 pm
Contact:

Re: defines.entity_status.broken cannot be set through LuaEntity::status

Post by Quezler »

Also i found it quite curious that the default custom status for merely container prototypes was added just to support the crash site, i wonder why it doesn't just set the custom status via script as it generates the crash site since i can hardly imagine when someone would want to set a data stage custom status just on/for containers.
curiosity
Filter Inserter
Filter Inserter
Posts: 657
Joined: Wed Sep 11, 2019 4:13 pm
Contact:

Re: defines.entity_status.broken cannot be set through LuaEntity::status

Post by curiosity »

I assumed that it was a legacy artifact, but after looking into it I've found both broken status and custom status (and default status for containers) have appeared in 2.0.7. Really makes no sense.
User avatar
Therenas
Factorio Staff
Factorio Staff
Posts: 324
Joined: Tue Dec 11, 2018 2:10 pm
Contact:

Re: defines.entity_status.broken cannot be set through LuaEntity::status

Post by Therenas »

Fixed for the next release, thanks.
Post Reply

Return to “Resolved Requests”