Running Prince of Persia 1 for Mac on GNU/Linux
May 6, 2016
Contents
...
Preamble
This document explains how to run the Mac version of Prince of Persia 1 on GNU/Linux. In the rest of this document, the words "Mac" and "Macintosh" will not be used, because Macintosh is a series of PCs. We will use "System 7", Mac OS 7, which is an operating system used on some of these PCs. To run Prince of Persia 1, we will emulate System 7.
License
Copyright © 2016 Prince of Persia modding community
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no FrontCover Texts, and no BackCover Texts.
What We Will Not Do
We will not use Wine, because we don't need to. We will not work with compressed files, because using StuffIt or BinHex is too much of a hassle. We will not install System 7, because it takes too much time, disk space, and several installation disks or a CD. We will not change the first (main) display to 8-bit (set the Depth in /etc/X11/xorg.conf to 8, then restart X). We will not use startx to create a second display (sudo startx -- :1 -depth 8) and we will not use Xnest to create a nested server (sudo Xnest -depth 8 :1), nor will we start the emulator from the first display (BasiliskII --display :1). We will not manually download a prebuilt binary of the emulator, because it may be too old and cause audio problems (even with pulseaudio-esound-compat or padsp). We will not compile the source code, because this takes too much time.
Prerequisites
First, download and install the following packages and files.
- Basilisk II, the emulator.
Simply run: $ sudo apt-get install basilisk2
https://packages.debian.org/search?keyw ... ection=all
http://packages.ubuntu.com/search?keywo ... ection=all
- A System 7 boot disk.
Use a search engine to search for: "System 7 boot disk"
Sample download locations:
http://www.emaculation.com/System70_boot.zip
https://web.archive.org/web/20000304021 ... 0_boot.zip
- A ROM file.
Use a search engine to search for: PERFORMA.ROM
Sample download locations:
http://www.redundantrobot.com/macemulator/1mbMacrom.zip
https://github.com/macmade/Macintosh-RO ... M?raw=true
- A VNC client and server.
Simply run: $ sudo apt-get install xvnc4viewer vnc4server
This will give you the programs "vncviewer" and "vncserver".
- HFS (Hierarchical File System) files.
Prince of Persia 1:
http://www.popot.org/get_the_games.php?game=1_Mac
Optional:
PoPMap:
http://www.popot.org/level_editors.php?editor=PoPMap
The Persia Cheater:
http://www.popot.org/other_useful_tools.php?tool=TPC
Prince of Persia Editor:
http://www.popot.org/other_useful_tools ... ol=sav_hof
Putting Everything Together
Prince of Persia 1 only runs in black and white, 4 color mode, 16 color mode and 256 color mode. We'll use 256 color mode, which means we need an 8-bit display. However, since the 8-bit display makes it more difficult to tinker with the emulator, we will first set up Basilisk II.
Run: $ BasiliskII
If you ever want to stop it, use the menu option: Special -> Shut Down
On the Volumes tab, use the "Add..." button to add:
- System70_boot.dsk
- pop1_12.hfs
- pop1_22.hfs
Optional:
- PoPE_10.hfs
- PoPMap_10b5.hfs
- TPC_10.hfs
On the Memory/Misc tab, use the "Browse..." button to add:
- PERFORMA.ROM
Next, we use VNC to get an 8-bit display.
Run: $ vncserver :1 -depth 8
If you ever want to stop it, use: $ vncserver -kill :1
Connect to the display.
Run: $ vncviewer :1
Inside the viewer, run BasiliskII, then click the "Start" button.