Logs chat-related events to factorio-current.log with optional system context and export tools.
- Captures player chat messages from
on_console_chat - Logs context with each line:
- tick
- player
- surface
- force
- controller
- position
- Optionally logs join/leave system events
- Keeps a rolling in-memory buffer of recent captured lines
- Supports exporting the last N captured lines as one compact searchable line
- Create a zip named
chat-debug_0.1.0.zipfrom this folder contents:info.jsoncontrol.luasettings.luaREADME.md
- Put the zip in your Factorio mods directory (example):
%APPDATA%\Factorio\mods
- Start Factorio and enable Chat Debug in the Mods menu.
- Load/start a save.
Open: Settings -> Mod settings -> Per map
chat-debug-enabled(default: true)- Enables/disables chat-debug logging
chat-debug-log-system(default: true)- Enables/disables join/leave system event logging
-
/chatdebug status -
/chatdebug on -
/chatdebug off- Applies a per-save runtime override (does not modify mod settings UI values)
-
/chatdebug-system status -
/chatdebug-system on -
/chatdebug-system off- Applies a per-save runtime override (does not modify mod settings UI values)
-
/chatdebug-export -
/chatdebug-export 50- Exports last N captured lines (1..200) as one compact line to
factorio-current.log
- Exports last N captured lines (1..200) as one compact line to
Search factorio-current.log for:
[CHAT DEBUG][CHAT DEBUG EXPORT]
- Keep
/chatdebug on - Reproduce an issue while chatting/using debug UI
- Run
/chatdebug-export 50 - Open
factorio-current.log - Search for
[CHAT DEBUG EXPORT]and copy one line for analysis
- If no chat happened yet,
/chatdebug-exportreports no captured lines. - Editor warnings in VS Code about
script,game,defines,settings,command,log, andglobalare expected because those are Factorio runtime globals.