Add event "on_console_output" for console messages that are not chat or commands
Posted: Sat Sep 07, 2024 4:31 pm
Request
Right now there are Lua events for chat messages and command messages sent by players. We would like to request for a similar event for the other kind(s) of messages that come to the console, such as feedback from the game about commands or research, or messages printed by mods or scripts.
The event would provide the message content as a string or list of strings with one per line. The source mod can perhaps be included as a property of the event as well.
Motivation
In the Factorio Access Mod, for players who cannot read the console text, we have started using the existing events to fetch the message contents and pass them to the vocalizer. We would like to do the same for other console output text. Other mods that parse the console might also benefit from access to more of the console text.
Thank you for considering this post.
Right now there are Lua events for chat messages and command messages sent by players. We would like to request for a similar event for the other kind(s) of messages that come to the console, such as feedback from the game about commands or research, or messages printed by mods or scripts.
The event would provide the message content as a string or list of strings with one per line. The source mod can perhaps be included as a property of the event as well.
Motivation
In the Factorio Access Mod, for players who cannot read the console text, we have started using the existing events to fetch the message contents and pass them to the vocalizer. We would like to do the same for other console output text. Other mods that parse the console might also benefit from access to more of the console text.
Thank you for considering this post.