• Important Notice: Please review our guidelines regarding cheating, game balancing, and mods for Helldivers 2. Read the full notice here before downloading or uploading mods.

Chat History Saver 聊天记录保存 2026-10-08

A Mod for Helldivers 2
  • 3.png
    3.png
    1.1 KB · Views: 10
chatlog · 使用说明
这是什么
HD2 的聊天记录保存 mod。自动把你本机视角看到的聊天消息(包括你自己发的和队友发的)追加保存到磁盘文件,带本地时间、发送者名字、消息内容。

游戏本身只保留 64 行聊天历史,重启游戏就清空。这个 mod 相当于一个"聊天记录照相机",每秒扫一次内存里最新的行,抄到磁盘,跨游戏会话持久保存。

安装
通过 HD2 Mod Manager / Arsenal 导入 chatlog.zip,Deploy,进游戏。

前置:Bingus Shared Loader v15+(API level 1)。不需要其它 mod。

输出文件
聊天记录:%LOCALAPPDATA%\CowboyBingus\Helldivers2\chatlog_history.txt

日志(排障用):%LOCALAPPDATA%\CowboyBingus\Helldivers2\Logs\chatlog.log

roster 快照(按 F8 生成,实际用不到):%LOCALAPPDATA%\CowboyBingus\Helldivers2\chatlog_roster.txt

聊天记录格式(每行):

text
<本地时间> | <发送者名字> | <消息内容>
示例:

text
2026-10-08 20:15:33 | 玩家A名称 | 测试
2026-10-08 20:15:42 | 玩家B名称 | 你好
2026-10-08 20:16:01 | 玩家A名称 | <c=FFFF0000>红字
发送者名字从游戏内存的 roster 结构读取,与 Steam 名字一致。如果某个 peer 不在 roster 里(罕见),会 fallback 显示它的 peer_id hex。

使用方法
完全自动,不需要任何操作。 你进游戏、发消息、别人发消息,mod 自动保存。每 1 秒扫一次内存,发现新消息立即写文件。

时间戳用的是系统本地时间

F8 键(调试用):按下会 dump 一份当前的 roster(玩家名单)到 chatlog_roster.txt。正常情况下你用不到,除非排查问题或想看看当前房间的玩家名单。

已知限制
只能保存本机视角看到的聊天。你和别的玩家看到的历史可能不同,尤其是有人中途加入的时候(他看不到他加入之前的消息,而你存了)。

游戏的内存聊天历史只有 64 行。如果你的 mod 因为某种原因(比如游戏卡顿、电脑性能不足)长时间没扫描,超过 64 行的消息会被环形覆盖,你会丢一部分记录。正常情况下每秒扫一次不会丢。

换房(切 lobby)时,chat 对象会被重建,mod 会自动重置去重表、重新开始读新房间的聊天。旧房间的记录已写入文件,不受影响。

游戏重启,游戏内的聊天历史清零,但磁盘文件继续累积。所以同一个 chatlog_history.txt 文件会横跨多次游戏会话。

游戏原生事件提示(如"玩家 XX 发现了虫巢"、等)不在聊天系统里,本 mod 目前可能无法保存。。后续开发无限期搁浅

聊天行本身不带发送者名字,只有 peer_id。名字是 mod 通过 roster 结构实时映射的。所以消息发出后、对方离开房间的情况下,映射表里可能没有他,此时会 fallback 显示 peer_id hex。

富文本标签按原文保存(如 <c=FFFF0000>),不会渲染成颜色。这是有意为之——保留了原始信息,你在文本编辑器里能看到玩家发的完整内容。

兼容性
前置:Bingus Shared Loader v15+(API level 1)。

环境:PC版。

反作弊:它只做:读游戏内存(network context 里的 chat 对象、roster 对象)

写自己的磁盘文件

卸载
在 Mod Manager 里禁用或删除本 mod。

可选:删除 %LOCALAPPDATA%\CowboyBingus\Helldivers2\chatlog_history.txt 和 chatlog_roster.txt。

最后依旧碎碎念:
以上能够上架的mod只是我出于这次风波有兴趣方向而做的mod,还有些自用mod基本属于git也会被移除的情况。
碍于生活工作原因,对于已实现功能达到我目的的mod,我可能不会有任何更新或者维护修补,所以欢迎解包学习以便后来人做出更为优秀的mod,对于此mod的开发,在此感谢CowboyBingus,不止从起源上,更从实际上搬运他BetterLobbyManagement里面踢人自动说明理由这项功能的复用和相关信息的利用
实际我搓mod的方向一直基于当前mod井喷,野排环境难评,预防划分的方向做我想做的mod。基于之前的欢迎语mod,我继续推出了wheeltext和本mod,也只能说是方便游戏内及时沟通了和事后再开庭了
最后也感谢各方开源给我的学习经验灵感思路,感谢DS
时间点:北京时间 2026年10月8日21:56




chatlog · Usage

