[z-machine] Hello?

Albumin Petrofsky alpetrof@csua.berkeley.edu
Sun, 27 Feb 2005 16:27:46 -0800


> From: Johnny Billquist <bqt@Update.UU.SE>

> First of all, the V6 game I'm using for test is Zork Zero 393.890714.

> I'm using a real live actual text terminal to play. So no real
> graphics around (unless you count the character graphics in V5). The
> interpreter is, as I said, identifying itself as type 1
> (DEC-20). It's definitely the closest, and most sensible for me to
> say. :-)

I know it feels awful to do it, but you're better off telling the game
that it's on a lowly PC.  The released versions of Zork Zero appear to
have been written to assume that they have graphics and to make cursor
positioning decisions calculated from the dimensions of various
pictures.  Unix-frotz never worked on Zork Zero until I added
dumb-frotz's picture-outline support, which makes the scaled
dimensions of all the pictures available to the game.

Here's the relevant line from dumb_init.c:

    /* Use ms-dos for v6 (because that's what most people have the
     * graphics files for), but don't use it for v5 (or Beyond Zork
     * will try to use funky characters).  */
    h_interpreter_number = h_version == 6 ? INTERP_MSDOS : INTERP_DEC_20;

In case you've never seen dumb-frotz, here's a screenshot (in all its
ASCII glory) of what "picture-outline support" looks like:

   +-------------------------------+---------+-------------------------------+
   |:::::::Banquet Hall      ::::::|:::::::::|:::::         Flatheadia:::::::|
   |:::::::Moves:::0    :::::::::::|:::::::::|::++::::::::::Score:   0::::::5|
   +-------------------------------|:::::::24|-------------------------------+
   +------+                        +---------+                       +-------+
   |::::::|                                                          |:::::::|
   |::::::|  +--------+ nother frantic day at the castle; Lord       |:::::::|
   |::::::|  |::::::::| Dimwit Flathead the Excessive has invited a  |:::::::|
   |::::::|  |:::::::2| few thousand friends over for dinner. Three  |:::::::|
   |::::::|  +--------+ hundred dragons have been slaughtered for    |:::::::|
   |::::::|  the occasion, and the kitchen is suffocated by the      |:::::::|
   |::::::|  stench of their roasting flesh.                         |:::::::|
   |::::::|                                                          |:::::::|
   |::::::|  Banquet Hall                                            |:::::::|
   |::::::|  +---+ The hall is filled to capacity, and the thousands |:::::::|
   |::::::|  |216| of reveling guests are raising quite a din. The   |:::::::|
   |::::::|  +---+ primary exits are to the west and south; smaller  |:::::::|
   |::::::|  openings lead east and northeast.                       |:::::::|
   |::::::|     Dimwit is seated at the dais. His loud voice carries |:::::::|
   |::::::|  across the crowded hall. "Now that the statue is done,  |:::::::|
   |::::::|  we must do something ceremonial. I have it! A           |:::::::|
   |::::::|  dedication! We'll give everyone in the kingdom a year   |:::::::|
   |:::497|  off and invite them to the Fublio Valley..."            |::::498|
   +------+                                                          +-------+

-al