quarry
quarry copied to clipboard
quarry.net.protocol.ProtocolError: Packet is too long: chat_message
Hello guys,
when I'm trying to use the chat logger example on https://quarry.readthedocs.io/en/latest/examples.html, I always get an quarry.net.protocol.ProtocolError
My game version is 1.16.5.
Hope you can help me :)
For new minecraft versions, use a chat message handler like the one in client_messenger.py
def packet_chat_message(self, buff):
p_text = buff.unpack_chat().to_string()
p_position = 0
p_sender = None
# 1.8.x+
if self.protocol_version >= 47:
p_position = buff.unpack('B')
# 1.16.x+
if self.protocol_version >= 736:
p_sender = buff.unpack_uuid()
if p_position in (0, 1) and p_text.strip():
self.stdio_protocol.send_line(p_text)
I'm still getting this issue on 1.17.1 using the code specified
Can you send your code? This should work.