Skip to Content
The Alchemy Project

Golden Sun: The Lost Age

This page is a guide to the games/tla/ folder of the Alchemy project, where every scene, battle, sprite, song, and line of Golden Sun: The Lost Age is kept as source to read and study.

The Golden Sun: The Lost Age title opening dropping through clouds onto Venus Lighthouse as a gull crosses the valley, revealing The Lost Age and fading through white into the full logo
The Golden Sun: The Lost Age title opening dropping through clouds onto Venus Lighthouse as a gull crosses…

The Lost Age is the 2002 sequel. It follows Felix's party from Venus Lighthouse and Idejima across the seas of Weyard to Mars Lighthouse. All six retail editions (tla-ja, tla-en, tla-de, tla-es, tla-fr, and tla-it) compile byte-for-byte from this tree, which covers 325 scenes, 660 battle formations, and every line of dialogue.

The Lost Age doubles the cartridge to 16 MB and enlarges nearly every system. It adds an eight-member party, 29 summons with software-rendered 3D models, the Lemurian Ship, Sunshine's Forge, and Super Lucky Dice. Beneath the new content it runs on the same architecture as The Broken Seal, so the guides below follow the same seven divisions and record what the sequel changed.

Two ideas to meet first

As in the first game, two design choices explain how the whole cartridge holds together:

  1. Cold-start engines: Field scenes, battles, and Contigo's three minigames never share a heap. Each engine starts from a clean state and hands its exit or outcome back to the main routine.
  2. One blocking tick function (sySynch): Foreground C calls sySynch(1) in a loop while per-tick callbacks move actors and riding platforms, scroll maps, and type dialogue in the background.

The system library is the starting point for a reader new to the code. How The Lost Age Evolved from The Broken Seal serves a reader who already knows the first game, and Debug Mode covers Camelot's built-in developer toolkit and boot shortcuts.

Guide by division

  1. The system library: Power-on, five gameplay engines, caller-stack ticks, 24 event slots, compressed scene overlays, and atomic 12 KB flash saving.
  2. RPG Data & Rules: Expanded item, ability, enemy, class, Djinn, and multi-element summon tables, item-unlocked classes, eight-member party rules, and 4,096 game flags.
  3. World, Scenes & Maps: Walking and height collision, carrier-rider actors, 12 new field Psynergies, four-grid maps, the Lemurian Ship, and Contigo's minigames.
  4. Battle & Effects: 660 formations, eight-member Switch and reserve swap-in, multi-action enemy AI, concurrent hit playback, and 2D plus software-rasterised 3D battle effects.
  5. Dialogue, Menus & Shops: Animated windows, context-Huffman text compression, paginated eight-member field menus, General Stores, and Sunshine's Forge.
  6. Graphics & Sound: GBA indexed palettes, 5-direction sprites, palette-swapped monsters, shared tilesets, 3D summon textures, sequel music tracks, jingle ducking, and the upgraded audio mixer.
  7. Debug Mode: Camelot's built-in retail debug menus, boot shortcuts, and test rooms.

Looking something up

  • How The Lost Age Evolved from The Broken Seal: Side-by-side architecture diff, source proof that TLA forked from Japanese TBS, TBS leftovers activated in TLA, and compiler differences.
  • Codebase Map: The method for finding the code behind any line of dialogue, a folder-by-folder map of games/tla/src/, the 15-module ROM layout, and naming conventions.
  • Places: Every town, room, and dungeon in story order with rendered maps and recorded events.
  • Glossary: Plain definitions of Golden Sun, SGL, studio, and GBA terms.

Build and cartridge at a glance

make tla-en          # or tla-ja, tla-de, tla-es, tla-fr, tla-it
make compare-tla-en  # build and verify against rom.sha1

The cartridge is a 16 MB ROM split into 15 resident modules, with 325 scenes across 114 overlays and 97 areas, 660 formations, 72 named Djinn, 29 summons, and about 3,400 PNGs.