---
title: "Packet 11: SetColor"
description: "Updates the selected palette colour for block, flare, and Block Cannon tools. The sender already applies its UI choice, so the server broadcasts to observers."
canonical: "https://aosplay.net/protocol-168/packets/11"
markdown: "https://aosplay.net/docs/protocol-168/packets/11.md"
last_updated: "2026-07-16"
protocol: "Ace of Spades Battle Builder 168"
packet_id_decimal: "11"
packet_id_hex: "0x0B"
direction: "Both"
family: "Building"
implementation_status: "Handled + sent"
evidence: "Implementation-backed"
wire_size: "5 bytes"
---

# Packet 11: SetColor

> Updates the selected palette colour for block, flare, and Block Cannon tools. The sender already applies its UI choice, so the server broadcasts to observers.

- **Decimal ID:** 11
- **Hex ID:** 0x0B
- **Direction:** Both
- **Family:** Building
- **Status:** Handled + sent
- **Evidence:** Implementation-backed
- **Wire size:** 5 bytes

## Exact wire layout

The application packet ID is the first byte. The remaining rows are in decode order. Byte sizes exclude ENet headers, wrapper prefixes, LZF chunk framing, and compression effects.

| # | Field | Encoding | Bytes | Purpose | Condition |
| ---: | --- | --- | ---: | --- | --- |
| 0 | `packet_id` | u8 | 1 | Always 11 (0x0B). | — |
| 1 | `player_id` | u8 | 1 | Compact player-slot identifier. | — |
| 2 | `color` | BGR888 | 3 | Three colour channels written blue, green, then red. | — |

## Encoding conventions

- `LE` means least-significant byte first.
- `fixed16` is two-byte sign-magnitude at 1/64 precision.
- `orientation16` uses the measured 1/8192 orientation mapping.
- NUL strings consume their encoded byte length plus one `00` terminator.
- Counted arrays repeat immediately in the documented order.

## Related resources

- [HTML packet page](https://aosplay.net/protocol-168/packets/11)
- [Complete packet catalog](https://aosplay.net/protocol-168/packets)
- [Packet catalog in Markdown](https://aosplay.net/docs/protocol-168/packets.md)
- [Protocol 168 guide](https://aosplay.net/protocol-168)
