Eschaton GamesRPG Tsukuru Advance an English guide

Behind the scenes#

Who made RPG Tsukuru Advance, what its makers left in the cartridge besides the program, the cartridge this study worked from and the game a player left on it, how the study behind this guide was done, and what is still open.

The credits#

The staff roll, which ends a game made with the cartridge: the cartridge's own staff after the game's.
The staff roll, which ends a game made with the cartridge: the cartridge's own staff after the game's.

RPG Tsukuru Advance names its makers in its own staff roll, and every game made with it can end with that roll: the event command for the ending plays it, to BGM 26, エンディング1 (Ending 1) (Events, Playing a game). The names scroll up the screen, white on black. The first lines are yours: the game's author, under 「ゲームデザイン」 (game design), then the game's own six staff lines, then the cartridge's staff:

On screenIn EnglishNames
Game designThe game's author, typed as the author on its Title page
(six pairs)The game's own staffThe game's six staff lines, role and name, from the Title page's second page; empty lines are skipped
Software design,
Director,
Program, ,
Graphics, , , , , ,
Sound
Jewel Keeper (the sample game), , ,
Manual, , ,
Package design
Sales, , , , ,
Promotion, ,
Special thanks, , , , ,
Supervisor,
Producer
Executive producer,

The roll ends with 「©2002 ENTERBRAIN,INC.」. The names in bold are on RPG Tsukuru GB's staff roll too: 18 people, among them GB's director, its main programmer, its map artist and its sound designer. The cartridge names no developer, only its people (Who made it).

BGM 26, エンディング1 (Ending 1), the staff roll's song.
The Title page's second page: the game's six staff lines, role and name. The cartridge's game left them empty.
The Title page's second page: the game's six staff lines, role and name. The cartridge's game left them empty.

Three details:

Hidden content#

WhatHow to reach itMore
R held: double speed, through wallsTest play, walkingbelow
SELECT: a battle with one of the map's unitsTest play, with a party, on a map with units, outside a town's buildingsbelow
SELECT + START held as a map loads: straight into create modeTest play (read in the code, not tried)below
The DEBUG TASK: 「VERSION 0214A」, a blank game written or the game erasedNothing reaches it; seen on a patched copy of the ROMbelow
A shortcut into create mode, with no game runningNothing opens it; seen on a patched copybelow
58 internal checksOnly an internal fault; on a cartridge the game would stop without a messagebelow
Three menus nothing opens, 74 routines nothing calls, a colour toolNonebelow
A sound effect nothing plays, a stand-in that shipped, four silent samplesAn event's sound command set to 129 (not tried)below
A library of developers' records behind the editorsThe editors copy from itbelow
Unused messages in both samples and in the cartridge's gameNonebelow

There is no debug menu a player can reach, no sound test, no button code and no soft reset. The pad is read in one place, and every test of it in the program was looked at: no sequence of buttons is compared anywhere, and nothing reads the pad at power-on or on the title beyond the ordinary menus. What there is:

Test play's buttons#

Test play's bar names two of its buttons, START and SELECT. Here, inside a castle, SELECT does nothing.
Test play's bar names two of its buttons, START and SELECT. Here, inside a castle, SELECT does nothing.

In test play, the play you start from Make the Game , three buttons do more than they do in a published game (Playing a game):

A lost battle in test play is no Game Over: the party is back on the field, and if all fell, the first member is revived at full HP.

The DEBUG TASK#

The DEBUG TASK, from a copy of the ROM patched to start there: its version, a frame counter, three buttons.
The DEBUG TASK, from a copy of the ROM patched to start there: its version, a frame counter, three buttons.

The program begins with a developers' boot screen that the released game never reaches. It is in plain capitals, white on black:

DEBUG TASK
VERSION  0214A
vcnt   = %5d
PRESS A BUTTON TO TITLE TASK
PRESS R+SEL BUTTON TO INIT BURAM
PRESS L+SEL BUTTON TO FACTORY

