PR 0.9-R2 Usage Frequent Asked Questions

Q: What features has PR got?

A: PR was designed for three basic functions:

Q: What exactly is extracting a DAT file?

A: When you have a file (e.g. vdungeon.dat) and you want the resources that are saved inside to be saved in directories in known formats (e.g. bmp)

Q: What is resources.xml?

A: Is a file that saves easy names and descriptions for the content of the DAT files. When the extracted resources are re-imported the filenames are read from here.

Q: What is to import a directory?

A: When you are reading a resource directory (e.g. a directory with the bmp or wav you need to make the DAT file) to make a DAT file, you are importing this directory. You need to have all resources there, in any other case the DAT file won't work fine in the game.

Q: When you said the third basic function you said "Getting information on DAT files", what does exactly that mean?

A: Getting the DAT file type. e.g. vdungeon is image, digisnd is wave.

Q: I want the program to make backups of the edited files. Is it possible?

A: Yes, run PR with the -b or --backup option and specify an extension (e.g. bak) and all files will be backuped in files with this name. (e.g. compiling a new vdungeon.dat will save the old file as vdungeon.dat.bak)

Q: I don't want the program to ask if I want to replace a file, what can I do?

A: Use the -f or --force option.

Q: I'm a web coder and I want to classify a file that is in the server

A: Run the program in the --cgi mode and capture the output in order to parse it. Take a look at the Princed Uploading System (that is under the GPL) at the Princed home page; this system uses PR to classify uploaded DAT files.

Q: I'm extracting a level set (levels.dat) and I want to set the author of the extracted PLV levels to me

A: Use PR with the -a or --setauthor option and add a name to save in the author field of the PLV information. If you don't do that, the default author name "PR user" will be saved instead.

Q: Can I use another resources.xml file?

A: If there is another newer version of the resources xml file, it is recommended to upgrade PR. But if you want to, you can rename your file to resources.xml or use the -m or --resource directive.

Q: What is the raw option?

A: This is for format developers. But if you are interested, DAT files are archives, like tar and zip files. The files are stored indexed and compressed. The raw option exports or imports the files from the archive without performing any type of conversion or compression/decompression, so the extracted file is in the format the game uses (not compatible in most cases).

Q: The program seems to work, but the result is an 8 bytes-length file.

A: Upgrade PR

Q: The program seems to work, but the result is a file that doesn't work.

A: Try the -v or --verbose option, and check if all files are Ok. The verbose option has lots of extra information.

Q: Is it possible to extract all dat files that are in all subdirectories of the specified directory?

A: Use PR -R or --recursive (take care with the upper case). This will recourse into directories and check out all dat files located in this directory and subdirectories.

Q: What is the --unknown option for?

A: Hey, if you want to be a resources.xml writer, just contact us!

Q: I'm working on a file called dungeonbyjohn.dat, and I don't want to rename it to vdungeon.dat each time I do an extraction. How can I do?

A: Use the -t or --datfile option. That is what it was made for. For example, if you want dungeonbyjohn.dat to be treated like vdungeon.dat, the valid syntax should be:
pr -tvdungeon.dat -xdirectory dungeonbyjohn.dat

(c) 2003 - Copyleft Princed Development Team
           http://www.princed.com.ar

Last update: 2004-02-12 01:06 UTC-3