The test mission missing from the disc
Every map of the game is played with a mission script: one .lsc file per mission (y01.lsc-y11.lsc and Y12.lsc-Y23.lsc for Yugi, S01-S22 for Seto Kaiba, J01-J11 for Joey; the game asks for lowercase names). The script places the towns and units, runs the dialogue and decides when the mission is won.
A map started from the developer menu’s LOCAL-MAP row is not part of a story, and for that case the code asks for a different file: dbg.lsc, the developers’ own test mission. It is not on the retail disc. The read fails, the map still starts on an empty script buffer, and the result is the bare stage: terrain, scenery and the cursor.
- Where
- main.dol, file name dbg.lsc; developer menu row 6 (LOCAL-MAP)
- Name in the code
- dbg.lsc
- On the disc
- No
- Effect of the missing file
- The map runs without towns, units or goals
- Files
- 2 · 7.0 MB
Images
LOCAL-MAP as the retail disc has it1280 × 960 · 3.5 MB
A stage with no mission; only the cursor
LOCAL-MAP with a mission script supplied as dbg.lsc1280 × 960 · 3.5 MB
Here Yugi’s first mission (y01.lsc) copied under the name dbg.lsc
Put any mission script on the disc under that name and the row becomes a working mission test: the second picture shows the same map with Yugi’s first mission loaded as dbg.lsc, its win and loss conditions on screen.
What the original dbg.lsc contained is unknown. Its name says only that it was a debug mission in the normal script format.
Start values
A map started this way also gets its own starting values, set by the same code: 5,730 gold and a time limit of 1,000 ticks of the map clock. The code takes the hour from the developer menu’s TIME value (7:00, 17:00, 19:00, or 12:00 for TIME 3), but pressing A on LOCAL-MAP sets TIME back to 0 first, so a map started from the menu always begins at 7:00. With TIME 3 the code would also start the map in a viewing mode of its own: the clock stands still, the usual map commands and engagements are off, and A on one of the player’s units sends it walking to a random spot or stops it. No row of the menu can reach that mode.
Evidence
When a map starts without the story flag that the story map sets once a mission’s introduction has played, the map’s set-up code loads dbg.lsc itself, with the stage’s terrain; after a battle it reloads the same name. Only the developer menu’s LOCAL-MAP row starts a map that way; in normal play the story map has already loaded the mission’s own y, s or j script. The disc’s file table has no dbg.lsc. In the same case the set-up code sets the gold to 0x1662 (5,730) and both the time total and the time left to 0x3E8 (1,000) (machine code at 0x80025A34-0x80025AB0). With the read failed, the start-up still runs on the empty buffer and the script interpreter finds no commands.
The hour is read from the TIME value when the map starts, and LOCAL-MAP’s A sets that value to 0 just before. In Dolphin, a map started with TIME set to 2 (night) in the menu opened in daylight; it showed night only when TIME was held at 2 by a patch on every frame.