Live data from Hacker News

Source code for Zork, Hitchhiker’s Guide, and other Infocom games

github.com

31–40 of 241 posts

Re: Source code for Zork, Hitchhiker’s Guide, and other Infocom games

#31
post #22

Found some funny scripts used for the unreleased game "The restaurant": https://github.com/historicalsource/restaurant/blob/master/t...

Note that this is probably based on the the sequel[1] to H2G2 given that H2G2 was completed as game.

[1] https://en.wikipedia.org/wiki/The_Restaurant_at_the_End_of_t...

Re: Source code for Zork, Hitchhiker’s Guide, and other Infocom games

#32
post #24

> In general, Infocom games were created by taking previous Infocom source code, copying the directory, and making changes until the game worked the way the current Implementor needed. Structure, therefore, tended to follow from game to game and may or may not accurately reflect the actual function of the code. Some things never change... EDIT: this is how I do most of my personal projects!

Well, they worked for them, so why should they?

I think the parent means that is still how we do software, eg. coyping resembling code and modifying it until it does what we want.

Re: Source code for Zork, Hitchhiker’s Guide, and other Infocom games

#33
post #15

This is the correct link, not the one on the HN post: https://github.com/historicalsource?tab=repositories As a zipfile because someone is bound to get that repo taken down. https://drive.google.com/file/d/1S1CgtZNEKS8VITqTAWAkeyO0LBf...

It looks like they might have added some things since you made your archive. The zip you posted is missing the following repos: stationfall suspect suspended trinity wishbringer witness zork-german zork zork1 zork2 zork3

They are in the zip but GDrive cuts the listing of folders with "...".

Re: Source code for Zork, Hitchhiker’s Guide, and other Infocom games

#34

This is the correct link, not the one on the HN post: https://github.com/historicalsource?tab=repositories As a zipfile because someone is bound to get that repo taken down. https://drive.google.com/file/d/1S1CgtZNEKS8VITqTAWAkeyO0LBf...

Yes as submitted here an hour before :) https://news.ycombinator.com/item?id=19671865

Re: Source code for Zork, Hitchhiker’s Guide, and other Infocom games

#35

> In general, Infocom games were created by taking previous Infocom source code, copying the directory, and making changes until the game worked the way the current Implementor needed. Structure, therefore, tended to follow from game to game and may or may not accurately reflect the actual function of the code. Some things never change... EDIT: this is how I do most of my personal projects!

I think this has to do with the authors being more literary than tech savvy.

Infocom was famously tech savvy though. The founders came from MIT's Laboratory for Computer Science (LCS) where they developed the first Zork adventure.

Re: Source code for Zork, Hitchhiker’s Guide, and other Infocom games

#36
post #30

Earlier quoted context omitted.

The box art calls it Interactive Fiction: https://upload.wikimedia.org/wikipedia/en/a/ac/Zork_I_box_ar... EDIT: Some more info on the origins; apparently it was first used by an early creator of such games (Robert Lafore), and then picked up by Infocom: https://www.filfre.net/2011/09/robert-lafores-interactive-fi...

that would be the right term. you can see the evolution in cga vga games like quest for glory 1 or kings guest 1 or even space quest 1 you still had the console style input but was replaced with the menu bars that most remember from adventure games.

Even games like Maniac Mansion or Monkey Island where the ability to input text commands was gone retained a pseudo-commandline above the lower part of the screen with the verbs and inventory.

Re: Source code for Zork, Hitchhiker’s Guide, and other Infocom games

#37
Hitchhikers Guide was one of the first PC games I ever got. I had no idea it was a “text adventure.” Nor did I understand it was based on a book.

My dad got it for me used from The Computer Club in downtown Lake Oswego, Oregon. I picked it out largely due to the green guy on the front of the box.

I remember being delighted by all the weird stuff it came with, including a small packet of fuzz, and other artifacts from the story. I didn’t know why they were in the box but it was weird and that appealed to me.

Even though I was raised by Nintendo games like RC Pro AM, I spent many hours trying to figure out how to advance in HG. Often starting over from scratch.

Eventually, I got the book, read it and attempted the game again, and though the context made it more fun, I think I still got stuck somewhere around where you put the Babel fish in your ear.

Re: Source code for Zork, Hitchhiker’s Guide, and other Infocom games

#38
post #32
post #24

Earlier quoted context omitted.

Well, they worked for them, so why should they?

I think the parent means that is still how we do software, eg. coyping resembling code and modifying it until it does what we want.

And I mean "If it works for modern devs too, so?"

Re: Source code for Zork, Hitchhiker’s Guide, and other Infocom games

#39
post #12
post #7

Earlier quoted context omitted.

There are plenty: https://en.wikipedia.org/wiki/Z-machine

Z-Machines aren't compilers, they're virtual machines that can execute the compiled output. There's no (known) compiler that still exists that can compile ZIL into Z-code. edit: except for zilf, as mentioned, but it's not functional for even zork 1.

judging from the blog comment it seems that it's functional

Re: Source code for Zork, Hitchhiker’s Guide, and other Infocom games

#40
post #9

There is no existing compiler for all this programming language any more. Maybe someone will give it a try and create an interpreter.

A commenter on Zarf's blog ( https://blog.zarfhome.com/2019/04/all-of-infocoms-game-sourc... ) reports that ZILF is capable of at least building the Zork source to something that will start up, though given the warnings produced during compilation it's not going to work perfectly...

Looking at the code, it seems doable to make sense of it, one instruction at a time. For example this:

    "Would you like to restart the game from the beginning, restore a saved
    game position, or end this session of the game?|
    (Type RESTART, RESTORE, or QUIT):|
    >">
             
             >
             
                
                )
                   (
                
                       )
                      (T
                       )>)
                   (
    )>>>
- Read user input, and put result in WRD

- Switch statement on WRD

- Case RESTART: Write Failed and restart

- Case RESTORE: Write Ok and continue

- Case QUIT: Write Failed and exit

Post reply on HN