Slashdot is powered by your submissions, so send in your scoop

 



Forgot your password?
typodupeerror
×
Programming Games Entertainment

The Source Code For All Infocom Text Adventure Classics Has Been Released (arstechnica.com) 106

You can now download the source code of every Infocom text adventure game, thanks to archivist Jason Scott who uploaded the code to GitHub. "There are numerous repositories under the name historicalsource, each for a different game," reports Ars Technica. "Titles include, but are not limited to, The Hitchhiker's Guide to the Galaxy, Planetfall, Shogun, and several Zork games -- plus some more unusual inclusions like an incomplete version of Hitchhiker's sequel The Restaurant at the End of the Universe, Infocom samplers, and an unreleased adaptation of James Cameron's The Abyss." From the report: The code was uploaded by Jason Scott, an archivist who is the proprietor of textfiles.com. His website describes itself as "a glimpse into the history of writers and artists bound by the 128 characters that the American Standard Code for Information Interchange (ASCII) allowed them" -- in particular those of the 1980s. He announced the GitHub uploads on Twitter earlier this week. The games were written in the LISP-esque "Zork Implementation Language," or ZIL, which you could be forgiven for not being intimately familiar with already. Fortunately, Scott also tweeted a link to a helpful manual for the language on archive.org. Gamasutra, which first reported the news, notes that Activision still owns the rights to Infocom games and could request a takedown if it wanted.
This discussion has been archived. No new comments can be posted.

The Source Code For All Infocom Text Adventure Classics Has Been Released

