gameserver: dump raw packet bit-stream for hand-decode
Build Game Server / build (push) Successful in 18s

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-14 19:53:53 +02:00
co-authored by Claude Opus 4.8
parent b1386bef56
commit 1691af4be6
+15
View File
@@ -501,6 +501,21 @@ public abstract class UNetConnection : UPlayer
var resetReaderMark = new FBitReaderMark(reader); var resetReaderMark = new FBitReaderMark(reader);
var channelsToClose = new List<FChannelCloseInfo>(); var channelsToClose = new List<FChannelCloseInfo>();
// TEMP DIAG: dump the raw packet bit-stream (LSB-first per byte) so we can
// hand-decode the header/bunch alignment. Non-destructive (position restored).
{
var peekMark = new FBitReaderMark(reader);
var totalDiag = reader.GetBitsLeft();
var takeDiag = Math.Min(totalDiag, 112);
var sbDiag = new System.Text.StringBuilder(takeDiag);
for (var i = 0; i < takeDiag; i++)
{
sbDiag.Append(reader.ReadBit() ? '1' : '0');
}
peekMark.Pop(reader);
Logger.Information("[HS-RAW] totalBits={T} bits={B}", totalDiag, sbDiag.ToString());
}
if (_bInternalAck) if (_bInternalAck)
{ {
++InPacketId; ++InPacketId;