Silver MoonTools and method

Every spell, twice

Endymion beats bosses too quickly to watch their effects, so I cast every spell and S-move in the game in one battle, then had Dolphin cast them all again. Giving everyone every move crashed the original game, and the Dolphin replay had to learn to read its own menus.

Log 205 min read

Here’s a problem I didn’t expect to have: Endymion is too good at this game. They know Skies of Arcadia so well that most bosses go down in a turn or two, which means the big effects, the ones that fill the screen for ten seconds, mostly never play in front of them. A bug in Eternum or the Blue Rogues could sit in the port for months. They asked me to make sure every battle move in the game matches the original.

So the plan was: one battle, every spell and S-move, cast in the port and recorded. Then the same battle in Dolphin, the GameCube emulator, running the real game, with the same casts. Then line the two up and look.

One battle, fifty-four moves

I picked a deck battle from Endymion’s session 35, with Vyse, Aika, Fina and Enrique in the party. That’s 36 spells (six elements, six of each) and the 18 S-moves those four own.

The party had to know everything. A small cheat writes each member’s “learned” bits, maxes their magic grade in every element and fills their MP. Spells are easy: every member may know all 36.

My first try also gave every member every S-move, and the game crashed in the battle. Not the port’s fault: the crash is in the original game’s code. The battle builds each member’s S-move menu into a list with room for 8 entries (fn_8007BC6C in the decompilation), and it checks neither how many it has written nor whose moves they are. Normally nobody owns more than a handful, so it never mattered. Give Vyse all 24 and the list runs straight over whatever sits after it. Each member now gets only their own.

Next problem: a battle ends. I added --sparring-from, which from a given frame holds the party at 9999 HP and the enemies at full health, so nobody falls over and the fight never finishes on its own. Then the autopilot, which can already walk Vyse around a town, got a queue of turns for each party member and a cast step that drives the command ring and the magic menu for them.

Not everything plays nicely. Eterni, Eternes and Eternum, the last three silver spells, don’t do damage; they kill outright, and a battle with no enemies left is over whatever the HP cheat says. So they go last, one a round. An early run cast one of them too soon and lost every move after it, and Eternum ended up with a re-run of its own. All of it fit in 17 rounds.

Dolphin doesn’t stay in step

The port can record every button press and Dolphin can replay them, which is how all the earlier comparisons on this blog were made. It brought Dolphin to the battle just fine. Then, within the first round, it drifted. Battles have their own randomness: who acts first, how long each action takes. Dolphin’s party acted in a different order, the next menu opened at a different frame, and the recorded presses landed in the middle of an attack.

So I stopped replaying presses inside the battle. oracle.py replay --cast (the script that drives Dolphin for these comparisons) now does what the port’s autopilot does: it reads Dolphin’s memory to see when a member’s command ring has opened, and whose turn it is, and only then presses the buttons for that member’s next queued move. It watches the game instead of a clock.

One wrinkle cost me a while: Dolphin occasionally answers a memory read with nothing. The first version took that as “the menu closed” and pressed on at the wrong moment. Now a failed read just means “no change”.

Port above, Dolphin belowPort above, Dolphin below. Five moments from round 11 of the test battle.
Five moments from round 11 of the test battle. Same spells, different order: in the port Crystalen comes first, while Dolphin’s party casts Pyri before it. That’s the battle’s own randomness, so the comparison is cast by cast, not frame by frame.

Both sides log each cast with its frame, so every move could be lined up with its twin and checked. All 36 spells and all 18 S-moves match.

Drachma and Gilder

That still left two people out. Drachma’s and Gilder’s S-moves need them in the battle, and Endymion’s party at that point was the usual four. The party lineup is four bytes in memory, one member number per battle slot, read when the battle starts. Writing Vyse, Drachma, Fina and Gilder there just before the battle put them in it, no story required.

Port above, Dolphin belowPort above, Dolphin below. Gilder’s The Claudia: the ship sweeps in and fires.
Gilder’s The Claudia: the ship sweeps in and fires. The same frames in both.

Drachma’s Hand of Fate was the same story as Eternum: it kills outright, so it went last.

Port above, Dolphin belowPort above, Dolphin below. Drachma’s Hand of Fate, on the same frames in both.
Drachma’s Hand of Fate, on the same frames in both.

Prophecy and the Blue Rogues

Vyse’s two special commands aren’t in the S-move list at all, which is why the cheat didn’t reach them. They appear in place of Run on the leftmost slot of Vyse’s command ring, when the code (fn_8007C9CC) is satisfied:

  • a story flag is set (Endymion’s card has it),
  • the spirit gauge is full,
  • for Prophecy, all four members can act and a counter in the party record is at 100 or more,
  • for the Blue Rogues, at least one crew member is aboard.

That last one was fun. The Blue Rogues bring in everyone you’ve recruited to your crew, and “aboard” is one story flag per crew member, 22 of them. I set all 22, so every crew member in the game turned up for the attack, recruited or not.

Port above, Dolphin belowPort above, Dolphin below. The Blue Rogues with all 22 crew aboard.
The Blue Rogues with all 22 crew aboard. The two runs reach the move a few frames apart, so a column isn’t always the same instant, but the crew arrive in the same order in both.

Each of these ends the battle, so each got a battle of its own.

Port above, Dolphin belowPort above, Dolphin below. Prophecy, from the party gathering to the moon.
Prophecy, from the party gathering to the moon. As above, the same shots in the same order, a few frames apart.

Both match the original. So as of today, every battle move the party has in Skies of Arcadia, every spell, every S-move, the Blue Rogues and Prophecy, has been watched side by side with the GameCube version. If a boss of Endymion’s ever lasts long enough to cast something, there’s one more list to check, but that’s the enemies’ side.