Auto mapper

39 views
Skip to first unread message

Egor

unread,
Jul 7, 2011, 3:41:25 AM7/7/11
to ifrotz-discuss
hello!
I was wondering if it is technologically possible to add auto mapping
functionality. I haven't seen any Z machine interpreter with such a
functionality, so I would assume that this is a difficult thing to do.
Message has been deleted

Craig Smith

unread,
Jul 7, 2011, 2:49:10 PM7/7/11
to ifrotz-discuss
Unfortunately, auto-mapping is really an intractable problem and it's
impossible to do it with anything close to 100% certainty. The Z-
machine and other IF formats are Turing complete simulated computers
running arbitrary programs. There's no way to determine the
connectivity between rooms (or even what counts as a room) because
this can change dynamically. The best you can do is to use heuristics
and make assumptions based on knowledge of the way common IF libraries
work, and it's easy to get things wrong, which could be very confusing
to the user. The only reliable way to do auto-mapping is to build
support for it into the games themselves (a la Beyond Zork).

That said, I am working on adding a manual mapping assistant to Frotz.
I may use information from the Z-machine state or even the text output
to provide defaults for room names and exit directions and such, but
it will not be a full-fledged auto-mapper.

Egor

unread,
Jul 7, 2011, 3:25:56 PM7/7/11
to ifrotz-discuss
I realize that it is not possible to parse a Z-file and build the map
from of it. My idea was that the auto mapper parses player's input
and if the location is changed (which I assume is a state in Z-
machine) then the map is updated with the new location.
If I understand correctly, this is similar to what you described.

Take care hunam captain!
Reply all
Reply to author
Forward
0 new messages