---
title: "Packet 107: DebugDraw"
description: "Draws temporary development primitives. Type 0 is a box, type 1 a sphere, and types 2–4 carry only the common header."
canonical: "https://aosplay.net/protocol-168/packets/107"
markdown: "https://aosplay.net/docs/protocol-168/packets/107.md"
last_updated: "2026-07-16"
protocol: "Ace of Spades Battle Builder 168"
packet_id_decimal: "107"
packet_id_hex: "0x6B"
direction: "Inactive"
family: "Diagnostics"
implementation_status: "Planned"
evidence: "Provisional"
wire_size: "10, 24, or 34 bytes"
---

# Packet 107: DebugDraw

> Draws temporary development primitives. Type 0 is a box, type 1 a sphere, and types 2–4 carry only the common header.

- **Decimal ID:** 107
- **Hex ID:** 0x6B
- **Direction:** Inactive
- **Family:** Diagnostics
- **Status:** Planned
- **Evidence:** Provisional
- **Wire size:** 10, 24, or 34 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 107 (0x6B). | — |
| 1 | `type` | u8 | 1 | 0 box, 1 sphere, 2–4 header-only recovered primitives. | — |
| 2 | `colour` | i32 LE | 4 | colour value. | — |
| 3 | `frames` | i32 LE | 4 | frames value. | — |
| 4 | `corner_min` | 3 × IEEE-754 f32 LE | 12 | First box corner. | type = 0 |
| 5 | `corner_max` | 3 × IEEE-754 f32 LE | 12 | Second box corner. | type = 0 |
| 6 | `center` | 3 × IEEE-754 f32 LE | 12 | Sphere centre. | type = 1 |
| 7 | `size` | sign-magnitude fixed16 LE (1/64) | 2 | Sphere radius/size. | type = 1 |

## 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/107)
- [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)
