Some probs using PR

About PR usage and development, and about the POP format.
Post Reply
cp335
Sheikh
Sheikh
Posts: 20
Joined: May 4th, 2011, 9:27 am

Some probs using PR

Post by cp335 »

I have some problems using PR. I followed that tutorial. I have windows 7
This is what i did:

C:\Users\xxx>c:\cp335\rs\pr\pr.exe -x c:\cp335\rs\princ
Princed resources (PR) v1.1 Win32
(c) Copyright 2003 - 2005 Princed Development Team
http://www.princed.com.ar

Exporting 'c:\cp335\rs\prince\VPALACE.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\VIZIER.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\VDUNGEON.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\TITLE.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\SKEL.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\SHADOW.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\PV.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\PRINCE.SAV' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\PRINCE.EXE' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\PRINCE.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\Prince.bat' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\POPCHT.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\MIDISND2.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\MIDISND1.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\LEVELS.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\KID.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\INSTALL.PDM' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\IBM_SND2.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\IBM_SND1.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\GUARD2.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\GUARD1.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\GUARD.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\FAT.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\EPALACE.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\EDUNGEON.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\DIGISND3.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\DIGISND2.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\DIGISND1.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\DESKTOPD.CFG' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\CPALACE.DAT' to '.'
Result: -13 (-13)
Exporting 'c:\cp335\rs\prince\CDUNGEON.DAT' to '.'
Result: -13 (-13)


any suggests?
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5746
Joined: April 9th, 2009, 10:58 pm

Re: Some probs using PR

Post by Norbert »

cp335 wrote:C:\Users\xxx>c:\cp335\rs\pr\pr.exe -x c:\cp335\rs\princ
[...]
Exporting 'c:\cp335\rs\prince\VPALACE.DAT' to '.'
Result: -13 (-13)
[...]
any suggests?
(Your command ends with "princ", but you used "prince", it seems.)
The result -13 (PR_RESULT_ERR_XML_FILE) seems to mean the program cannot open a file.
(Either "if (bin.size<=0)" or "if (!writeOpen(file,&unknownFile.fd,optionflag))" is the case.)

- Is the resources.xml file in the same directory you run PR.EXE from?
- Do you have writing privileges in "C:\Users\xxx"?
cp335
Sheikh
Sheikh
Posts: 20
Joined: May 4th, 2011, 9:27 am

Re: Some probs using PR

Post by cp335 »

Yes im full admin on the computer all privelages.

Img: http://imageshack.us/m/807/5589/naamloosoh.png
cp335
Sheikh
Sheikh
Posts: 20
Joined: May 4th, 2011, 9:27 am

Re: Some probs using PR

Post by cp335 »

ok explain

the map ''rs'' is apoplexy map. Inside there is a map: pr. Inside it: pr.exe and rescoures.xml
this is what i typed: C:\Users\xxx>C:\cp335\rs\pr\pr.exe -x C:\cp335\rs\pri

the map ''prince'' is the game

This is the result

C:\Users\xxx>C:\cp335\rs\pr\pr.exe -x C:\cp335\rs\pri
Princed resources (PR) v1.1 Win32
(c) Copyright 2003 - 2005 Princed Development Team
http://www.princed.com.ar

Exporting 'C:\cp335\rs\prince\VPALACE.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\VIZIER.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\VDUNGEON.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\TITLE.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\SKEL.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\SHADOW.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\PV.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\PRINCE.SAV' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\PRINCE.EXE' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\PRINCE.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\Prince.bat' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\POPCHT.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\MIDISND2.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\MIDISND1.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\LEVELS.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\KID.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\INSTALL.PDM' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\IBM_SND2.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\IBM_SND1.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\GUARD2.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\GUARD1.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\GUARD.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\FAT.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\EPALACE.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\EDUNGEON.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\DIGISND3.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\DIGISND2.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\DIGISND1.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\DESKTOPD.CFG' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\CPALACE.DAT' to '.'
Result: -13 (-13)
Exporting 'C:\cp335\rs\prince\CDUNGEON.DAT' to '.'
Result: -13 (-13)
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5746
Joined: April 9th, 2009, 10:58 pm

Re: Some probs using PR

Post by Norbert »

cp335 wrote:the map ''rs'' is apoplexy map.
Do you just want to use apoplexy or do you want to edit images or other resources?
cp335
Sheikh
Sheikh
Posts: 20
Joined: May 4th, 2011, 9:27 am

Re: Some probs using PR

Post by cp335 »

