runejs / server

RuneJS is a RuneScape game server written in TypeScript and JavaScript. The goal of the project is to create a comprehensive game engine, while also providing simple and easy to use content development systems and APIs.
GNU General Public License v3.0
238 stars 82 forks source link

[BUG] Networking errors after reading chat packet #400

Open Jameskmonger opened 1 year ago

Jameskmonger commented 1 year ago

Describe the bug I don't think our server reads the chat packet correctly. If you set chat to "Off" and then send a message, the chat status is set to "Hide" and packet 32 is sent immediately after the chat packet. This seems to break incoming packets.

I have used an old version of the client to rule out my recent packet changes from being the cause

To Reproduce Steps to reproduce the behaviour:

  1. Log into game
  2. Send a message
  3. Everything will continue working OK
  4. Set chat status to "Off"
  5. Send another message
  6. All packets afterwards will be read incorrectly by the server

Expected behavior Both packets (75 and 32) should be read correctly

Additional context