Chat API request: Ability to add a colored tag/prefix to player chat messages before render
Posted: Sun Aug 09, 2026 8:01 am
In my modded server, which runs the Multi Team Support mod, I provide a Global chat vs Team chat toggle.
It looks like this:
In global mode, chat messages are sent to all teams, and in team mode they are sent only to players on your own team.
The biggest issue I'm facing is that when in team-only chat mode, I'm not able to intercept the chat messages before they are printed to the screen by the Factorio engine. Instead of a chat message like:
bits-orio: Lets do trains.
I need it to be tagged as global or team:
bits-orio [Global]: Lets do trains.
OR
bits-orio [Team]: Lets do trains.
That way it's easier for players to get a visual reinforcement of which chat mode they're currently in. Right now, since there's no indication, it's easy for a player to be in team-only chat mode by accident and forget to check the toggle at the top of their screen. Then, 5-6 minutes of active chatting later, they realize the reason other teams aren't responding is that they've been accidentally sending messages to their own team only.
I do know that /shout and /s exist, but that's not desired. I would like chat to be tagged as global or team.
So I'd like to request improvements to the modding API related to chat. What am I proposing? I'm proposing the inclusion of an optional tag whose content and color can be mod-controlled. The content would usually be just one word under 10 characters, or it could even be a single game icon. For example, I could use the G signal letter for Global and the T signal letter for Team.
It looks like this:
In global mode, chat messages are sent to all teams, and in team mode they are sent only to players on your own team.
The biggest issue I'm facing is that when in team-only chat mode, I'm not able to intercept the chat messages before they are printed to the screen by the Factorio engine. Instead of a chat message like:
bits-orio: Lets do trains.
I need it to be tagged as global or team:
bits-orio [Global]: Lets do trains.
OR
bits-orio [Team]: Lets do trains.
That way it's easier for players to get a visual reinforcement of which chat mode they're currently in. Right now, since there's no indication, it's easy for a player to be in team-only chat mode by accident and forget to check the toggle at the top of their screen. Then, 5-6 minutes of active chatting later, they realize the reason other teams aren't responding is that they've been accidentally sending messages to their own team only.
I do know that /shout and /s exist, but that's not desired. I would like chat to be tagged as global or team.
So I'd like to request improvements to the modding API related to chat. What am I proposing? I'm proposing the inclusion of an optional tag whose content and color can be mod-controlled. The content would usually be just one word under 10 characters, or it could even be a single game icon. For example, I could use the G signal letter for Global and the T signal letter for Team.