Prince of PersiaTools
Prince of Persia Modding Tools and DAT File Utilities Explained
A small set of fan-made programs covers most of what players want to change in the classic games. Here is what each one does and where its project lives.
Resource editing with PR
PR is the Princed Resource editor, a fan-made tool for the DAT containers of the DOS games. It exports images, palettes, sounds and music as BMP, PAL, WAV and MIDI files and imports edited files back. An older graphical front end called PRM wraps it for users who avoid the command line. Releases and documentation are on popot.org, and the format side is explained on the DAT files page.
Level editing with Apoplexy
Apoplexy is a free, open-source level editor for Prince of Persia, with support for the sequel as well. It runs on Windows and Linux. Level sets made with it can be played in SDLPoP, whose readme lists the editor and the SDLPoP-specific tiles it handles.
Running and testing with SDLPoP
SDLPoP is the open-source reimplementation of the first game’s DOS version, licensed under the GPL. Besides playing, it is the usual testbed for changes, since it loads mods from a folder. The project lives on GitHub, and the play page covers how it fits with the other ways to run the game.
Inspecting an unknown file
The DAT file opener runs in the browser and shows what an unknown .dat file starts with. It identifies; it does not edit.
Before changing anything, read about the game that the tools target on the 1989 game page.
Which tool for which job
Changing how the game looks or sounds is a job for the PR resource editor: export the images or sounds, edit them in ordinary software, and import them back. Changing what the levels contain is the job of the Apoplexy level editor. Seeing the result is the job of SDLPoP, which reads the modified files and runs the game on a current computer without an emulator. Anyone who only wants to know what a file is should start with the browser opener and read no further.
A safe working routine
Modding works best as a loop of small steps. Copy the game folder before touching anything, change one thing, start the game from the copy and look. When a change breaks the game, the copy shows which step did it, and the untouched original stays available for the next attempt. The same habit applies to every tool on this page: they edit a file in place, so a backup is the only undo.
The tools also depend on each other. A level set built in the editor is only worth the effort once it runs in the port, and a graphics pack exported with the resource editor is only worth sharing once someone has seen it in the game. Treat the three programs as one workflow, and use the questions page when a step goes wrong.
- 01Open DAT File Online: Free In-Browser DAT File Viewer
Identify a .dat file in the browser: hex dump, signature check and the program to open it with.
- 02PR Resource Editor: Edit Prince of Persia DAT Files
The fan-made tool that exports DAT resources as BMP, PAL, WAV and MIDI and imports them back.
- 03Apoplexy Level Editor for Prince of Persia 1 and 2
The free, open-source editor for Prince of Persia 1 and 2 levels, and how its output gets tested.
- 04SDLPoP: Open-Source Prince of Persia Port for PC
The GPL port of the DOS game: platforms, quicksave, replays, mods and the project page.
- 05MININIM: Free Prince of Persia Engine and Its Features
The GPL engine written from scratch for the first game: features, level formats and the project page.
Frequently asked questions
Which tool changes the graphics and sounds?
PR, the Princed Resource editor. It exports the entries of a DAT file as BMP, PAL, WAV and MIDI files and imports edited versions back. The latest version listed on the popot.org tools page at the time of writing is 1.3.1.
Which tool edits levels?
Apoplexy is a free, open-source level editor for the first game and also supports the sequel. Its releases have added tile types over time, and SDLPoP's readme names it as the editor that supports the port's extra tiles.
Do these tools include the game itself?
No. They edit or run files from a copy of the game that the user already has. None of them is a source for the game's data, and this site does not link to game files.
Is there a tool that only identifies a file?
Yes. The DAT file opener on this site reads a chosen file in the browser, shows its first bytes and names the likely format. It identifies and does not convert or extract.