SANDBOX — this is a test environment. No servers are actually deployed and no real payments are charged.
Source-checkedChat & community

Better Chatting

by PennyJim · for Factorio

Provides advanced chat functionality

6.7KDownloads
18 mo agoLast updated
MITLicense
2.0Latest game version

About Better Chatting

From Factorio Mod Portal

Provides advanced chat functionality

An attempt at improving Factorio's built in chat.

Recommended to be combined with Twemoji or Fluent Emoji (or both)

Emojipack

The main reason I made this mod, is to add support for discord style emotes. eg: :purple_heart: -> 💜

This functions by other mods calling remote.call("emojipack registration", "add") with the mod name and a dictionary of shortcodes and their tags. I recommend using [img=<type>.<item>] rather than [<type>=<item>] as it looks significantly nicer in chat.

Scripting

To print a permanent message instead of letting Better Chat clear it away, use remote.call("better-chat", "send", {})
The arguments are:

  • message - LocalisedString : The contents of the message.
  • level - historyLevel : Whether the message is intended for "global" broadcast, everyone on some "force", everyone on a "surface", or a specific "player".
  • recipient - uint : Either the player, surface, or force that recieves it if the send\_level was not global.
  • color - Color? : The base color of the message.
  • process_color - boolean? : Whether or not the message is faded out by the player's settings. Defaults to false.
  • skip_print - boolean? : Whether or not the added chat is printed at all. This will also skip any sound. Defaults to false.
  • This was intended to be able to preserve the output of commands with less jank.
  • clear - boolean? : Whether or not the chat is cleared before printing the new message. Defaults to true.
  • sound - defines.print_sound? : If a sound should be emitted for this message. Defaults to defines.print_sound.use_player_settings if clear is false. Otherwise defaults to defines.print_sound.never.
  • sound_path - SoundPath? : The sound to play. If not given, UtilitySounds::console\_message will be used instead.
  • volume_modifier - float? : The volume of the sound to play. Must be between 0 and 1 inclusive. Defaults to 1

Compatibility

For easy compatibility, you can just use this code snippet and turn every object.print(message, settings) into compat_send(object, message, settings).

---@type boolean?
local has_better_chat = nil
local send_levels = {
	["LuaGameScript"] = "global",
	["LuaForce"] = "force",
	["LuaPlayer"] = "player",
	["LuaSurface"] = "surface",
}
--- Safely attempts to print via the Better Chatting's interface
---@param recipient LuaGameScript|LuaForce|LuaPlayer|LuaSurface
---@param msg LocalisedString
---@param print_settings PrintSettings?
function compat_send(recipient, msg, print_settings)
	if has_better_chat == nil then
		local better_chat = remote.interfaces["better-chat"]
		has_better_chat = better_chat and better_chat["send"] or false
	end

	if not has_better_chat then return recipient.print(msg, print_settings) end
	print_settings = print_settings or {}


	local send_level = send_levels[recipient.object_name]
	---@type int?
	local send_index
	if send_level ~= "global" then
		send_index = recipient.index
		if not send_index then
			error("Invalid Recipient", 2)
		end
	end

	remote.call("better-chat", "send", {
		message = msg,
		send_level = send_level,
		color = print_settings.color,
		recipient = send_index,
		clear = false,

		sound = print_settings.sound,
		sound_path = print_settings.sound_path,
		volume_modifier = print_settings.volume_modifier
	})
end

Todo List:

  • \[ ] Add nicknames

Highlights

From source data

Game versions

Built for Factorio 2.0.

Footprint

Rated a light load on a server.

License

Published under MIT.

Better Chatting on Nxeon

From our catalogue
One-click install
Supported on Nxeon Factorio servers. We download it from Factorio Mod Portal, place it, and restart the server.
Server side
Required on the server
Server load
light
Smallest plan we suggest
Factorio — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
0.4.6, released 2025-06-05

Run Better Chatting on a Factorio server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Factorio Mod Portal as “Mods”

Chat & community

Chat, voice, Discord, clans and other community features.

Runs on your server

From source side support

Factorio Mod Portal lists Better Chatting as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Compatibility

Game
Factorio
Runs on
Serverrequired on the server
Game versions
2.0

Verified at the source

  • ✓Factorio Mod PortalOfficial listing, checked 2026-10-08Open ↗
  • ✓AuthorPennyJim, as published on Factorio Mod Portal
  • ✓LicenseMITFree

Better Chatting, answered

Generated from the mod’s own source data.

Do my players need to install Better Chatting?

Factorio Mod Portal lists Better Chatting as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Is it free?

Yes. Better Chatting is free to download from Factorio Mod Portal. Its license is MIT.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Better Chatting on a Factorio server.

Deploy in about a minute from $2.99 a month, then add Better Chatting in one click.