Compress large packets

This commit is contained in:
Kei-Luna
2026-05-13 19:09:41 +09:00
parent 9e518edb8e
commit 6c5d546026
5 changed files with 23 additions and 9 deletions

View File

@@ -226,9 +226,7 @@ public class PlayerInstance(PlayerGameData data)
continue;
}
//ToDo
//Temporary fix for login issues(need to handle LoginRsp properly with zlib.)
//proto.Attrs[ToPackedAttrKey(gid, sid)] = val;
proto.Attrs[ToPackedAttrKey(gid, sid)] = val;
proto.Attrs[ToShiftedAttrKey(gid, sid)] = val;
}

View File

@@ -22,7 +22,7 @@ public class PacketRspLogin : BasePacket
};
var bytes = Google.Protobuf.MessageExtensions.ToByteArray(proto);
Logger.Info($"RspLogin proto size: {bytes.Length} bytes (limit: 65535)");
Logger.Info($"RspLogin proto size: {bytes.Length} bytes");
SetData(bytes);
}