What is this?
A chat log saving mod for HD2. It automatically appends the chat messages you see from your local perspective (including your own and teammates') to a disk file, with local time, sender name, and message content.

The game itself only keeps 64 lines of chat history, and it clears on restart. This mod is essentially a "chat log camera": it scans the latest line in memory once per second, copies it to disk, and persists it across game sessions.

Install
Import chatlog.zip through HD2 Mod Manager / Arsenal, Deploy, and enter the game.

Prerequisite: Bingus Shared Loader v15+ (API level 1). No other mods needed.

Output files
Chat log: %LOCALAPPDATA%\CowboyBingus\Helldivers2\chatlog_history.txt

Log (for troubleshooting): %LOCALAPPDATA%\CowboyBingus\Helldivers2\Logs\chatlog.log

Roster snapshot (generated by pressing F8, not actually needed): %LOCALAPPDATA%\CowboyBingus\Helldivers2\chatlog_roster.txt

Chat log format (one per line):

<local time> | <sender name> | <message content>

Example:

2026-10-08 20:15:33 | PlayerA | test
2026-10-08 20:15:42 | PlayerB | hello
2026-10-08 20:16:01 | PlayerA | <c=FFFF0000>red text

The sender name is read from the roster structure in game memory and matches the Steam name. If a peer isn't in the roster (rare), it falls back to showing its peer_id hex.

Usage
Fully automatic, no action needed. You enter the game, send messages, others send messages, and the mod saves automatically. It scans memory once per second and writes new messages to the file immediately.

Timestamps use the system local time.

F8 key (debug): pressing it dumps the current roster (player list) to chatlog_roster.txt. Normally you won't need this, unless you're troubleshooting or want to see the player list of the current lobby.

Known limitations
Only saves chat seen from your local perspective. You and other players may have different histories, especially when someone joins mid-session (they can't see messages from before they joined, but you saved them).

The game's in-memory chat history is only 64 lines. If your mod for some reason (e.g., game lag, insufficient PC performance) doesn't scan for a long time, messages beyond 64 lines get overwritten in a ring buffer, and you'll lose some records. Normally, scanning once per second won't lose anything.

When switching lobbies, the chat object is rebuilt, and the mod automatically resets the deduplication table and starts reading the new lobby's chat. Records from the old lobby are already written to file and unaffected.

When the game restarts, the in-game chat history resets, but the disk file keeps accumulating. So the same chatlog_history.txt file spans multiple game sessions.

Game native event notifications (like "Player XX discovered a bug nest", etc.) are not in the chat system, and this mod currently may not be able to save them. Further development is indefinitely shelved.

Chat lines themselves don't carry the sender name, only peer_id. Names are mapped in real time by the mod through the roster structure. So after a message is sent, if the other party leaves the lobby, they may not be in the mapping table, and it falls back to showing peer_id hex.

Rich text tags are saved as raw text (e.g., <c=FFFF0000>), not rendered as colors. This is intentional—it preserves the original information so you can see the full content the player sent in a text editor.

Compatibility
Prerequisite: Bingus Shared Loader v15+ (API level 1).

Environment: PC version.

Anti-cheat: It only does: read game memory (chat object, roster object in network context)
Write its own disk files.

Uninstall
Disable or delete this mod in Mod Manager.

Optional: Delete %LOCALAPPDATA%\CowboyBingus\Helldivers2\chatlog_history.txt and chatlog_roster.txt.

Final ramblings:
The mods above that can be published are just ones I made because I got interested in this direction during this whole incident. I also have some personal-use mods that would basically get removed even from Git.

Due to life and work commitments, for mods whose features already do what I need, I probably won't provide any updates or maintenance fixes. So feel free to unpack and study them, so people after me can make even better mods.

For the development of this mod, thanks to CowboyBingus—not just for the origin, but for actually reusing the auto-kick-reason feature from his BetterLobbyManagement and the use of related information.

Actually, the direction I've been making mods in has always been based on the current mod explosion, the hard-to-judge random lobby environment, and doing the mods I want to make in the direction of prevention and division. Based on the previous welcome message mod, I continued to release wheeltext and this mod. I can only say it makes in-game communication in the moment and later review easier.

Lastly, thanks to all the open-source work out there for the learning experience, inspiration, and ideas. Thanks to DS.

Timestamp: Beijing Time, October 8, 2026, 21:56
7.9 KB
Log in or sign up to download
Uploaded by
360de250
Downloads
2
Comments
1
Views
119
First release
Last update
Platform
PC 
Version
2026-10-08
Total Size
7.9 KB
Rating
0.00 star(s) 0 ratings

Uploaded by

  • 2
  • 119

Ratings

0.00 star(s) 0 ratings

Tags

There are no tags available.

More mods from 360de250

  • PC wheel to text 快捷轮盘发送消息

  • PC Auto Lobby Welcome Message(欢迎语或者说自动房规发送都行)

  • PC EnemyReplace(怪物替换)

  • PC steamUrlButton

There are no comments to display.