Luka967 / OgarII

FOSS implementation of a private Agar.io gameserver, made with Node.js.
Other
66 stars 38 forks source link

chat error #26

Closed Niall7459 closed 5 years ago

Niall7459 commented 6 years ago

so you don't forget...

Chat fails.

Tested protocol: 5 How to reproduce: chat Outcome: No chat is displayed on the chat board. Expected Outcome: Chat to be displayed on chat board.

Niall7459 commented 5 years ago

Update: this was a client problem, however OgarII is cutting the last character in chat messages.

SuperOP535 commented 5 years ago

warning: unsure; It's likely that you forgot to add a null character so it strips the last char instead of the null

Niall7459 commented 5 years ago

Why should their be a null character?

SuperOP535 commented 5 years ago

because that's how strings in buffers work, you terminate it with a null char, try adding one and see what happens.

Niall7459 commented 5 years ago

Yeah protocol 5 didn’t h