Chat Logs
一个轻量级的 Minecraft 模组,用于以易读的格式保存聊天记录,同时对原版游戏的影响降至最低。
灵感来源
尽管该模组与原始项目几乎没有任何代码共享,但它深受 Permanent Chatlogs 的启发,后者提供了一种将聊天记录单独保存而非混入主游戏日志的替代方案。
设计理念
本模组旨在确保聊天记录的易读性,同时尽可能少地干扰原版游戏机制。它极少使用向原版方法注入代码的 mixin,从而最大化与其他模组的兼容性,并降低因游戏更新而被破坏的可能性。这对整合包而言是一个显著优势,因为在新版 Minecraft 发布时,该模组通常无需进行更新。
功能特性
该模组采用两种互补的方法来保存聊天记录:
1. 基于会话的 TXT 文件
- 简洁文本格式:每个会话均保存为纯
.txt 文件
- 会话定义:从连接到服务器/单人世界开始,直到断开连接为止的一个完整周期
- 易于阅读:人类可读的格式,可使用任何文本编辑器打开
- 可靠性高:具备抗崩溃能力,并拥有自动恢复机制
2. 详细数据库存储(实验性功能)
- 丰富的格式保留:在 SQLite 数据库中保存完整的文本格式化细节
- 增强的搜索功能:支持对聊天记录进行高级搜索和过滤
- 外部图形界面:提供专用的图形界面以获得更好的阅读体验
- JSON 结构保留:保持原版 Minecraft Text 组件的结构,包括颜色、悬停事件和样式
外部界面
提供了一个实验性的 Python GUI,用于浏览具有完整格式支持的数据库日志:
? Chat Log GUI (Experimental)
该界面提供以下功能:
- 带有消息计数和时间戳的会话浏览
- 完整的 Minecraft 颜色代码支持
- 用于悬停事件的交互式工具提示
- 复制到剪贴板功能
Chat Logs
A lightweight Minecraft mod for saving chat logs in a readable format with minimal interference to the base game.
Inspiration
While this mod shares virtually no code with the original project, it is heavily inspired by Permanent Chatlogs, which offers an alternative approach to saving chat logs separately from the main game logs.
Philosophy
This mod aims to make chat logs readable while interfering as little as possible with the base game mechanics. It uses very few mixins that inject code into vanilla methods, maximizing compatibility with other mods and reducing the likelihood of being broken by game updates. This is a significant advantage for modpacks, as the mod will generally not need updates when new versions of Minecraft are released.
Features
The mod uses two complementary approaches to save chat logs:
1. Session-based TXT Files
- Simple text format: Each session is saved as a plain
.txt file
- Session definition: A session spans from connection to a server/singleplayer world until disconnection
- Easy to read: Human-readable format that can be opened with any text editor
- Reliable: Crash-resistant with automatic recovery mechanisms
2. Detailed Database Storage (Experimental)
- Rich formatting preservation: Saves complete text formatting details in an SQLite database
- Enhanced search capabilities: Enables advanced searching and filtering of chat history
- External GUI interface: Provides a dedicated graphical interface for better reading experience
- JSON preservation: Maintains original Minecraft Text component structure with colors, hover events, and styling
External Interface
An experimental Python GUI is available for browsing the database logs with full formatting support:
? Chat Log GUI (Experimental)
This interface provides:
- Session browsing with message counts and timestamps
- Full Minecraft color code support
- Interactive tooltips for hover events
- Copy-to-clipboard functionality
评论 0
登录后参与评分
还没有评论,来抢沙发吧