Return to Zork - Duck!

Channel:
Subscribers:
29,600
Published on ● Video Link: https://www.youtube.com/watch?v=uH7TQnW_5vA



Game:
Duration: 0:54
698 views
6


I wrote a Python script to extract the XMI's from Return to Zork. Hopefully, I'll get the Adlib music recorded at some point. Here's the script:

import struct
import os

theFile = open("RTZ.PRJ", "rb")
prj = theFile.read()
debug = True

def Debug(intxt):
%t print "---Debug: " + str(intxt)

while prj.__contains__("FORM"):
%t fileStartIdx = prj.index("FORM")
%t filename = prj.__getslice__(fileStartIdx-16, fileStartIdx-4)
%t fileEndIdx = prj.index(struct.pack("H", 12287)) + 3
%t tmp = prj.__getslice__(fileStartIdx, fileEndIdx)
%t fileList = os.listdir(".")
%t Debug("Extracting " + filename)

%t if tmp.__len__() > 0:
%t%t outFile = open(filename, "wb")
%t%t outFile.write(tmp)
%t%t outFile.close()
%t prj = prj.__getslice__(fileEndIdx, prj.__len__())


# Replace %t with tabs and > with a greater-than sign.







Tags:
dos
game
adlib
music
Return to Zork
Duck
Canuk
Python



Other Statistics

Return to Zork Statistics For Jiseng So

Jiseng So currently has 698 views spread across 1 video for Return to Zork. His channel published less than an hour of Return to Zork content, making up less than 0.01% of the total overall content on Jiseng So's YouTube channel.