Login
You're viewing the code4lib.social public feed.
  • Nov 19, 2026, 6:00 PM

    @a2_4am @a2_qkumba I started playing around with the Zork I-III source code a while back, making sure to start with the exact repositories in the Microsoft announcement. But I ran out of steam, and haven't even looked at it for months.

    I remember I was still in the stage where I was doing force pushes to clean up the version history, and was trying to decide exactly how the fixes should be documented.

    I may have gone a bit overboard with some of them.

    github.com/eriktorbjorn/zork-t

    💬 1🔄 0⭐ 0

Replies

  • Nov 19, 2026, 6:20 PM

    @et_andersson @a2_4am @a2_qkumba Your bug lists have been very useful to me on their own!

    But I agree that it's hard to feel motivated about a bug fixing spree. There's simple "variable used wrong" bugs, but then there's bugs which come down to “the designers didn't think of this corner case." Or “the designers *did* think of this corner case and put in an imperfect hack to avoid it.”

    💬 1🔄 0⭐ 0
  • Nov 19, 2026, 6:23 PM

    @et_andersson @a2_4am @a2_qkumba Now you’re fixing design bugs.

    You wind up trying to design the game that someone would have made 40 years ago if they’d thought of it, and then it's not a historical exercise any more. If I were writing Zork 1 today, I wouldn’t.

    💬 1🔄 0⭐ 0
  • Nov 19, 2026, 6:27 PM

    @et_andersson @a2_4am @a2_qkumba Also, on the tediously practical level, you'd have to write a very large test suite first, with 100% coverage of all printable game messages. Otherwise you run the risk that a bug fix breaks another interaction elsewhere in the game. (This happened *all the time* in Infocom's post-launch updates.)

    💬 2🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 19, 2026, 8:24 PM

    @zarfeblong @et_andersson @a2_4am @a2_qkumba a few years ago I wrote a fuzzer for Z-machine (only Mini-Zork so far) and kinda just looked for novel text output, and tried to do some strategic pruning. It did discover a bug where it printed "Clrthatrqdc"! But it was a pretty large space to explore, I always wondered if there was a smarter theorem-solver based approach or something.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 19, 2026, 8:29 PM

    @zarfeblong @a2_4am @a2_qkumba

    One good example of things that used to work but broke at some point is the buoy in Zork I. You're supposed to get a clue that there is something inside when you pick it up, but that doesn't happen in revision 88 at least.

    It's supposed to be handled by RIVR4-ROOM, but if memory serves it's the vehicle, not the room, that gets the chance to handle the action instead.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 21, 2026, 9:12 AM

    @a2_4am @a2_qkumba I don't remember. I thought I had a checklist of things I wanted to test but I can't find it now so maybe I got it mixed up with something else.

    I think I felt pretty much done with Zork I by the time I dropped it, though. So yes, probably a lot of testing. And the BUGS.md files contain things I haven't fixed.

    💬 0🔄 0⭐ 0
  • Nov 23, 2026, 8:55 PM

    @et_andersson @a2_qkumba BUGS.md mentions a bug with 'EXAMINE WALL' output, which nerd-sniped me into finding all the recognized nouns and seeing what happens when you attempt to examine them. Most claim it's not there (correct), but several seem to give "nothing special" responses no matter where you are. e.g. "examine air" ➡️ "There's nothing special about the blast of air." and "examine blessings" ➡️ "There's nothing special about the blessings."

    Is that the sort of bug you'd want to track?

    💬 0🔄 0⭐ 0
  • Nov 23, 2026, 9:01 PM

    @a2_4am @et_andersson @a2_qkumba Those are “working as designed" based on our understanding of the design. “Blessings" is available so that you can COUNT BLESSINGS, for example. The world model has no provision for an object which can be counted but not examined.

    You could add a better description, but again, what's "better"? At the time Zork was written, *most* objects said "You see nothing special" when you examined them.

    💬 2🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • 💬 1🔄 0⭐ 0
  • Nov 23, 2026, 9:18 PM

    @zarfeblong @et_andersson @a2_qkumba :)

    If you give it an empty file it gracefully exits with "No tests performed!", but if you give it a non-empty file with no tests (but with other stuff), it crashes on line 1184 "curcmd.addcheck(ln, linenum)" with "AttributeError: 'NoneType' object has no attribute 'addcheck'"

    💬 1🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0