NikoBK/NSQD

Unreadable String (Server -> Client)

Closed this issue · 1 comments

When writing a string from the server (linux) to the client (windows) the buffer is going to contain 4 random bytes in the end of the buffer.
The buffer contains a short (3 bytes) that write the length of the string which works fine. The string characters in themselves convert fine however 4 unset bytes are always set for some reason.

This bug occured in instances where SendError() was used on the backend, it happens regardless of what string is sent and where SendError() is called from.

This only happens when a string is sent from server to client. Client to server strings work fine.

Closed as the project has been finalized and handed in. The fix for this issue would be ideal in a future project based on this project's custom networking protocol.