{
  "api_version": "1.0.0",
  "slug": "urban-terror-web-port-fable",
  "url": "https://reversedwithai.com/p/urban-terror-web-port-fable",
  "markdown_url": "https://reversedwithai.com/p/urban-terror-web-port-fable.md",
  "json_url": "https://reversedwithai.com/p/urban-terror-web-port-fable.json",
  "title": "Got Urban Terror running in the browser after Claude Fable found a 4-byte struct mismatch",
  "tagline": "A Quake 3 mod in the browser, fixed by finding a 4-byte offset.",
  "summary": "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.",
  "target": {
    "name": "Urban Terror",
    "type": "game",
    "type_label": "Games and mods"
  },
  "platform": "Quake 3 engine (ioquake3) to WebAssembly",
  "models": [
    "Claude Fable 5.1"
  ],
  "tools": [
    "ioquake3",
    "WebAssembly"
  ],
  "outcome": "works",
  "outcome_label": "Works",
  "human_effort": null,
  "time_spent": null,
  "cost": null,
  "license": null,
  "checks": {
    "source_available": null,
    "repro_steps": null,
    "real_hardware": null,
    "independently_verified": null
  },
  "author": {
    "name": "Pieter Levels",
    "url": "https://x.com/levelsio"
  },
  "sources": {
    "repository": null,
    "writeup": "https://x.com/levelsio/status/2106150888289009666",
    "discussions": [],
    "all": [
      "https://x.com/levelsio/status/2106150888289009666"
    ]
  },
  "image": {
    "url": "https://covers.reversedwithai.com/urban-terror-web-port-fable.webp",
    "credit": "Image: @levelsio on X"
  },
  "commit_history": null,
  "added_at": "2026-10-18T08:00:40.144075+00:00",
  "updated_at": "2026-10-18T08:00:40.144075+00:00",
  "sources_reviewed_at": "2026-10-18T08:00:40.144075+00:00",
  "reviewed_by": "editor",
  "human_notes": "Opus 5.5 did not find the problem; Fable 5.1 on high effort did, after earlier attempts by the author over six months.",
  "reproduce": null,
  "body_md": "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.\n\n### How it was done\n\nBecause 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.\n\n### Results\n\nThe 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.",
  "ai_use_excerpts": null
}