Both :D
I wanted to edit with apoplexy (wokrs)
and edit the files. I donwlaoded from popot and i used the one in the apoplexy map. But both no succes
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5746
Joined: April 9th, 2009, 10:58 pm

Re: Some probs using PR

Post by Norbert »

cp335 wrote:
Norbert wrote:- Is the resources.xml file in the same directory you run PR.EXE from?
- Do you have writing privileges in "C:\Users\xxx"?
Yes im full admin on the computer all privelages.

Img: http://imageshack.us/m/807/5589/naamloosoh.png
It doesn't work because you have no resources.xml file in "C:\Users\xxx".
The file resources.xml needs to be in the same directory where you run PR.EXE from.
cp335
Sheikh
Sheikh
Posts: 20
Joined: May 4th, 2011, 9:27 am

Re: Some probs using PR

Post by cp335 »

Yes it is:

its in the pr folder. where i run pr from the rescoures.xml is in
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5746
Joined: April 9th, 2009, 10:58 pm

Re: Some probs using PR

Post by Norbert »

cp335 wrote:
Norbert wrote:It doesn't work because you have no resources.xml file in "C:\Users\xxx".
The file resources.xml needs to be in the same directory where you run PR.EXE from.
Yes it is:

its in the pr folder. where i run pr from the rescoures.xml is in
So, you are 100% sure you have the file resources.xml in "C:\Users\xxx"?

Let me also write it in Dutch; you may understand it better:
-----
Het bestand resources.xml moet staan in de directory vanaf waar jij het commando uitvoert.
In jouw voorbeeld dus in "C:\Users\xxx".
Met andere woorden, in "C:\Users\xxx" moet het bestand resources.xml staan.
Dus dit bestand moet bestaan: C:\Users\xxx\resources.xml
-----
cp335
Sheikh
Sheikh
Posts: 20
Joined: May 4th, 2011, 9:27 am

Re: Some probs using PR

Post by cp335 »

Thanks :D

It works now. But waht i have to type to edit the files?

Like: c:\cp335\rs\pr\pr.exe -x c:\cp335\test
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5746
Joined: April 9th, 2009, 10:58 pm

Re: Some probs using PR

Post by Norbert »

cp335 wrote:It works now. But waht i have to type to edit the files?
Well, that depends on what kind of files you would like to edit.

If you want to edit the images, you need a graphics editor.
Freely available is, for example, GIMP (Windows executable).

Important is that you cannot just add new colors to the images.
If you open images in GIMP, you can see what colors are available(*) in the (indexed) image's palette by selecting from the top menu:
Windows -> Dockable Dialogs -> Colormap
(In Dutch: Vensters -> Koppelbare dialoogvensters -> Kleurenkaart)
If you only use these colors, things will probably turn out okay.

(*) It's a little more complicated than that, because PRINCE.EXE uses .pal 'files' that you can alter yourself.
However, the images also have palettes inside them and there's no reason to dive in too deep before you've even tried to alter one or more images.
cp335
Sheikh
Sheikh
Posts: 20
Joined: May 4th, 2011, 9:27 am

Re: Some probs using PR

Post by cp335 »

Thanks.

But now a new prob:

When i type: c:\cp335\rs\pr\pr.exe -x c:\cp335\rs\pr\resc
Im fucked again:

---
C:\Users\xxx>c:\cp335\rs\pr\pr.exe -x c:\cp335\rs\pr\resc
Princed resources (PR) v1.1 Win32
(c) Copyright 2003 - 2005 Princed Development Team
http://www.princed.com.ar

C:\Users\xxx>
---

It just doesnt anything now.


Any help for this?
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5746
Joined: April 9th, 2009, 10:58 pm

Re: Some probs using PR

Post by Norbert »

cp335 wrote:c:\cp335\rs\pr\pr.exe -x c:\cp335\rs\pr\resc
Im fucked again: [...]
Are there any .DAT files in c:\cp335\rs\pr\resc?
Why did you change it from c:\cp335\rs\pr\prince to c:\cp335\rs\pr\resc.
cp335
Sheikh
Sheikh
Posts: 20
Joined: May 4th, 2011, 9:27 am

Re: Some probs using PR

Post by cp335 »

Nevermind ill have the .bmp s now

ty
jack9091
Scholar Scribe
Scholar Scribe
Posts: 1
Joined: November 29th, 2012, 8:31 am

Re: Some probs using PR

Post by jack9091 »

Thanks for share this useful information for us .......
testking braindumps and questions testking braindumps and questions
642-983 practice test 642-983 practice test
650-378 practice test 650-378 practice test
HP0-J49 practice test HP0-J49 practice test
650-293 practice test 650-293 practice test
Post Reply