Comments Filter:
  • by jfdavis668 ( 1414919 ) on Thursday April 18, 2019 @07:39PM (#58457248)
    You are likely to be eaten by a grue.
  • by willoughby ( 1367773 ) on Thursday April 18, 2019 @08:04PM (#58457350)

    I'm old enough to remember when computers used to amaze you. These games were one way that would happen.

    Now... how am I to play The Hitchhiker's Guide to the Galaxy without the scratch 'n' sniff card?

    • by willoughby ( 1367773 ) on Thursday April 18, 2019 @09:21PM (#58457618)

      I think I got that wrong. The scratch 'n' sniff card was, I think, in "The Leather Goddesses of Phobos". But anyway...

    • I believe Hitchhiker's Guide game had the Peril-Sensitive Sunglasses as the feelie.

      I tried wearing those while driving once. It didn't end well.

      • by pezpunk ( 205653 )

        From memory ... it came with the peril-sensitive sunglasses (made of construction paper), no tea, a baggie containing a "microscopic space fleet", pocket fluff, and a red button that said "don't panic!" in yellow letters.

    • I had the "Don't Panic" button. This brings back some memories.

      I browsed the source for H2G2 and it's remarkably simple [github.com]. I don't think it'd take all that much effort to just interpret and run this on a modern computer, without bothering to compile it for a Z-machine, even a microcontroller with an SD card.

      I loved this game as a kid. Thanks for this Slashdot.

    • HGGTTG didn't come with a scratch and sniff card, but I still have my "Don't Panic" pin.
  • ASCII (Score:5, Insightful)

    by swell ( 195815 ) <jabberwock@poetic.com> on Thursday April 18, 2019 @08:14PM (#58457396)

    I spent an hour today trying to find a Lynx browser for my Mac. Those days of simple text based communication seem to be gone. Even MS Word stubbornly refuses to gracefully accept ASCII files. I'm so sick of the sterile Hell-vetica, of pseudo humble Hobo, of all the cute fonts and emoticons. A web site that isn't covered with crap and banners and slideshows and pop-ups just isn't 'hip' these days, and it infuriates me.

    Shakespere & Hemingway did OK with ASCII. It is still possible for educated people to express themselves fully, even extravagantly with ASCII. It is a sign of moral decay that people seek nonsensical additions to the language to make simple statements. And don't get me started on the mental cripples who have to resort to WTF and other vulgar excuses for illiteracy. If there is a heaven, the path to it will be marked in ASCII, I hope you can still read it.

    • by Anonymous Coward

      But lynx is alive and well, complete with gopher support and compatibility for a lot of terminals. I use it pretty regularly for file server listings that grind firefox to a halt.

      The software ecosystem is both larger and smaller than it was in the past. A lot of it is at the mercy of new programmers interested in old code or subjects, while the corporate types break popular and existing long term software promising better maintainability, but really just keeping everything a full funded support nightmare fo

    • by Anonymous Coward

      It's simple to install lynx on a Mac. Just install MacPorts [macports.org] and then do sudo port install lynx. For that matter, MacPorts also has elinks, links (which is version 2 of links), and links1. It's not hard at all to get lynx or a similar browser on a Mac.

    • lynx is still alive - but there are other alternatives like "links", "elinks" and a few others.

      I actually still use text-based browsers quite a bit... they're handy when ssh'd into supercomputers and you need to read some documentation real quick...

    • by Anonymous Coward

      Don't be such an EBCDIC.

    • Shakespere & Hemingway did OK with ASCII. It is still possible for educated people to express themselves fully, even extravagantly with ASCII. It is a sign of moral decay that people seek nonsensical additions to the language to make simple statements.

      Shakespeare was both actor and dramatist. Implying that he understood that dialog ---- the scriot ---- was one element of a successful performance, but not the whole. The geek and the nerd, of course, began playing with ASCII art and typographic expression as soon as affordable dot-matrix printers became available. Their predecessors did the same with wood blocks and cast metal.

  • > ADVENT

    on the RSTS/E PDP-11, and then I discovered

    > TELNET MIT-DM

    to get to ITS to play Dungeon^E

    At some point circa 1981 they moved the Bank, probably in preparation for the microcomputer version. Somewhere I still have my maps on greenbar paper... and one Zorkmid... somewhere...

    • by Darinbob ( 1142669 ) on Thursday April 18, 2019 @10:02PM (#58457708)

      I've got the original source code for Zork, which was briefly named Dungeon before being named back again. And I don't mean the Fortran version, but the original MDL code (aka, Muddle) which is a much weirder variant of Lisp than ZIL. It has a Y2K problem in it, and also implemented a primitive type of object-oriented style. There was even a sort of RPG with statistics behind the scenes that wasn't obvious when playing (ie, your fight with the Thief in the Maze got easier if your game score was higher). The game was also constantly evolving and multiple people got involved adding new tweaks and puzzles over time.

      The Fortran version was called Dungeon because it was ported during the brief period that the game was called Dungeon. Seeing the original Muddle code and comparing to Fortran makes me very impressed with how the porting was done as it tried to be faithful in a language vastly different from Lisp. Some of the most twised maze of computed gotos going nowhere that you will ever see.

      • When you say the 'original' source code you mean not a copy? That's impressive. How did you get that?

        • Yes, it's a copy, not a 9-track tape reel :-) By original I mean not a port or reimplementation like ZIL.

      • It would be great if the guy who published these got a copy of the MDL version.

        Really great.

        I noticed in this release:

        <PRINC "Renovated ZORK I: The Great Underground Empire
        ">

        Presumably the 1983 renovation was a good code cleanup but for historical reasons it's better for technoarcheologists to see the original.

        "THIS BELONGS IN A MUSEUM!"

        • When I got a copy I was told that I should not share it, but a few years later I stumbled across them on the internet.
          The machine it was for was DEC-10 with a 36-bit word. It used 18-bit string pointers, and for strings it packed multiple characters into each word (5 or 6 bit?).
          MDL was interesting in its own way - it was a LISP variant but also had support for low level operations, even allowing embedded assembly.

        • by Mr2001 ( 90979 )

          The MDL version is included in the same source dump: https://github.com/historicals... [github.com]

      • Some of the most twised maze of computed gotos going nowhere that you will ever see.

        You're in a maze of twisty little gotos all alike.

      • by Mr2001 ( 90979 )

        And I don't mean the Fortran version, but the original MDL code (aka, Muddle) which is a much weirder variant of Lisp than ZIL.

        ZIL is basically a subset of MDL, so most of the weirdness you've seen in MDL is also there in ZIL. Check out the "maze" files in Bureaucracy, for example - the game reads a text file at compile time and generates pages of gibberish that have to be combined in the right order to solve a puzzle.

  • Wonder (Score:5, Funny)

    by nehumanuscrede ( 624750 ) on Thursday April 18, 2019 @10:27PM (#58457768)

    I wonder how many folks on here are old enough to have played any of the games mentioned in the article.

    I think a text only game in 2019 would cause a rift to open in the space-time continuum, though it would be interesting to see something like Skyrim or Fallout done in the style of Zork or Adventure.

    . . . .

    > Look

    You are standing in what appears to be an ancient monastery. Numerous torches and braziers are providing what little light there is.
    An old man dressed in grey robes stands nearby quietly watching you. Low chanting can be heard in the background.

    > Look at old man

    Based on the wrinkles and the long white beard, he is definitely an old man. Other than watching you, he is doing little else at the moment.

    > Draw Ebony Blade

    The old mans eyes glitter a bit as he notices your knife but does not move. He does, however, speak a word: " FUS " and an invisible force
    pushes you back slightly and you nearly drop the knife. As the sound of his voice echoes within the chamber, the chanting in the background
    has now grown silent.

    > Throw Ebony Blade at old man

    The old man is fast despite his advanced age and he quickly sidesteps your throw. The knife strikes the stone wall behind him and clatters to the floor.
    He simply sighs and shakes his head. As he speaks a second time, you manage to make out the words " FUS RO " before slamming into the wall
    behind you. As the room spins about, you begin to question the wisdom of attacking old men in creepy, dimly lit monasteries.

    > Kill old man

    You can't be serious. He just spoke a couple of words and slammed you into the wall. WITH HIS VOICE. Remember those bandits who watched you
    take down that dragon earlier, then decided it would be a good idea to attack you ? Yeah, you're the bandits right now.

    > Kill Old Man

    Dude. After what this man just did, Alduin himself might even take a moment and think about the course of action you're about to commit to.

    > KILL OLD MAN

    Ok. It's your funeral.

    You manage some sort of war cry as you lunge towards the old man with murder in mind. The last words you hear, before becoming one with the stone
    wall, are: " FUS RO DA ! "

    You are dead . . . . . . .

    Restart ?

    • Re:Wonder (Score:5, Informative)

      by 110010001000 ( 697113 ) on Thursday April 18, 2019 @10:42PM (#58457806) Homepage Journal

      Someone already did a text based Skyrim. https://medium.com/@filiph/sky... [medium.com]

    • Re:Wonder (Score:4, Interesting)

      by microbox ( 704317 ) on Thursday April 18, 2019 @10:44PM (#58457812)
      There's a small vibrant community producing high quality text adventures that you can play on your phone. There's an interesting body of theory on how to do it. There's interesting specialize computer programming languages and libraries that are still under development. Some of this technology has leaked into mainstream games -- in particular, how to manage non-linear plots, and write conversations.
    • I wonder how many folks on here are old enough to have played any of the games mentioned in the article.

      I think a text only game in 2019 would cause a rift to open in the space-time continuum, though it would be interesting to see something like Skyrim or Fallout done in the style of Zork or Adventure.

      I just published one for the Google Hone Hub not even two weeks ago. It even uses the Z-Machine. OK, I started writing it like over 25 years ago, it was half finished on a C64, finished it while porting it to Z-Machine (but using the Inform language, I'm none of the greybeards that learned LISP or anything similar) not available in english unfortunately as programming was pretty language specific.

    • Yup, I'm old enough to have played several Infocom games when they first came out, and most of the others when I got my hands on Lost Treasures of Infocom.

      Your thoughts on using standard text adventure syntax in modern applications reminds me of the year Infocom decided to get into the DBMS biz with their own natural language database parser, Cornerstone. I thought at the time what great fun it would be to have a Zork-like database interface.

      You are standing in the foyer of a large office. There are doors a

    • I played few of these games. Once I "lost" because I shot one of the protagonists out of frustration. I also couldn't bring myself to lie down in front of a bulldozer. But, I had a disassembler called Sourcer that I used on Hitchiker and discovered the game table and code to process it. As a bonafide reverse engineer I found that more fun than acutally playing the game. I still have Sourcer but disassembling a Windows exe will probably require another 13.7 billion years.
  • One thing I learned was no one liked to comment code back then either!

  • Not seeing leather goddesses of phobos... "You have a length of rubber tubing, some lubricant, and a yak"
  • I had hardcopy of the FORTRAN source for ADVENT. 14x11 fanfold.

  • How great it is to play the Hitchhikers guide again (it took about 20 minutes to find everything needed to play on a windows machine. I am guessing it would be similar for a Linux server). Finally news for nerds again :)
  • by Anonymous Coward

    Is it to make sure fewer people will be bothered to clone?

  • by Miamicanes ( 730264 ) on Friday April 19, 2019 @06:10AM (#58458616)

    Infocom had a hilarious ad that read, "We stick our graphics where the sun don't shine" (with picture of a brain):

    https://mobile.twitter.com/vin... [twitter.com]

  • by sad_ ( 7868 ) on Friday April 19, 2019 @06:59AM (#58458702) Homepage

    Not only that, but he did a follow up with the release of the scripts files for Leisure Suit Larry!

    https://github.com/historicals... [github.com]

  • I got stuck near the end of Zork for a while, so I started un-assembling the program (it was only a .com file) to find out how they packed all the text strings, since they weren't visible when you just did a hex dump. I figured out their method, wrote a C program to dump every sentence that the game uses, and thus was able to cheat my way to the finish.
    • Reminds me of the time I spent a week decoding a simple substitution cipher in a random encounter... can't remember if it was the original ADVENT (this was in college in the early 80s) or in Zork... where you kill a dwarf. Nearly every time he simply "vanishes in a puff of greasy black smoke", but just once he babbled out a long sentence before dying.

      Now, I'm not real good at cryptograms. Like I said, it took me about a week doing it by hand, starting with the one-letter words that I knew had to b

    • by Megane ( 129182 )

      I also did a lot of disassembling of the Infocom stuff. I actually had to do disassembly to figure out a puzzle in Zork II. I ended up writing an interpreter (a few months before they officially released for that type of computer), and a few years ago even put a "ZSCII" directive into an assembler so I could use the compressed text format in retro 8-bit games. (I only got to use it in something that was unreleased but was already running out of address space as demo code).

      I had a disk of the original self-

  • ....notes that Activision still owns the rights to Infocom games and could request a takedown if it wanted.

    .
    I kinda think that ship has now officially sailed.

    A git clone of the entire Infocom portion of the HistoricalSource repository (about 45 projects, including all the Infocom "Solid Gold" versions and unreleased games like Abyss), tar'ed and bzipped up, turns out to be...a single 55MB file. As such, it could be uploaded to Pastebin by, I dunno, someone....in about 10 seconds. And then shared, and r

  • Don't forget the Interactive Fiction Archive [ifarchive.org] and their annual IF Competition [ifcomp.org].

"Experience has proved that some people indeed know everything." -- Russell Baker

Working...