From 0f4c555ae0bdeda9e78f097d1c871c6bb658009e Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 9 Nov 2025 21:53:44 -0500 Subject: [PATCH] feat: update protocol version signature to match expected AUR package format and add debug logging --- src/NLPacketCodec.cpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/NLPacketCodec.cpp b/src/NLPacketCodec.cpp index adadaf9..4b20468 100644 --- a/src/NLPacketCodec.cpp +++ b/src/NLPacketCodec.cpp @@ -461,19 +461,20 @@ uint8_t NLPacket::versionForPacketType(PacketType type) { } } -std::vector NLPacket::computeProtocolVersionSignature() { - // Protocol signature computed from Overte 2025.05.1 source (commit 53d2094) - // Matches overte-server-bin AUR package - // Computed via tools/compute_protocol_v2.py with actual enum parsing - // Protocol version: "UuQR8qg5dU9NE9CXz2rEaQ==" (base64) = 52e411f2a839754f4d13d097cf6ac469 (hex) - // Based on: 106 packet types, EntityVersion::LAST = 70, DomainListVersion::SocketTypes = 7 - // AvatarMixerPacketVersion::RemoveAttachments = 38, EntityQueryPacketVersion::ConicalFrustums = 23 - - std::vector signature = { - 0x52, 0xe4, 0x11, 0xf2, 0xa8, 0x39, 0x75, 0x4f, - 0x4d, 0x13, 0xd0, 0x97, 0xcf, 0x6a, 0xc4, 0x69 +std::vector NLPacketCodec::computeProtocolVersionSignature() { + // Protocol signature extracted from official Overte client packet capture + // This is the actual signature that the AUR overte-server-bin package expects + static const std::vector signature = { + 0xeb, 0x16, 0x00, 0xe7, 0x98, 0xdc, 0x5e, 0x03, + 0xc7, 0x55, 0xa9, 0x68, 0xdc, 0x16, 0xb7, 0xfc }; + std::cout << "[DEBUG] Using protocol signature: "; + for (uint8_t byte : signature) { + std::cout << std::hex << std::setw(2) << std::setfill('0') << (int)byte; + } + std::cout << std::dec << std::endl; + return signature; }