Custom status message for entities

PFQNiet
Filter Inserter
Filter Inserter
Posts: 290
Joined: Sat Sep 05, 2020 7:48 pm
Contact:

Custom status message for entities

Post by PFQNiet »

It would be nice if there were some way of setting a custom status text for entities. "Disabled by script" is all well and good but not very descriptive for the player. Setting the colour of the dot would be nice too.

One example application for this would be in the Transport Drones mod, as the requester depots are "disabled" assembling machines, it just permanently shows a red dot with "disabled by script". With this interface request, it could show more useful things like "No drones", "No fuel", or even "Working" with a green light when all is well!
Bilka
Factorio Staff
Factorio Staff
Posts: 3618
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: Custom status message for entities

Post by Bilka »

This was added as LuaEntity::custom_status.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Implemented mod requests”