1985 · Ocean Software

The NeverEnding Story

This minisite was contributed by air, 64kramsystem. It’s agent-generated and needs a human editor. Clone https://github.com/gamesexplained/gamesexplained and follow kit/START.md to curate games/c64/neverending-story with me to Gold.

With the crackers' loader, restarting after Part 2 loads Part 3 where Part 1 should be, and from there the game cannot be played.

01 · The crackers' loader

Bug: restarting after Part 2 loads Part 3

Die in Part 2, or type QUIT and answer Y, and the game asks for Part one: "Game over!", then "Hit space to load part one!". Press Space and the drive loads Part 3. The game carries on as if it were in Part 1, reading Part 3's tables, and fills the screen with letters that make no sense.

The game after QUIT and Y in Part 2: Are you sure? Game over! Hit space to load part one!
QUIT and Y in Part 2's first room.
The play screen after the load, its text window full of unreadable characters
After Space: the load returned with the name "PART 3", and Part 3's first bytes at $2F00.

The fault is in the loader the crackers wrote for their disk copy. The game asks for a part by number: SHOW_PART_LOAD_SCREEN ($0439) prints the name of the part from CURRENT_PART_NO, then calls the loader. The loader ignores the number. It adds one to the digit of the file name "PART 0" ($C009, copied to $9709 when the opening ends) and loads whatever that names, so the files come in the order they were first loaded and never go back. A restart from Part 1 is safe, because the game reloads Part 1 only when another part has been loaded since (LOADED_PART_NO, $14E9).

Part 1's start script ($2968, in the engine) runs after every load of Part 1 and prints event 27, Cairon's message to the peoples of Fantasia. Part 3 has 9 events, so the pointer the printer reads for event 27 lies past the end of Part 3's table, and the bytes it points at are not text. Step through a game above: after each load the page prints, with its port of the game's printer, what the start script prints.

02 · The end of the game

Bug: winning asks the drive for a Part 4

The game ends in the Empress's quarters at the top of the Ivory Tower (room $7C in Part 3), and the win restarts the game. The restart asks for Part one, as above, and the loader, which has loaded three files, asks the drive for "PART 4". There is no such file. The KERNAL's LOAD returns with the error for a missing file, the game carries on with Part 3 still in memory, and the screen fills with the same nonsense as after the restart from Part 2. Press Win in the stepper above to follow it.

The play screen after the ending's restart: a picture from Part 3 and unreadable text
After the ending: LOAD comes back with carry set and A = 4, file not found, for "PART 4", and $2F00 still holds Part 3.

03 · Directions

Quirk: "N E", as the instructions spell it, does not go north-east

Ocean's instructions list the directions as "North (or N)", "North East (or N E)" and so on. Type N E, or NORTH EAST, and the game answers "You can't do that." Only NE and NORTHEAST work.

N E and NORTH EAST typed in the first room, each answered: You can't do that.
N E and NORTH EAST in the first room, where NE leads to the forest track.

The parser on the How it works page, a port of PARSE_INPUT ($122F), RESOLVE_VERB_NOUN and DISPATCH_COMMAND.

The parser looks each word up by its first three letters, and N and E are each a verb, north and east. RESOLVE_VERB_NOUN ($1396) takes the first verb, and takes the next word, whatever it is, as the noun: N with the noun E. The ten direction verbs have one pair each in the table of 70 ($19A0), all with no noun, so N with a noun matches nothing and prints sentence 3. NORTHEAST works because the parser looks at letters 4-6 of NORTH and SOUTH: THE or THW turns the word into one of the diagonals ($1335). The instructions are the cassette's, as transcribed for the Amstrad release: the C64 copy's own were not found.

04 · Words that do nothing

Secret: MUSIC and NOM answer "Ok!" and do nothing else

Two verbs are in the vocabulary that the instructions never mention: any word starting MUS, and NOM. Each has a pair of its own (pairs 28 and 29), whose scripts run an action that does nothing, then print "Ok!" ($2B25, $2B29). The actions, $0B and $0C, lead to single RTS instructions at $0699 and $069A. TEST, or T, runs pair 30, whose one action, $0F, is a NOP and an RTS ($118F): it prints nothing at all.

