2.0 - Optimized&Compatible
In this new version, we fixed some bugs, and optimized our steps of modify the login packets.
MOTD and Config functions are still in developing progress (temporarily put on hold).
What's New
1. Speed Optimized
Packet change detection is only performed when the connection is just established, and it will not judge whether it is the first connection every time it is forwarded.
This will remove only one judge step for CPU in forwarding works, but it seems to decrease about 1-3 ms in game.
2. Version Compatible
Fixed #4
Now ZBProxy can work with all Minecraft versions Mojang has ever published.
这个问题由于一个看起来很易于理解的设计缺陷导致:
协议号为128及以上的数字,在编码为varint时会占用两个字节,但是事实上本程序在编写的时候犯了一个先入为主的错误,即把协议号视为一个字节,导致了定位错误。
由于开发时测试的版本为1.8.9(协议号47),所以问题并没有发生.
协议号128的版本应该是在1.9.4到1.10之间
This bug has been completely solved by an almost perfect solution.
Through the principle characteristics of VarInt, we can now correctly identify the byte length of all existing protocol version numbers.
3. Linux Console
We now use the compilation parameters provided by Golang to avoid compilation errors caused by multi platforms, so it is no longer need to delete non Windows files in the current building process.
And now the Linux console also supports the title display like Windows!
(but I don't think anyone can see the effect XD)
Downloads
Go to https://github.com/layou233/ZBProxy/actions/runs/1224437293
And then download built program you need.