Nothing in the program chooses it: power-on goes to the title (or, in the user-game mode, to the game), and the top menu's entries go elsewhere. Started from a copy of the ROM changed in one byte, it showed the screen above, with the frame counter (vcnt) running:

「0214A」 is the only version string in the ROM, and reads as a build stamp: 14 February, perhaps, two months before the release (inferred). There is no build date anywhere.

A shortcut nothing opens#

A second leftover goes straight into create mode on the game's first map, with no game running beneath it. When you leave the editor it opens it again if L is held, and otherwise goes to Make the Data's menu: a developer's way of saying "edit the first map, and hold L to stay" (inferred). Nothing in the program opens it. With one of Make the Data's buttons patched to it in a copy of the ROM, it opened create mode on the world map, test play's bar above, and no play behind it. Its return was not tried.

The internal checks#

The program checks itself in 58 places, with Nintendo's standard assert routine: a check that fails would print its source file, line and expression to a developer's debugging hardware and stop. The source files' names are the developers' own, service/sv_buram/sv_buram.c for the flash and the game's data, edit/evt/… for the event editor, tf/p_tf04.c for the Turbo File, and some of the expressions name what they guard, a buffer for the chests' flags, a limit of 128 objects on a map (How it works). On a cartridge there is no such hardware, so a failed check would hang or crash the game without a word (inferred: none was made to fail). The routine's warning message spells WARNING as 「WARING」.

Sounds nothing plays#

Leftovers in the games#

The ROM holds three games' data besides the program. One is not a game at all:

The last 24,656 bytes of the ROM are empty, padding to 8 MiB.

The cartridge studied#

The study had RPG Tsukuru Advance's ROM and the flash of one second-hand cartridge.

The game on it#

Its title: ファイナル クエスト over the title picture ドラゴン (dragon), in a frame.
Its title: ファイナル クエスト over the title picture ドラゴン (dragon), in a frame.
A battle written to be lost: the demon is level 52.
A battle written to be lost: the demon is level 52.

The flash holds a game a player made: ファイナル クエスト (Final Quest), its record in the works ファイナル クエスト. The cartridge came second-hand, so this guide describes the game and leaves its maker out: the Title page's author field holds a name that reads as a real person's, and it is shown nowhere here. The six staff lines are empty, and no play of it was ever saved.

It is a short fantasy RPG in the classic mould, its title and its spells borrowed from Final Fantasy and Dragon Quest both (ホイミ, ファイア, エスナ …). The hero, whom the player names, is a castle's guard captain; a soldier who joins him turns out to be a demon in disguise and steals the first of four orbs that hold a sealed demon king's power. The captain warns a kingdom of magic, saves a white mage in a tunnel, is given a black mage by its king, and loses the second orb to four thieves in a cave under a lake. Then the story stops: the king sends the party west for a ship, and past the bridge guard nothing is built. It is unfinished.

Where the cartridge's game stops: the throne room of Colt, after the king's last speech.
Where the cartridge's game stops: the throne room of Colt, after the king's last speech.

Most of the editor screenshots in this guide show its data, since it is what the cartridge held. It was read whole with the study's tools, and every story scene was played in mGBA: the opening from power-on with the flash as it is, the rest from copies whose test-play start was moved to each scene. The walks between the scenes were not played, and the levels were raised for the battles.

How this study was done#

Everything in this guide comes from the program itself. There is no manual or guidebook of RPG Tsukuru Advance in the project, so the guide cites none.

The work ran as fourteen steps, each finished with its notes, a tool and a check:

