Click here to Skip to main content
15,887,302 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: If you can know your future, would you want to know it? Pin
David Crow14-Nov-20 9:35
David Crow14-Nov-20 9:35 
GeneralRe: If you can know your future, would you want to know it? Pin
dandy7215-Nov-20 4:33
dandy7215-Nov-20 4:33 
GeneralRe: If you can know your future, would you want to know it? Pin
OriginalGriff15-Nov-20 5:06
mveOriginalGriff15-Nov-20 5:06 
GeneralRe: If you can know your future, would you want to know it? Pin
dandy7217-Nov-20 16:07
dandy7217-Nov-20 16:07 
GeneralRe: If you can know your future, would you want to know it? Pin
Member 931145516-Nov-20 10:29
Member 931145516-Nov-20 10:29 
GeneralRe: If you can know your future, would you want to know it? Pin
SeattleC++16-Nov-20 11:29
SeattleC++16-Nov-20 11:29 
GeneralRe: If you can know your future, would you want to know it? Pin
sasadler16-Nov-20 11:49
sasadler16-Nov-20 11:49 
GeneralMore Infocom Favorites Via Go-Lang Pin
raddevus13-Nov-20 11:52
mvaraddevus13-Nov-20 11:52 
You know that feeling when you get something working and it was like magic?
It's like being a kid again. Smile | :)

I was looking around for a way to play those old Infocom games. (Sure I had Zork1, but I need them all!!!) Laugh | :laugh:
They're all available at: historicalsource (Historical Source) · GitHub[^]

Z-Machine[^]
But I don't have a Z-Machine -- the old virtual machine that lets you run those.
Well, I searched GitHub to see if someone built one.

I found one written in Go-Lang[^] (github again).

I've never used Go at all. But I was game so I installed it:
sudo apt install golang-go


I ran it but it was expecting zork1.dat file and it failed.

I opened up the source and searched for zork1.dat found this line in the Go source.
func main() {
	buffer, err := ioutil.ReadFile("zork1.dat")


I went back to the Historical Infocom Github, found Deadline[^] project and didn't know what was a which. But then I decided to download the raw deadline.z3[^] file from the repo.

1) I dropped it into the folder where the ZMachine is located
2) Changed the line of code to ref the deadline.z3 file:
buffer, err := ioutil.ReadFile("deadline.z3")

3) went back to the command line and started the zmachine:
$ go run zmachine.go


Here's what I saw!!!!

DEADLINE: An INTERLOGIC Mystery
Copyright 1982 by Infocom, Inc. All rights reserved.
DEADLINE and INTERLOGIC are trademarks of Infocom, Inc.
Release 27 / Serial number 831005

South Lawn
You are on a wide lawn just north of the entrance to the Robner estate. Directly north at the end of a pebbled path is the Robner house, flanked to the northeast and northwest by a vast expanse of well-kept lawn. Beyond the house can be seen the lakefront.

>


I've wanted to play Suspended [^] again since I bought it for my Commodore 128 back in 1987. Now I can.


Update
It's like it's 1987 all over again. The good old days.
Suspended is running.

SUSPENDED: INTERLOGIC Science Fiction
Copyright (c) 1983 by Infocom, Inc. All rights reserved.
SUSPENDED and INTERLOGIC are trademarks of Infocom, Inc.
Release 8 / Serial number 830521

FC ALERT! Planetside systems are deteriorating. FC imbalance detected. Emergency reviving systems completed. You are now in control of the complex.

SENSA INTERRUPT: Seismic aftershock detected ten meters north of Beta FC. Tremor intensity 9.7. Projected damage: connecting cables in Primary and Secondary Channels.

FC INTERRUPT: All Robots, report locations.

IRIS: In the Weather Monitors.
WALDO: In the Gamma Repair.
SENSA: In the Central Chamber.
AUDA: In the Entry Area.
POET: In the Central Chamber.
WHIZ: In the Advisory Peripheral.

GeneralRe: More Infocom Favorites Via Go-Lang Pin
Sean Cundiff13-Nov-20 11:58
Sean Cundiff13-Nov-20 11:58 
GeneralRe: More Infocom Favorites Via Go-Lang Pin
Richard Andrew x6413-Nov-20 12:38
professionalRichard Andrew x6413-Nov-20 12:38 
GeneralRe: More Infocom Favorites Via Go-Lang Pin
Sean Cundiff13-Nov-20 13:00
Sean Cundiff13-Nov-20 13:00 
GeneralRe: More Infocom Favorites Via Go-Lang Pin
raddevus13-Nov-20 13:09
mvaraddevus13-Nov-20 13:09 
GeneralRe: More Infocom Favorites Via Go-Lang Pin
Sean Cundiff26-Dec-20 7:45
Sean Cundiff26-Dec-20 7:45 
GeneralRe: More Infocom Favorites Via Go-Lang Pin
raddevus26-Dec-20 9:17
mvaraddevus26-Dec-20 9:17 
GeneralRe: More Infocom Favorites Via Go-Lang Pin
raddevus26-Dec-20 9:45
mvaraddevus26-Dec-20 9:45 
GeneralRe: More Infocom Favorites Via Go-Lang Pin
Sean Cundiff26-Dec-20 13:32
Sean Cundiff26-Dec-20 13:32 
GeneralRe: More Infocom Favorites Via Go-Lang Pin
honey the codewitch13-Nov-20 15:06
mvahoney the codewitch13-Nov-20 15:06 
GeneralRe: More Infocom Favorites Via Go-Lang Pin
markrlondon13-Nov-20 15:53
markrlondon13-Nov-20 15:53 
QuestionFashionable London Office Space for Rent Pin
megaadam13-Nov-20 11:24
professionalmegaadam13-Nov-20 11:24 
AnswerRe: Fashionable London Office Space for Rent Pin
Richard Andrew x6413-Nov-20 12:34
professionalRichard Andrew x6413-Nov-20 12:34 
GeneralRe: Fashionable London Office Space for Rent Pin
megaadam13-Nov-20 13:01
professionalmegaadam13-Nov-20 13:01 
GeneralRe: Fashionable London Office Space for Rent Pin
Richard Andrew x6413-Nov-20 13:09
professionalRichard Andrew x6413-Nov-20 13:09 
GeneralRe: Fashionable London Office Space for Rent Pin
markrlondon13-Nov-20 15:55
markrlondon13-Nov-20 15:55 
GeneralRe: Fashionable London Office Space for Rent Pin
Richard MacCutchan13-Nov-20 22:14
mveRichard MacCutchan13-Nov-20 22:14 
GeneralRe: Fashionable London Office Space for Rent Pin
Jörgen Andersson15-Nov-20 10:13
professionalJörgen Andersson15-Nov-20 10:13 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.