• Z-machine in PostScript

    From John Francis@21:1/5 to Adam Thornton on Wed Oct 16 03:59:15 2019
    In article <qo6090$uh2$1@fileserver.fsf.net>,
    Adam Thornton <adam@fsf.net> wrote:
    In article <1571189269.bystand@zzo38computer.org>,
    the only feature not yet implemented is the
    printer output. (I don't know much about text layout in PostScript.

    I mean, the whole thing's pretty cool, but those two sentences there....

    Bravo.

    Adam


    But ...

    If you're fluent enough in PostScript to be able to program a Z-machine
    then the text layout ought to be easy - after all, PostScript was pretty
    much designed for the purpose of laying out text on a page!

    Of course it isn't good at writing text to a serial device, so it isn't
    really a good match for text-only I/O devices.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adam Thornton@21:1/5 to All on Wed Oct 16 02:45:52 2019
    In article <1571189269.bystand@zzo38computer.org>,
    the only feature not yet implemented is the
    printer output. (I don't know much about text layout in PostScript.

    I mean, the whole thing's pretty cool, but those two sentences there....

    Bravo.

    Adam

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adam Thornton@21:1/5 to news@zzo38computer.org.invalid on Mon Oct 21 00:44:36 2019
    In article <1571189269.bystand@zzo38computer.org>,
    <news@zzo38computer.org.invalid> wrote:
    Download:
    http://zzo38computer.org/zmachine/interp/zmachine.ps

    Specify the story file name as a command-line argument (I don't know if
    any PostScript implementation other than Ghostscript allows PostScript
    files to take command-line arguments; in case you are using a different
    one, you can know to make an array called ARGUMENTS in userdict which >contains the command line arguments).

    What version of Ghostscript do I need?

    It doesn't seem to like my passing the argument on the command-line:

    adam@air-wired:~/Documents/src$ gs-noX11 zmachine.ps /Users/adam/Documents/IF/LTOI/zork1.z3
    GPL Ghostscript 9.07 (2013-02-14)
    Copyright (C) 2012 Artifex Software, Inc. All rights reserved.
    This software comes with NO WARRANTY: see the file PUBLIC for details.
    Loading NimbusMonL-Regu font from %rom%Resource/Font/NimbusMonL-Regu... 3697096 2108832 2731760 1444260 1 done.
    Loading NimbusRomNo9L-Regu font from %rom%Resource/Font/NimbusRomNo9L-Regu... 3697096 2161856 2731760 1447742 1 done.
    Loading NimbusSanL-Bold font from %rom%Resource/Font/NimbusSanL-Bold... 3697096 2206244 2751944 1454565 1 done.
    Error: /undefined in ARGUMENTS
    Operand stack:
    Zstory
    Execution stack:
    %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1900 1 3 %oparray_pop 1899 1 3 %oparray_pop 1883 1
    3 %oparray_pop 1771 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
    Dictionary stack:
    --dict:1159/1684(ro)(G)-- --dict:0/20(G)-- --dict:85/200(L)--
    Current allocation mode is local
    Last OS error: No such file or directory
    Current file position is 704
    GPL Ghostscript 9.07: Unrecoverable error, exit code 1

    Adam

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From news@zzo38computer.org.invalid@21:1/5 to Adam Thornton on Mon Oct 21 02:50:40 2019
    adam@fsf.net (Adam Thornton) wrote:

    Specify the story file name as a command-line argument

    What version of Ghostscript do I need?

    It doesn't seem to like my passing the argument on the command-line:

    adam@air-wired:~/Documents/src$ gs-noX11 zmachine.ps /Users/adam/Documents/IF/LTOI/zork1.z3

    You will need to add -- before the PostScript file name, in order to allow
    the PostScript program to take command-line arguments. For example:

    gs -- zmachine.ps /Users/adam/Documents/IF/LTOI/zork1.z3

    (If you need to specify any arguments to Ghostscript itself, such as the
    output device for transcripts, or -dNOSAFER, then those arguments go
    before the -- mark.)

    --
    Note: I am not always able to read/post messages during Monday-Friday.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Adam Thornton@21:1/5 to news@zzo38computer.org.invalid on Mon Oct 21 04:22:23 2019
    In article <1571625759.bystand@zzo38computer.org>,
    <news@zzo38computer.org.invalid> wrote:
    gs -- zmachine.ps /Users/adam/Documents/IF/LTOI/zork1.z3

    Thank you!

    Adam

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From news@zzo38computer.org.invalid@21:1/5 to Anthk on Sun Nov 17 00:46:28 2019
    Anthk <anthk@disroot.org> wrote:

    Will it be v5 support or maybe it will be too complex
    instead of the original z3 machine? At least here there
    are some old infocom games playable, among maybe some
    really old version of Curses!.


    Currently, it is only z3 (ZIP); implementing z5 (XZIP) will be more complicated, one of the issues being the 64K string limit in PostScript,
    and another being the split screen interface (supporting split screen is mandatory in XZIP, but optional in ZIP; it is possible to fake it by just ignoring output to the status window, but some games might fail and the
    VM does not provide a way to check; XZIP also requires support for reverse video; I suppose ANSI escapes could be used if needed, but reverse video
    is optional in EZIP). XZIP (and EZIP and YZIP) are more complicated than
    ZIP though, is true. The software is public domain though so anyone is
    free to modify it as they want to do, for whatever reason.

    --
    Note: I am not always able to read/post messages during Monday-Friday.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Anthk@21:1/5 to news@zzo38computer.org.invalid on Sun Nov 17 03:00:10 2019
    On 2019-11-17, news@zzo38computer.org.invalid <news@zzo38computer.org.invalid> wrote:
    Anthk <anthk@disroot.org> wrote:

    Will it be v5 support or maybe it will be too complex
    instead of the original z3 machine? At least here there
    are some old infocom games playable, among maybe some
    really old version of Curses!.


    Currently, it is only z3 (ZIP); implementing z5 (XZIP) will be more complicated, one of the issues being the 64K string limit in PostScript,
    and another being the split screen interface (supporting split screen is mandatory in XZIP, but optional in ZIP; it is possible to fake it by just ignoring output to the status window, but some games might fail and the
    VM does not provide a way to check; XZIP also requires support for reverse video; I suppose ANSI escapes could be used if needed, but reverse video
    is optional in EZIP). XZIP (and EZIP and YZIP) are more complicated than
    ZIP though, is true. The software is public domain though so anyone is
    free to modify it as they want to do, for whatever reason.


    Well, on the reverse video, it wouldn't be a gameplay issue.
    But on the string limit you are right, you are defining the
    z-machine memory as one, as I can see.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)