From 6de487bdaa888636bb83dad78fdc11ede40bdef2 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 9 Nov 2025 01:49:08 -0500 Subject: [PATCH] feat: add debug logging for entity packet parsing --- src/OverteClient.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/OverteClient.cpp b/src/OverteClient.cpp index 8e71af2..c464485 100644 --- a/src/OverteClient.cpp +++ b/src/OverteClient.cpp @@ -451,6 +451,13 @@ void OverteClient::parseEntityPacket(const char* data, size_t len) { if (len < 1) return; + // Debug: dump first bytes of packet + std::cout << "[OverteClient] parseEntityPacket: " << len << " bytes, first 32: "; + for (size_t i = 0; i < std::min(len, size_t(32)); i++) { + printf("%02x ", (unsigned char)data[i]); + } + std::cout << std::endl; + unsigned char packetType = static_cast(data[0]); // Entity packet types