<!-- Canonical page: https://reversedwithai.com/p/urban-terror-web-port-fable -->
Canonical page: https://reversedwithai.com/p/urban-terror-web-port-fable

# Got Urban Terror running in the browser after Claude Fable found a 4-byte struct mismatch

> A Quake 3 mod in the browser, fixed by finding a 4-byte offset.

levelsio's WebAssembly port of the Quake 3 based shooter Urban Terror loaded but would not play. Claude Fable 5.1 found that the engine's struct was 4 bytes longer than the game's bytecode expected, and rewrote the bytecode.

## Key facts

- Target: Urban Terror
- Category: Games and mods
- Platform: Quake 3 engine (ioquake3) to WebAssembly
- Models: Claude Fable 5.1
- Tools: ioquake3, WebAssembly
- Outcome: Works
- Checks: Source available: not reported; Repro steps: not reported; Real hardware: not reported; Verified by others: not reported
- Author: [Pieter Levels](https://x.com/levelsio)
- Added: 2026-10-18
- Updated: 2026-10-18
- Sources reviewed: 2026-10-18 (editor)

## What was done

Pieter Levels (levelsio) got Urban Terror, a shooter built as a mod on the Quake 3 Arena engine, running in the browser through WebAssembly. Six months earlier, the port loaded but would not play. Claude Fable 5.1 on high effort found the cause: a struct size mismatch between the engine and the game's compiled bytecode.

### How it was done

Because Urban Terror runs on the Quake 3 engine, the plan was to build ioquake3 for WebAssembly, add a multiplayer server and have it just work. The port stayed buggy and never really played. A new try with Claude Opus 5.5 did not fix it either. On a last attempt with Fable 5.1, the model reported that the engine's struct was 4 bytes longer than what Urban Terror's bytecode expects, so everything after it, the entity count and the entity list, was read 4 bytes off. It then rewrote the bytecode to match.

### Results

The game now runs fully in the browser at ut.pieter.com, tied to a multiplayer server, and the post's video shows Levels playing it with a friend. The post shares no code, and the fix is only described at the level above.

## Human work and limitations

Opus 5.5 did not find the problem; Fable 5.1 on high effort did, after earlier attempts by the author over six months.

## Questions about Urban Terror

### What is the Urban Terror project?

levelsio's WebAssembly port of the Quake 3 based shooter Urban Terror loaded but would not play. Claude Fable 5.1 found that the engine's struct was 4 bytes longer than the game's bytecode expected, and rewrote the bytecode. It is listed under Games and mods for Quake 3 engine (ioquake3) to WebAssembly.

### Which AI model was used on Urban Terror?

The entry names Claude Fable 5.1. The tools named alongside are ioquake3 and WebAssembly.

### Did the AI reverse engineering of Urban Terror work?

Its author reports that it works.

## Sources

- [Write-up](https://x.com/levelsio/status/2106150888289009666)

Figures are reported by the author and not measured by this site, except the commit history. Entry drafted with AI from the linked sources and checked against them.

Cite as: Pieter Levels (2026). Got Urban Terror running in the browser after Claude Fable found a 4-byte struct mismatch. Reversed with AI. https://reversedwithai.com/p/urban-terror-web-port-fable
