Skip to Content
The Alchemy Project

Maps & Tilesets

This page is a guide to the games/tla/src/map/ folder of the Alchemy project, where all 301 towns, dungeons, interiors, and sailing maps in Golden Sun: The Lost Age are kept as plain text grids.

Rather than opaque binary dumps, every place in the game is held in this tree as four open .tsv grids that can be read directly. All 301 folders appear in ROM order inside maps.tsv and connect to the game through the 332-row MapsWork table in resources.s.

This guide describes how The Lost Age splits terrain flags into a fourth map grid, then covers animated tiles, World Map streaming, and special folders. How maps drive movement and height collision is described in World, Scenes & Maps.

Three layers in a four-grid .tsv layout

Daila's screen split into ground, walls and roofs, actors, and window layers
Daila's screen split into ground, walls and roofs, actors, and window layers

Unlike The Broken Seal's three-grid maps, TLA splits universal terrain flags into their own byte grid (4 grids per 128×128 map), alongside grid_actors.tsv so that characters walk behind roofs with no script code. Three hardware background layers stack vertically on screen while sitting side-by-side inside grid_picture.tsv, with column offsets, scroll ratios, and drift rates stored in layers.tsv:

FileContents
grid_picture.tsv128×128 metatile appearance indices into metatile_tiles.tsv (3 layers laid side-by-side)
grid_behavior.tsvMetatile behaviour IDs (0 = plain ground, 255 = wall, 242–247 = universal searchable jars, barrels, and similar objects, 1–230 = scene cue triggers)
grid_shape.tsvTLA terrain flags byte: wadeable water, hop ledges, ladders, and secondary encounter zone
shape_grid.tsvGround height shape indices into shapes.tsv (up to 3 heights per shape)
grid_actors.tsvMetatiles overriding an actor's BG layer or OAM priority (for walking behind roofs)
metatile_tiles.tsv, shapes.tsv2×2 tile definitions and per-pixel terrain height profiles
points.tsv, entrances.tsv, bounds.tsvNumbered anchor points (paired with field/scene_items.s to spawn up to 16 chests or hidden items), entrances, and camera bounds
animation.tsv, blend.tsvTimer-driven tile animations (maps can borrow another map's animations) and alpha-blend scripts
header.tsv, layers.tsv, contents.tsv, tilesets.tsvMap metadata, layer offsets and drift, and referenced palette plus 4 tileset resources

Japanese-only map variants sit beside base files (for example, grid_picture_ja.tsv).

Tile animations, World Map blocks, and special folders

A spot in Daila beside its tileset: watch the red outline mark animated pond tiles at the moment they repaint
A spot in Daila beside its tileset: watch the red outline mark animated pond tiles at the moment they repaint
  • animation.tsv and blend.tsv: Water ponds and torches repaint VRAM tiles on timers without modifying metatiles. Maps without their own table can borrow another map's animations.
  • world/: World Map 512×512 compressed terrain blocks (world/blocks.tsv), split into 32×32 blocks streamed 4 at a time. At most 1 new block unpacks per tick as the party walks or sails.
  • default/: Fallback World Map metatiles and shared map tables.
  • empty_map/: Empty row 0 of MapsWork used by the Title, World Map, credits, and debug level room.
  • unused_test_room/: Unreferenced test map retained in the ROM (0-based index 290, line 292 of maps.tsv).
  • Every other folder is named for the first scene in ScenesWork that uses it (for example, daila_flooded/ for MapsWork row 9). Map-reading code is in Field engine and tileset PNGs are in Graphics assets.