I Replaced Animal Crossing's Dialogue with a Live LLM by Hacking GameCube Memory

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Shows a practical pattern for hacking LLM dialogue into emulated games: memory polling plus injected pause tokens to mask multi-second inference latency.

Read this as

Developer Josh Fonseca modified the 2002 GameCube game Animal Crossing so its characters speak lines written by a large language model, an AI that generates text on demand. His Python program scans the emulator's memory ten times per second, spots when dialogue appears, and injects temporary 'pause' messages that freeze the conversation for a few seconds while the AI writes a reply. It affects hobbyists and modders; the project's code is public on GitHub.

This is a hobby project with no commercial product, cost or timeline attached, but it demonstrates two transferable techniques. First, polling emulated memory at 10 times per second lets external software hook a game's dialogue in real time. Second, the project hides multi-second LLM latency behind injected in-game pause tokens, a pattern relevant to anyone integrating generative AI into latency-sensitive interactive products.

Josh Fonseca ran Animal Crossing (2002, GameCube) in the Dolphin emulator, with Python polling GameCube memory every 100ms via watch_dialogue() to detect dialogue screens. On detection it writes '.<Pause [0A]>' tokens plus '<Press A><Clear Text>' to stall gameplay while the LLM generates a replacement, which is written in-place to the dialogue memory. Two prompts are used: one for character responses, a second decorating output with Animal Crossing control codes for pauses and animations. Prompts include escalating villager agitation over Tom Nook's mortgage economy. Code: vuciv/animal-crossing-llm-mod on GitHub (~40,000 tokens when ingested).

Read the original

This summary exists to save you time, not to replace the source.

Key terms

Animal Crossing Dolphin Emulator GameCube Claude Opus 4.1 GitHub gitingest Hacker News

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading

datasette-charts 0.5a0

Datasette Charts 0.5a0 adds calendar heatmaps, box plots and active-over-time charts, enabling richer data visualisation directly in the browser without extra libraries.