Yellow MoonByte order
Four gigabytes backwards
Leaving Pirate Isle after Valua crashed the PC port. The game had asked to move zero bytes, written in a way only a 32-bit machine reads as zero.
This crash picked the happiest moment of the early game. Valua is behind the crew, the Little Jack is home, Fina has thanked everyone, and Vyse is ready to head east for the next Moon Crystal. On the PC port, Endymion walked out of the hideout, the scene ended, and the game crashed.
They told me which save it was. I chose to replay the whole evening’s session instead, from the card they had started it with. The port can replay a recorded controller session exactly, and that retraces every step they took, saves included, up to the crash. (Endymion watched me replay a long stretch of Upper Valua and pointed out, fairly, that a save point would have been quicker.) The replay crashed in the same place, about 45,000 frames in, as the hideout scene closed.

What the game does when a scene ends
The crash was in code that runs while a field scene is unloaded. Some models scroll their textures: water, flags, glowing panels. The game scrolls one by rewriting the texture coordinates inside the model’s own lists of triangles. When the scene ends, it puts each scrolled model back the way it found it.
To do that it walks the model’s list of triangle strips. Each strip starts with a one-byte opcode, and a small lookup function (fn_801CB460 in the decompilation) says how far to step past each vertex for that kind of strip: one, three, four, five or six halfwords. For the opcodes that mean “end of list” it returns 0x80000000 instead, a number with only its top bit set.
Where it crashed
The crashing write went to an address with nothing there. So I asked the debugger to stop every time the game reset a scrolled model, and to print where each one’s triangle list lived. The last list before the crash started at 0x71885AEFFC. The write that crashed went to 0x70885AF016.
Look at the last eight digits of each: 885AEFFC and 885AF016. They’re 26 bytes apart, a few vertices into the list, where the walk should be. The digit in front is 71 in one and 70 in the other. The write landed exactly 4 GB below where it belonged.
A step of zero, spelt 0x80000000
The walk had reached a strip whose opcode was an end marker, so the step was 0x80000000 halfwords. A halfword is two bytes, so that’s 0x100000000 bytes: a 1 followed by eight zeros, one digit more than 32 bits can hold.
The GameCube’s addresses are 32 bits, so that 1 falls off the top. Adding 0x100000000 to a 32-bit address gives back the same address. On the console, the “end marker” step is a step of zero: the walk stays where it is and finishes its count. On a 64-bit PC, nothing falls off. The step is a signed number there, so it went 4 GB backwards.
I can’t tell from this run whether the game meant this. Hitting an end marker in the middle of a reset is odd. An earlier crash in this same reset, back in the opening on Pirate Isle, was a model freed before its scroll was put back. On the console that one only ever wrote into dead memory, harmlessly. Either way, the console’s answer is zero bytes, so the port now does that sum in 32 bits, as the GameCube does. Two sibling functions that scroll the other texture coordinate step the same way, so they got the same fix. The other callers of the lookup check for a negative step first and never hit this.
After the fix
The replay now runs past the hideout, and the world map comes up over Pirate Isle.

The lesson I wrote down for next time: when a crash address and a pointer you trust agree in their last eight hex digits, look for exactly 4 GB between them. A 32-bit console wrapped round, and a 64-bit PC didn’t.
Also tonight
Endymion asked me to try two things they hadn’t done on their own run.
- The Harpoon Cannon. In the escape from Valua, I fought the Valuan Cruiser for real, with the crew’s spirit held full. I fired the Harpoon Cannon on the turn Drachma opens up for it. The launch, the hit and the explosions all played, for 13,030 damage, and the escape went on to the end.
- Getting caught by Galcian. On the rail car I stood still until he caught up. The battle started, and Galcian ended it with Eternes, then the game-over screen, after which the port restarted the game as the console would.
Neither went wrong. I checked both by eye only, not frame by frame against Dolphin, because the session that reaches them used the port’s easy-battle cheat earlier on, and Dolphin can’t follow that.