Thursday, April 12, 2012

Getting Pegasus to Run in ScummVM

The Journeyman Project: Pegasus Prime is very much a Mac game. And by that, I mean it uses the gamut of Mac resources it has available to it. Thus, it can be very hard to extract the data on a non-Mac system. This post is an attempt to document some sane way for everyone to play the game in ScummVM. I'll also update this as people give me more info since some information is not provided by myself. Much thanks to eriktorbjorn for his file list and his Linux extraction script. This is all assuming you can compile the source code at the "pegasus" branch of my github fork already.

Extracting the Full Game Data
Since this is different on different platforms, I shall cover the big three here.

For Windows you need to use either the HFVExplorer or HFSExplorer tools.

If you're using HFVExplorer, you'll want to dump the files according to this document. If you see "M" on a line, make HFVExplorer extract as MacBinary and as a "raw copy, data fork" for ones beginning with "R". Note that you'll have to rename any file or directory with "/" in the name to have an underscore ("_") in its place.

For HFSExplorer, you can pretty much use the same instructions as HFVExplorer, except that you want to extract AppleDouble instead of MacBinary.

Mac OS X
Extracting the data on a Mac is actually the easiest because a) you can use HFS drives directly and b) you can then run the game directly without changing any file names.

First thing you'll need to do is to enable hidden folders. Then merge the PP Data folders from all four discs into one folder on your hard drive. Any files with the same name are identical. That's it, you're done. You can also use the "macbinary" command line tool to make MacBinary versions of the files.

You'll need to have hfsutils installed on Linux. Then you should run this script provided by eriktorbjorn with this file list (pasted into a file called "filelist.txt"). It should be pretty self-explanatory to run beyond that, I hope.

Extracting the Demo Data
Since StuffIt is a completely awful tool that won't let you extract any of the resource fork data on a non-Mac system, you will have to wait until I upload a version of the demo that can be played with ScummVM directly. Mac users can use it pretty much right away. I will update this space as soon as possible with more details. Sit tight!


Eugene Sandulenko said...

Why don't you have everything dumped as MacBinary, and then use MacResManager to get to the data fork?

Should be easier to the end users.

Durandall said...

Amazing work. It will be so nice when I can play this without battling with SheepShaver and switching disks.

adambot said...

Any updates with this? I have the old discs and i copied over all the PP Data Files and was able to get the pegasus branch to compile, however i keep getting the error that no game is found that can be loaded

Jorpho said...

Actually, there's a lovely open-source utility called The Unarchiver that comes in a command-line Windows version and will easily allow extraction of resource fork data from Stuffit archives (or anything else). You should check it out.

clone2727 said...

@adambot: Follow the directions on how to dump the data.

@Jorpho: I do know that program and I use it regularly on Mac OS X, but didn't know about a Windows version. I'm still not sure how it outputs resource fork data on Windows though.