⚠️ 本项目已停止维护(以及前端的后续安排)
由于我没有时间和精力来同时维护前端和后端,我将停止开发 此 PacketLogger 项目。但请放心,前端并不会就此废弃。
同时在两端进行开发非常耗费时间,尤其是当你希望在前端实现酷炫的新功能时,而后端却存在必须修复的 Bug 以帮助用户——这确实很难兼顾。我一直主要是一名 Web 开发者,并希望继续投身于这份热情。
因此,我将停止对该模组的开发。
但是: 前端将被迁移至 wisp-forest/gadget。目前这是既定计划。一切准备就绪可能需要几周时间,因此如果你目前需要替代方案,我强烈建议你切换到 gadget。
在 PacketLogger 上的开发之旅是一段愉快的经历。我学到了很多关于 Minecraft 模组开发、Minecraft 数据包结构的知识,并在此过程中结识了许多优秀的人。如果你有任何问题,请通过 Twitter 或 Discord 联系我。
Fabric Packet Logger
我使用它来进行 thejocraft.net 的开发工作。是的,代码可能不是最优的。如果你想改进它,欢迎提交拉取请求。
功能
- Web 界面(默认端口 8080)
- WebSocket 连接(默认端口 1337)
- 游戏内配置
支持的 Minecraft 版本
| Minecraft 版本 | 状态 | 备注 |
|---|---|---|
| 1.19.3 | ⚠️ | 这是一个相当粗糙的版本,因为 1.19.4 的支持是在 1.19.3 之前存在的,所以 1.19.3 是基于 1.19.4 创建的 |
| 1.19.4 | ✔️ |
⚠️ = 数据包已实现但未验证
✔️ = 支持
关联仓库
- Web 界面: aridevelopment-de/fabric-packet-logger-frontend
- 元数据: aridevelopment-de/fabric-packet-logger-metadata
命令
/packetlogger是所有子命令的基础命令。你应该能够自动补全它们/packetlogger logging on/off- 切换日志记录状态/packetlogger open- 在浏览器中打开 Web 界面/packetlogger export- 以 JSON 格式导出当前存储的数据
支持的数据包
客户端绑定 (Clientbound)
服务器绑定 (Serverbound)
由于为每个数据包开发序列化器非常耗时,并非所有数据包都得到支持。我会随着时间的推移添加更多数据包。如果你想提供帮助,欢迎提交拉取请求。
为什么你不使用反射来转换数据包数据?
我有不使用反射的一些原因。以下是主要原因:
- 反射速度较慢
- 我喜欢实时流式传输数据,而不是分析转储文件
- 我之前的反射方法很糟糕(参见 reflection-rewrite/dev 分支)
- 使用自定义序列化器我可以做更多的事情
- 并且我有自己私有的映射表
如果你仍然偏好基于反射的方法,请查看 wisp-forest/gadget
WebSocket
默认情况下,Web 界面会连接到 WebSocket 并通过 JSON 数据接收数据包信息。你也可以直接连接到此 WebSocket 并接收与 Web 界面相同的数据。我建议
在 Firefox 上使用 insomnia 或 weasel。
WebSocket 协议已经定义。它使用数据分块和数据包信息的懒加载来减少流量。有关更多信息,请参阅 protocol.md。
预览
视频:
MapUpdateAdapter:
⚠️ Project no longer maintained (and what happens with the frontend)
Since I don't have the time to work on the frontend and the backend, I will discontinue this PacketLogger project. But don't worry, the frontend won't be for nothing.
Developing on both sides takes up a lot of time, especially if you want to implement cool new features on the frontend while the backend contains bugs that must be fixed as to aid users. It's been tough doing that at the same time and I do not wan't to do that anymore. I am mainly a web-developer and I want to continue this passion.
That's why I will stop developing the mod.
But: The frontend will be moved to wisp-forest/gadget. At least that is the current idea. It might take up some weeks before everything is set in place, so I highly encourage you to switch over to gadget if you need an alternative atm.
It has been a pleasent journey working on packetlogger. I learned much about minecraft modding in itself, minecraft packet structure and met wonderful people on the way. If you have some questions, hmu on Twitter or Discord
Fabric Packet Logger
I use this for development at thejocraft.net. Yes, the code may not be the best. If you want to improve it, do it and open a pull request.
Features
- Web-UI (Default Port 8080)
- Websocket Connection (Default Port 1337)
- InGame config
Supported Minecraft Versions
| Minecraft Version | Status | Notes |
|---|---|---|
| 1.19.3 | ⚠️ | A rather scuffed version, since 1.19.4 support existed before 1.19.3, so 1.19.3 was created out of 1.19.4 |
| 1.19.4 | ✔️ |
⚠️ = Packets implemented but not validated
✔️ = Supported
Linked repositories
- Web-UI: aridevelopment-de/fabric-packet-logger-frontend
- Metadata: aridevelopment-de/fabric-packet-logger-metadata
Commands
/packetloggeris the base command for all subcommands. You should be able to auto-complete them/packetlogger logging on/off- Toggles the logging state/packetlogger open- Opens the web-ui in your browser/packetlogger export- Exports the current stored data in a json format
Supported packets
Clientbound
Serverbound
As developing serializers for each packet takes a lot of time, not every packet is supported. I will add more packets over time. If you want to help out, feel free to open a pull request.
Why do you not use Reflection to convert the packet data?
There are some reasons why I didn't use Reflection. Here are the main reasons:
- Reflection is slow
- I like live-streaming data instead of analyzing dumps
- My approach with reflection was horrible (see reflection-rewrite/dev branch)
- I may be able to do a lot more with custom serializers
- And I have my own juicy mappings
If you still prefer a reflection-based approach, check out wisp-forest/gadget
Websocket
By default, the web-ui connects to the websocket and receives the packet information via json data. You can also connect
to this websocket as well and receive the same data as the web-ui. I'd recommend
using insomnia or weasel on
firefox.
A protocol has been defined for the websocket. It uses data chunking and lazy loading of packet information to reduce
traffic. See protocol.md for more information.
Previews
Video:
MapUpdateAdapter:
下载 PacketLogger
下载 PacketLogger
下载 PacketLogger
下载 PacketLogger
下载 PacketLogger
下载 PacketLogger
下载 PacketLogger
下载 PacketLogger
下载 PacketLogger
下载 PacketLogger
1.6.1:修复 Bug
- 修复了因 ChunkData 导致无法连接部分服务器的问题(感谢 gadget 提供的出色 mixin)
- 将白名单和黑名单位移至 Minecraft 客户端。这应能解决前端数据包显示数据错误的问题
- 更新前端至 v1.4.1,此版本在某些地方改进了 UI
完整更新日志:
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
模组
显示你正在注视的方块的信息。(适用于 Minecraft 1.16+ 的 Hwyla/Waila 分支)
模组
查看物品与配方
模组
在游戏画面角落显示附近世界地形、玩家、生物和实体的地图。可创建路径点,帮助你找到标记过的位置。
模组
使用 JavaScript 编辑配方、添加自定义物品、编写世界事件!
模组
AE2:一款流行的自动化与存储模组
模组
添加区块认领和玩家组队功能,并与 Xaero's Minimap 和 World Map 集成
评论 0
登录后参与评分
还没有评论,来抢沙发吧