Skip to content

Commit 861b2c0

Browse files
Merge pull request #31 from VirxEC/fix
32-bit -> 16-bit
2 parents 5f782fb + 4568e0f commit 861b2c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/v5/framework/sockets-specification.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Packet types are named from the POV of the sender.
1010
- [CorePacket](https://github.com/RLBot/flatbuffers-schema/blob/main/schema/corepacket.fbs) - Wraps `CoreMessage`, a union of all valid message types that can be sent _by_ RLBotServer, _to_ interfaces.
1111

1212
??? question "What is an interface? What is core?"
13-
- "Interface" refers to the layer of abstraction that sits in between the RLBotServer API and the bot/script someone wants to make. While not strictly required, it a good interface makes working with RLBot fun & easy - even without knowing anything about TCP, FlatBuffers, or the RLBotServer API.
13+
- "Interface" refers to the layer of abstraction that sits in between the RLBotServer API and the bot/script someone wants to make. While not strictly required, a good interface makes working with RLBot fun & easy - even without knowing anything about TCP, FlatBuffers, or the RLBotServer API.
1414
- "Core" refers to RLBotServer itself, which is considered the shared "core" of RLBot that implements various functions related to starting and running matches that are accessable via the RLBotServer API.
1515

1616
## Connecting to RLBotServer
@@ -22,10 +22,10 @@ Packet types are named from the POV of the sender.
2222
## Packet format
2323

2424
This project uses [FlatBuffers](https://flatbuffers.dev/) as the data format,
25-
prefixed with a 32-bit unsigned integer.
25+
prefixed with a 16-bit unsigned integer.
2626
All packets should be big endian.
2727

28-
- Read the first 32 bits as an unsigned integer. This is `n`, the length of the flatbuffer in bytes.
28+
- Read the first 16 bits as an unsigned integer. This is `n`, the length of the flatbuffer in bytes.
2929
- Read `n` bytes, and deserialize this into the correct flatbuffer according to the data type.
3030

3131
Replace "read" with "write" to send a packet.

0 commit comments

Comments
 (0)