defines.entity_status.broken cannot be set through LuaEntity::status
defines.entity_status.broken cannot be set through LuaEntity::status
It is read only.
- Attachments
-
- Screenshot 2025-01-10 at 20.47.23.png (29.47 KiB) Viewed 619 times
Re: defines.entity_status.broken cannot be set through LuaEntity::status
If you want to get ahold of me I'm almost always on Discord.
Re: defines.entity_status.broken cannot be set through LuaEntity::status
That doesn't make any sense either. You can't specify one of the predefined states with that.Rseding91 wrote: Sun May 25, 2025 2:17 am It should be https://lua-api.factorio.com/latest/cla ... tom_status
Re: defines.entity_status.broken cannot be set through LuaEntity::status
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.
Re: defines.entity_status.broken cannot be set through LuaEntity::status
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.
Re: defines.entity_status.broken cannot be set through LuaEntity::status
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.
Re: defines.entity_status.broken cannot be set through LuaEntity::status
Fixed for the next release, thanks.