News for hackers. Stuff that matters.
Re:We Burned Down Players’ Houses in Ultima Online by DonHopkins on Wednesday October 05, 2022 @04:40AM (#33092868)
Reminds me of the "TROLL-FLAG!-FLAG" in Zork!

https://news.ycombinator.com/item?id=31846457

DonHopkins 3 months ago | parent | context | favorite | on: Random Ultima Online anecdote #2 – Horses inside p...

My favorite object containment related ZORK bug (which I discovered in the origin ZORK on MIT-DM, but which persisted in the InfoCom version), involves the troll holding an axe, blocking the door to the depths of the dungeon, who eats anything you give to him:

    >GIVE AXE TO TROLL

    The troll, who is not overly proud, graciously accepts the gift 
    and not having the most discriminating tastes, gleefully eats it.

    The troll, disarmed, cowers in terror, pleading for 
    his life in the guttural tongue of the trolls.
To have killed him in cold blood then would have been cruel, so I tried something else:

    >GIVE TROLL TO TROLL

    The troll, who is not overly proud, graciously accepts the gift 
    and not having the most discriminating tastes, gleefully eats it.
POOF! No more troll!

(I've actually been able to successfully apply this technique of giving HN trolls their own weapons (quoting their own words back to them), then giving them to themselves (pointing them back to their previous posts), to make them disappear from HN!)

https://news.ycombinator.com/threads?id=anticodon

https://news.ycombinator.com/item?id=33070863

But giving the troll to itself triggered another bug, because apparently it forgot to clear the TROLL flag, so you could still not leave the room, because when you tried to go through the exit the troll previously blocked, it said that "The troll fends you off with a menacing gesture." even though there was no troll in the room.

Decades later I finally found the Zork source code, and it turns out there was actually a troll flag called "TROLL-FLAG!-FLAG" that it forgot to clear, which the exit depended on.

I wrote up the bug in more details, with links to the source code:

https://news.ycombinator.com/item?id=19672436

[...MDL Zork source code and analysis at the link...]

https://news.ycombinator.com/item?id=31846457

There are no comments on this comment yet.