StepWhat it settledHow it was checked
A1. The power-on checkWhat the game does with the flash at power-on, and that the cartridge's flash is safe to switch onDamaged and erased copies booted; the cartridge's flash left unchanged
A2. The program mapThe ROM's layout, Nintendo's libraries, the 299 kinds of processThe whole program in a decompiler: 5,557 routines, every kind and every internal check named
A3. The screensEvery menu and editor page, play and create mode63 screenshots from the emulated screen, each with a saved state and the processes running
A4. TextThe 2,560-character table and the 8 × 12 fontDecoded text set against the screen; the kanji matched by shape and by the program's own lists by reading
A5. The saveThe game's data in 16 sections and how each record is packedAll four game images (the cartridge's, the two samples, the default library) rebuilt byte for byte; a renamed character accepted, then saved by the game to the same bytes
A6. The databaseEvery field of every record, named from the editor page that draws itThe stats worked out from the fields match every screenshot; an edit in the game changed exactly the field expected
A7. Maps and graphicsWorlds, towns and dungeons; the graphics; a GBA picture processorEvery map of the four images drawn; each screen found in its drawing with 0 pixels different
A8. EventsThe 110 commands, pages, start types, conditions and variables1,120 events to a script and back byte for byte; events written by tool ran as predicted
A9. BattleThe formulas, the monsters' choices, the random numbers31 recorded battles replayed draw for draw, with no mismatch (53 after A15)
A10. SoundThe song table, the instruments, the editor's listsEvery song recorded in the game and replayed by a model of the sound engine, every mixer block the same: 167 songs, 277,080 calls
A11. Play, limits and hidden contentThe field, shops, saving, the ending, every limit, the leftoversSixteen checks run from test saves made by tool
A12. LineageWho made it; GB, RT3, RT4 and RPG Maker 2000The staff rolls, the Turbo File driver, the generators and the lists compared in both programs
A13. A second emulatorThe main findings, again in mGBAThe boot frame for frame, eight flash cases byte for byte, 31 battles draw for draw, two play tests to the same screens
A14. The cartridge's gameファイナル クエスト read whole and playedEvery story scene played in mGBA

A second emulator#

So that nothing rests on one emulator's quirks, the main findings were run again in mGBA 0.11, through a small frontend of the study's own written in Python, with the same GBA start-up and the frames numbered as Mesen numbers them. They agree:

ComparedWhat Mesen and mGBA did
The boot and the menusThe same changes on the same frame numbers, every one, from power-on to frame 1300; the same still screens pixel for pixel
The flash at power-onEight cases (the cartridge's, erased, damaged in four ways, an edited game, a play save): the same 65,536 bytes left in each
BattlesAll 31 recordings: the same seed, the same random state at the end of each, and no value of the battle with a different history
PlayTwo tests (the money and level caps; the inn with a poisoned leader) to the same screens
Where they differA long load can take a frame more in one than the other, so one runs a frame behind after it; a value being written as a frame ends can be caught at either side of the write; Mesen's shots blend a fast-changing screen's frames

What differs is timing inside a frame and the length of a few loads, not the game's logic. Which of the two is nearer a real GBA's timing was not tested.

What's left open#

RPG Tsukuru Advance counts as decoded: every part a game is made of is read and written back, and its battles and songs are modelled exactly. These points are not settled:

Still openWhy
The airship landed on a town's entrance square, where the code reads as refusing to land on anything standing on the mapSeen; not explained
Play: teleporting from a town or dungeon, the special skills' HP cost wrapping, a map with no saving, the user game's Game Over and ending, battles aboard the shipRead in the code; not run (they need a project built for them, or user game mode)
Limits: the editor's own guards (the number box's clamp, a list held at 8,000 bytes, more pages, buildings, floors or jobs than it allows, Clear Data's character and title choices)Read in the code; not run (they need long scripted walks through the editors)
Battle: items other than healing ones, a failed group escape, a member's own counter, escape or self-sacrifice, 身代わり, a double attack on several targetsRead in the code; not recorded
Why a list stops at 8,000 bytes; the Game Over's song; a few labelsNot found
Which screens load about 30 of the graphics resources; the tiles of 17 outlined headingsNot settled
Data Exchange and the Turbo File past the errorThey need a second GBA or the device; the Turbo File driver is GB's by its code, never run against a device
Which emulator's load timing is nearer the hardware; the DEBUG TASK's flash writes and the 22 newer battles in mGBANot tested
What the manual says about R, SELECT and the shortcutsNo manual in the study

Fan-made reference material, one of the Eschaton Games Tsukuru guides. Not affiliated with the publishers of the titles it covers. Corrections and questions: contact@eschaton.games.