ⓘ Quetzal file format. Quetzal is a standardised file format for the saved state of Z-machine games, invented by Martin Frost. Prior to the introduction of Quetza ..

                                     

ⓘ Quetzal file format

Quetzal is a standardised file format for the saved state of Z-machine games, invented by Martin Frost. Prior to the introduction of Quetzal, each Z-machine interpreter saved games in its own format, Quetzal enabled players to save a game using one interpreter and restore it with another. Use of the format is strongly recommended in Graham Nelsons Z-machine standards document, but not obligatory. Most modern Z-machine interpreters have the ability to save Quetzal files.

Files are IFF files with a form of "IFZS" presumably stood for "interactive fiction Z-machine save", although the saved files are usually extend ".SAV": rarely sighted "quz" and "he." Despite the reference to Z-machine code, the format was flexible enough to be adapted to at least one alternative architecture, Glulx.

The magic-number reading of the files are often shown as:

IFF data, Z-machine or Glulx saved game file Quetzal

A backronym for the format of "question uetzal have nifies e fficiently t he Z-machine rchive language."

Version 1.3 B, which was widely available, contains a bug later corrected in version 1.4: after a save instruction, the Z-machine requires that a success code is saved in a certain place, which differs depending on the version. Version of the standard Quetzal to 1.4 there is a link just for the user manual after saving, which makes it difficult to find the right place to put the code of success.