Live data from Hacker News

I replaced Animal Crossing's dialogue with a live LLM by hacking GameCube memory

joshfonseca.com

41–50 of 198 posts

Re: I replaced Animal Crossing's dialogue with a live LLM by hacking GameCube memory

#41
post #29

This is amazing. Well done figuring out the shared memory hack. That's a huge time saver and really makes sense from an engineering perspective. Ten dollars for the hammer and five thousand for knowing where to strike the machine, to paraphrase a trope on expertise applied correctly.

Technical question: what guarantees that the memory address is stable? It means that allocations always happen in the same order in the game ?

Re: I replaced Animal Crossing's dialogue with a live LLM by hacking GameCube memory

#42
Many years ago there was a project in which researchers swapped localization strings to turn The Sims and Grim Fandango into language practice experiences. Generative dialog that is contextual and skill-appropriate dialog could also be a killer application for language practice.

Re: I replaced Animal Crossing's dialogue with a live LLM by hacking GameCube memory

#43
post #29

This is amazing. Well done figuring out the shared memory hack. That's a huge time saver and really makes sense from an engineering perspective. Ten dollars for the hammer and five thousand for knowing where to strike the machine, to paraphrase a trope on expertise applied correctly.

Technical question: what guarantees that the memory address is stable? It means that allocations always happen in the same order in the game ?

It needs to be a global variable in C. A variable in a function scope or runtime malloc'd spot? No chance of finding a stable spot.

Thankfully, a lot of old games love to use global variables because you can't run out of stack space or allocatable memory. Modern games shy away from that because even the tiniest consoles these days come with gigabytes worth of RAM, even a memory leak has to be a gigantic firehose to bring the system to a halt.

Re: I replaced Animal Crossing's dialogue with a live LLM by hacking GameCube memory

#44
post #28

Earlier quoted context omitted.

you really don't have to self-censor "emulator" here. HN moderation is not like social media platforms.

Social media platforms censor emulator?!?

Yes. Facebook at some point filtered links to them from private messaging. I know this from personal experience. Not sure if they still do.

Also fairly common on Reddit and Discord for communities to ban discussions of them, or even falsely claim they're blanket illegal outright.

Re: I replaced Animal Crossing's dialogue with a live LLM by hacking GameCube memory

#45

Earlier quoted context omitted.

Probably not. But silent deranking of censored terms has everyone paranoid that anything even slightly controversial will get hidden.

I'm just covering my ass. Life is good right now and I don't want to meet any Nintendo ninjas, even for insinuated infractions. It's not so much a condemnation of HN, but the way IP is in the US. The only website I want hosting my comments on Nintendo modding is my own.

That's hilarious.

That modder who had to pay 2M sold drm circumvention kits for the Switch. That's a pretty clear case.

You pretending that saying "emulator" on a forum qualifies just makes you a extra special snowflake.

Re: I replaced Animal Crossing's dialogue with a live LLM by hacking GameCube memory

#46
> The game runs on a Nintendo GameCube, a 24-year-old console with a 485 MHz PowerPC processor, 24MB of RAM, and absolutely no internet connectivity.

In fact, Nintendo did release an official add-on called the Broadband Adapter, which plugged into the bottom expansion port and provided an Ethernet jack. Only a handful of games supported it, one was Phantasy Star Online. I also used it to stream games/roms from a PC. This worked by exploiting a memory vulnerability in Phantasy Star Online to load arbitrary code over the network, though with slower load times compared to running from disc.

Re: I replaced Animal Crossing's dialogue with a live LLM by hacking GameCube memory

#47

> The game runs on a Nintendo GameCube, a 24-year-old console with a 485 MHz PowerPC processor, 24MB of RAM, and absolutely no internet connectivity. In fact, Nintendo did release an official add-on called the Broadband Adapter, which plugged into the bottom expansion port and provided an Ethernet jack. Only a handful of games supported it, one was Phantasy Star Online. I also used it to stream games/roms from a PC.…

This is mentioned in the article:

"What About the GameCube Broadband Adapter?

Yes, the GameCube had an official Broadband Adapter (BBA). But Animal Crossing shipped without networking primitives, sockets, or any game-layer protocol to use it. Using the BBA here would have required building a tiny networking stack and patching the game to call it. That means: hooking engine callsites, scheduling async I/O, and handling retries/timeouts, all inside a codebase that never expected the network to exist."

Re: I replaced Animal Crossing's dialogue with a live LLM by hacking GameCube memory

#48

> The game runs on a Nintendo GameCube, a 24-year-old console with a 485 MHz PowerPC processor, 24MB of RAM, and absolutely no internet connectivity. In fact, Nintendo did release an official add-on called the Broadband Adapter, which plugged into the bottom expansion port and provided an Ethernet jack. Only a handful of games supported it, one was Phantasy Star Online. I also used it to stream games/roms from a PC.…

[deleted]

Re: I replaced Animal Crossing's dialogue with a live LLM by hacking GameCube memory

#49
post #5

That's hilarious that you give the villagers thought and the first thing they want to do is overthrow Tom Nook. If this works in Gamecube on an emulator, surely it'd be possible to make it work on the Switch emulators as well?

LLMs are heavily trained on reddit, and "Tom Nook is a capitalist dictator if you think about it" is a reddit meme. Like many LLM reactions, it's less "thought" and more "regurgitating reddit jokes/opinions".

Re: I replaced Animal Crossing's dialogue with a live LLM by hacking GameCube memory

#50

Earlier quoted context omitted.

Probably not. But silent deranking of censored terms has everyone paranoid that anything even slightly controversial will get hidden.

I'm just covering my ass. Life is good right now and I don't want to meet any Nintendo ninjas, even for insinuated infractions. It's not so much a condemnation of HN, but the way IP is in the US. The only website I want hosting my comments on Nintendo modding is my own.

I doubt a star will make Nintendo lawyers go "ow nose, they didn't spell out emulator in full, we can't attack them! Damn those star armors!". I don't think it changes anything technically.

The only thing this kind of censoring does is countering basic censor bots I think, and somehow making swear words publishable in the US.

Post reply on HN