@a2_4am @a2_qkumba Impressive I'm sure, but I wouldn't recommend Solid Gold Wishbringer for playing. It has a rather unfortunate bug:
https://github.com/the-infocom-files/wishbringer-invclues/issues/7
@a2_4am @a2_qkumba Impressive I'm sure, but I wouldn't recommend Solid Gold Wishbringer for playing. It has a rather unfortunate bug:
https://github.com/the-infocom-files/wishbringer-invclues/issues/7
@et_andersson @a2_qkumba Has this never been fixed? We've had access to the source code for years now.
@a2_4am @a2_qkumba Well, it should be simple enough to fix. The game would still have to be thoroughly tested though, because sometimes the leaked source code deviates a bit from what was used for the relreased game, and Zilf isn't 100% compatible with every quirk of the original compiler.
Which is not to say Zilf is doing something wrong, just that the behavior may have been poorly defined to begin with.
But I was thinking of the original release of the game.
@et_andersson @a2_qkumba I understand the Infocom release is what is is, but I would love to see this and other known bugs quashed and fixed versions distributed. (If licensing is the issue, perhaps the community could start with Zork 1-3, which Microsoft has already relicensed.) Is anyone working on that?
@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.
@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.”
@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.
@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.)
@et_andersson @a2_4am @a2_qkumba (Infocom did a lot of in-house testing, but AFAIK they had no *automated* testing or unit test framework for games.) (There was a Z-machine interpreter exerciser but that's different.)
@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.
@sehugg @et_andersson @a2_4am @a2_qkumba Not that I know of. The game state is too much of a hairball.
I expect that, gah, AI coding tools would be very good at both finding bugs and creating test cases. But I am not the person who is going to go there.
@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.
@et_andersson @a2_qkumba I got this compiled locally, and it works. It seems you've fixed as many things as you reasonably could. What is left to do? Testing x1000?
@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.
@et_andersson @a2_qkumba how could I be most helpful in moving zork1-r200 towards release? Full-walkthrough playtesting? Making save files near specific bugs? Writing new <https://eblong.com/zarf/plotex/regtest.html>-style unit tests? Something else?
@a2_4am @a2_qkumba I guess if someone filed bug reports I'd feel obligated to at least look at them.
And of course, you or anyone else are free to fork the repository or cherry-pick anything you like from it. I wouldn't mind.
@et_andersson @a2_qkumba So just to get my bearings, I made a quick RegTest for nathan-71, which fails in r88 and passes in r200.
@et_andersson @a2_qkumba it seems that Quetzal save files are less helpful for this than I would have hoped, since they are invalidated every time you rebuild (if the checksum changes). But at least Voxam (used here) has an easy way to set the initial random seed so theoretically each test could just be a complete set of commands up to the point of test, and the tests would be reproducible since the randomness would be controlled.
@et_andersson @a2_qkumba I forked the repository at your suggestion, and I added a first cut of a Zork 1 test suite: https://github.com/a2-4am/zork-trilogy/blob/main/zork1/zork1.regtest
'make test' runs it
I plan to notate which tests go with which fixes, then add more tests. So far, no bugs to report. All the bugs you claim to have fixed, are fixed!
@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?
@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.
@a2_4am @et_andersson @a2_qkumba Oh, and "air" is so that you can try INFLATE BOAT WITH AIR/MOUTH/BREATH/LUNGS. I don't know why it's labelled as a *blast* of air though.
@zarfeblong @et_andersson @a2_qkumba Andrew since you're here can I also report a bug in regtest.py?
@a2_4am @et_andersson @a2_qkumba You can but I may get a headache. :)
(Remembering how regtest is "supposed" to work is not that simple.)
@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'"
@a2_4am You mean, like, a command and response with no test header? Ok, yeah, I see that. Thanks.
@zarfeblong @a2_4am @a2_qkumba I think the first text adventure I saw where just about every object had its own description was The Pawn, by Magnetic Scrolls.
@et_andersson @zarfeblong @a2_qkumba When the cyclops is asleep, HELLO CYCLOPS says "The cyclops bows his head to you in greeting." And GIVE (anything) TO CYCLOPS says "The cyclops refuses it politely." You fixed similar bugs around the unconscious thief (e.g. LISTEN).
@a2_4am @zarfeblong @a2_qkumba Thanks, they should be fixed in my repository now.
examine zorkmid ➡️ "The zorkmid is the unit of currency of the Great Underground Empire."
examine intnum ➡️ "There’s nothing special about the number."
examine overboard ➡️ "There's nothing special about the set of teeth."
@a2_4am @et_andersson @a2_qkumba Aside from Torbjörn's bugfixes, the only project I'm aware of that attempted to actively enhance Infocom games is Planetfall-Modern (https://github.com/Kweepa/Planetfall-Modern).