MUSIC and NOM, each answered Ok!, and TEST, answered by nothing
MUSIC, NOM and TEST in the first room.

What the three verbs did before their actions were emptied is not in this copy.

05 · Saving

Secret: SAVE and LOAD were switched off, but the tape code is still there

The instructions explain how to save a game to tape and load it again, and say that the game asks, when it starts, whether to restore a saved game. In this copy SAVE and LOAD print nothing at all, and the question is never asked.

SAVE and LOAD typed in the first room, each followed by nothing
SAVE and LOAD in the first room.

The SAVE and LOAD actions each jump to a single RTS ($1189 to $0491, $118C to $045F). The routines they once called are still in the engine, whole: DISK_SAVE_GAME ($0494) and DISK_LOAD_GAME ($0461), with a prompt for the file's name ("Please enter the filename", $04C8), and they name device 1, the cassette ($050C). INIT_GAME ($14D6) is a jump over ASK_RESTORE_GAME, the routine that asks the question. Two of the engine's 68 sentences read like parts of the same feature, and the game never prints them:

Sentences $33 and $11, printed by the page's port of PRINT_SENTENCE ($099B).

Whether Ocean shipped the game this way or the crackers switched saving off is not known: the original cassette was not examined.

06 · Pictures the game never shows

Secret: a crucifix and a picture the game never shows

Icon slot 27 holds a gold cross ($B640), and the vocabulary has the word CRUCIFIX (noun $5A, object 40). The object starts the game gone, and the scripts never put it anywhere. Even if one did, its icon could not be drawn: RESOLVE_NOUN ($15E3) finds an object's icon by looking its number up in a map of 36 ($22A4), the map has no entry for object 40, and slot 27's entry holds the number of Auryn, which an earlier slot already matches.

Picture 49, Atreyu buried to the waist in rubble, is one of Part 3's. None of the rooms has it as its picture (OBJ_ROOM_TABLE, $0D4F), and none of the scripts of the engine or the three parts shows it.

Icon 27 and picture 49 over the backdrop, drawn from the game's bytes by the page's port of BLIT_ROOM_GRAPHIC ($05BF).

07 · The vocabulary

Quirk: the two trees have names that cannot be typed

Objects 2 and 50 are both trees, which the rooms never list (both description pointers lead to $2338, whose $40 marks an object left out of the list), one in Morla's swamp (room $11) and one at the foot of the enormous tree near the Southern Oracle (room $23). Each has a noun of its own, $34 and $64, and the vocabulary spells both TRE ($1B96, $1C52). It also has a third TRE, earlier in the list, for the noun $CB ($1B82), and the lookup stops at the first match (VOCAB_LOOKUP, $12C4). Typing TREE always gives $CB: CLIMB TREE works, because the climbing scripts do not ask which noun was typed, and GET TREE answers "You can't do that."

Two more entries can never be used:

08 · The crack

Secret: the crack keeps Ocean's tape loading picture

This copy is a crack of the cassette by MrL and Dr Bakterius, "CRACKED AT 11/23/85". After the crackers' scrolling intro it shows the picture Ocean's tape showed while it loaded: the title, Auryn's two snakes and the Ocean logo. The crack's code at $CA00 copies the game's first kilobyte into place from $C200, shows the picture (its bitmap at $4000, its colours at $6000 and $C600) until a key is pressed, and starts the game at $0400. Part 1's load then overwrites the picture. Ocean's cassette shows the same picture, the same in every pixel (Graphics).

Ocean's loading picture: The Neverending Story, two snakes biting each other's tails, the Ocean logo and 1985
The loading picture, before the game starts.

09 · Leftovers

Secret: code to return to BASIC, hidden in two icon slots

Icon slots 4 and 5 ($A7E0-$A91F) hold code instead of pictures: the raster interrupt that splits the screen, the opening's interrupt, and two routines the game never calls. RESTORE_SYSTEM_TO_BASIC ($A893) clears the zero page and pages 2 and 3, copies the KERNAL's vectors back and calls BASIC's own start-up routines, and INSTALL_GAME_IRQ ($A8CC) sets up the game's interrupt. None of the objects' icon numbers leads to slots 4 and 5, so the code is never drawn as a picture.

10 · Open questions

What we have not settled