Add event "on_console_output" for console messages that are not chat or commands

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
SirFendi
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sat Mar 05, 2022 4:55 pm
Contact:

Add event "on_console_output" for console messages that are not chat or commands

Post by SirFendi »

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.
User avatar
PennyJim
Long Handed Inserter
Long Handed Inserter
Posts: 93
Joined: Wed Jan 18, 2023 3:49 am
Contact:

Re: Add event "on_console_output" for console messages that are not chat or commands

Post by PennyJim »

Ditto for my mod Better Chatting

I currently put an amount of effort into recreating the output of commands to replicate them instead of making them ephemeral with my entire re-implementation of chat. This is functionally unfeasible for things like the lua commands and the output of other mods.
I say an amount, because I am still missing a number of commands
Post Reply

Return to “Modding interface requests”