The Cabinet of Curios

Z-Machine Interpreter

About the interpreter

Infocom wrote its games for a computer that didn't exist, the Z-machine, and shipped a small program for each real computer that pretended to be one. This page is one of those programs. It loads a story file and plays it: you type, the game answers.

Playing

Pick a built-in story or open one of your own. Type a command and press Enter: look, take leaflet, go north or just n. ↑ and ↓ bring back what you typed before. x works for examine in every game. The page remembers where you were, so you can close it and come back.

Saves and Undo

save and restore keep games in this browser, and Undo takes back a move. Saves lists the games you've saved: restore one, rename it, delete it, or download it as a file that other interpreters open, with your notes and map inside. Open a save file there, or drop one on the page, to add it. When a save brings notes or a map, Restore asks whether to bring them back too.

Notes and Map

Notes opens a notepad beside the game for clues and combinations. Map draws the rooms you walk through as you go, with the things you've seen in each, and Redraw tidies it from every way you've found.

Enhanced and Cheats

In the three Zorks, Enhanced adds a line under the status line with what the game keeps to itself: whether the room has light of its own, turns left on the lamp you're carrying, how much more you can carry, how long your wounds take to heal, and in Zork I, once you've opened the trophy case, the treasures in it.

The Zorks also get Cheats: Well lit gives every room light, and Endless lights keeps the lamp, candles, and matches from running out. In Zork I, Thief stays home keeps the thief in his treasure room and Stable objects stops him taking what you leave lying around. In Zork II, No wizard stops the Wizard dropping in to cast spells.

Inspector

Inspector shows what the machine holds as you play: the object tree, every global variable, and what each command changed, named the way ZILF named them in the built-in stories. It starts with only the room you're in, and Whole tree shows the rest, hidden things too. Type in Find an object to pick out things by name or number, and see what each is inside.

Screens and full screen

Pick a screen to play on: a desk monitor, a green screen, an Atari 800, or a printout on fanfold paper. Full screen gives the story the whole window, with nothing else on it, and Esc brings you back. In full screen, Saves, Notes, Map, and Inspector are on the right end of the screen's top line, and on a phone each one fills the screen until you close it.

Esc or a click outside closes this.

Loading…
Where to find story files
Built in:

See inside a story file
Screen:

Things to notice

Where to find story files

People still write games for the Z-machine, and hundreds are free to download. The IF Archive keeps them.

Files ending .z1 to .z5, .z7 and .z8 play here; .z3, .z5 and .z8 are the usual ones. A .zblorb wraps a story file with its cover art or sounds, and this page takes the story file out. Version 6 games (.z6) draw pictures and lay out their own windows, which this page doesn't do. Files ending .ulx or .gblorb are for Glulx, a different machine.

A few to start with, all on the IF Archive:

Most of Infocom's games are still under copyright, so this page doesn't link to copies. If you have the files from a copy you own, they play here like any other. Zork I, II, and III are the exception: their source is free under the MIT License, at historicalsource/zork1, zork2, and zork3.

Sources