Lewati ke konten utama

Protocol Packets

Wire-level helpers exposed to scripts that talk to the Pixel Worlds server directly. Most scripts won't need these — the high-level client:walkTo, client:hit, etc. compose the right packet sequences for you. Reach for raw packet builders when you're prototyping a new behaviour or hitting a packet the runtime doesn't wrap yet.

Pages in this section

  • Packet IDs — the short BSON ID field strings the server understands.
  • Sending raw packets — when and how to use client:send, client:sendRaw, client:sendBatch.
  • Reading inbound packets — how the runtime parses replies and how to subscribe with client:on.
  • JR codes — Join Result response codes (world-join replies).
  • KErr codes — Kick / soft-error response codes.