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" opentibiabr/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. |
|
|
||
| # Find packages. | ||
| find_package(OpenSSL 3.0.0 REQUIRED COMPONENTS Crypto) | ||
| find_package(ZLIB REQUIRED) |
There was a problem hiding this comment.
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