-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add packet compression #4870
Add packet compression #4870
Conversation
02692d5
to
259ee4f
Compare
259ee4f
to
202873c
Compare
I was test this pr
in cipsoft client works fine but in otc by enabling the feature "GameSequencedPackets" mehah/otclient@4e79004 error
|
If cip client works, then it must be something different at otclient side or incorrect configuration. |
The client is fine, the issue is with TFS ,specifically in this line (in void ProtocolGame::onRecvFirstMessage(NetworkMessage& msg)[forgottenserver/src/protocolgame.cpp]. This if statement only integrates CipSoft, not OTCR Windows. forgottenserver/src/protocolgame.cpp Lines 386 to 388 in 7573e41
@kojimhojo tries to delete that if and it will work with g_game.enableFeature(GameSequencedPackets) - // Change packet verifying mode for QT clients
- if (version >= 1111 && operatingSystem >= CLIENTOS_QT_LINUX && operatingSystem < CLIENTOS_OTCLIENT_LINUX) {
- setChecksumMode(CHECKSUM_SEQUENCE);
- }
+
+ setChecksumMode(CHECKSUM_SEQUENCE);
+ I confirm that it works in OTCR example : player open higscore module Server Client WARNING: raw: 4360 |
I assume change works on both clients then. |
thanks. |
Tested on Cipsoft client, it's working. This changes require update in wiki about new zlib dependency. |
@@ -49,6 +49,7 @@ endif () | |||
|
|||
# Find packages. | |||
find_package(OpenSSL 3.0.0 REQUIRED COMPONENTS Crypto) | |||
find_package(ZLIB REQUIRED) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Require update in wiki about new zlib dependency.
Pull Request Prelude
Changes Proposed
Add missing packet compression for big packets
Issues addressed:
None
How to test:
Login to game, walk around, no crashes? works