Custom Graphics Issue

Post Reply
User avatar
R3
Vizier
Vizier
Posts: 99
Joined: June 19th, 2015, 8:17 am

Custom Graphics Issue

Post by R3 »

hi, guys!

am currently playing CASTLE OF DREAMS by ROBERT.

changed VPALACE.DAT to the original palette since the blue one used by Robert kinda hurts my eyes (also difficult to detect floor switches).
this is what happened:
Image

also tried changing CPALACE.DAT and EPALACE.DAT, and the problem still exists.

help, please... Image
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Custom Graphics Issue

Post by Norbert »

This is a PNG version of the WebP image that R3 attached to his post.
PrincePalaceGraphicsProblem.png
PrincePalaceGraphicsProblem.png (56.48 KiB) Viewed 1779 times
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Custom Graphics Issue

Post by Norbert »

And to answer the question...
R3 wrote:CASTLE OF DREAMS [...] changed VPALACE.DAT to the original palette [...] problem
The reason is that The Castle of Dreams has a PRINCE.EXE that uses the dungeon wall-drawing algorithm (WDA) in palace levels. This means, as CusPop warns, "[...] you must import the extra resources to your palace environment file with PR". As a side note, this PRINCE.EXE also does not have all resources enabled in all levels. Anyway, I saw that you already finished playing this mod, so problem solved, I guess. ;)
User avatar
R3
Vizier
Vizier
Posts: 99
Joined: June 19th, 2015, 8:17 am

Re: Custom Graphics Issue

Post by R3 »

thanks, Norbert!

but, what if i encounter the problem again?
if i copy PRINCE.EXE from the original version, will this fix the problem?
or, do i need to copy some other files (*DAT, etc.)?
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Custom Graphics Issue

Post by David »

R3 wrote: but, what if i encounter the problem again?
if i copy PRINCE.EXE from the original version, will this fix the problem?
That solves the palace graphics problem.

However, this mod has some other PRINCE.EXE changes as well, and you will lose them if you use the original PRINCE.EXE.
diffpop lists the following:

Code: Select all

[ DIFF ] starting minutes left: 75 (default: 60)
[ DIFF ] hit points: 12 (default: 10)
[ DIFF ] hit points: 12 (default: 10)
[ DIFF ] environment demo level: 1 (default: 0)
[ DIFF ] WDA in palace: 0 (default: 1; readoperation: if(116,1,0);)
[ DIFF ] WDA in palace: 0 (default: 1; readoperation: if(116,1,0);)
[ DIFF ] WDA in palace: 0 (default: 1; readoperation: if(116,1,0);)
[ DIFF ] WDA in palace: 0 (default: 1; readoperation: if(116,1,0);)
[ DIFF ] WDA in palace: 0 (default: 1; readoperation: if(116,1,0);)
[ DIFF ] WDA in palace: 0 (default: 1; readoperation: if(116,1,0);)
[ DIFF ] level 6: 6 (default: 5)
[ DIFF ] level 12a: 200 (default: 4)
[ DIFF ] level 12b: 12 (default: 6)
[ DIFF ] princess level: 5 (default: 0)
[ DIFF ] guard resources level 12a: 2 (default: 4)
[ DIFF ] guard resources princess level: 4 (default: 65535)
[ DIFF ] font color-red: 36 (default: 63; readoperation: multiply(4.0615);floor;)
[ DIFF ] font color-green: 49 (default: 63; readoperation: multiply(4.0615);floor;)
[ DIFF ] Reduce if there are more than: 20 (default: 15)
[ DIFF ] Reduce to minutes: 20 (default: 15)
[ DIFF ] Version text in 1.0: THE CASTLE OF DREAMS  (default: PRINCE OF PERSIA  V1.0)
[ INFO ] Found 21 differences.
You have two choices if you want to keep these:
a) Hex-edit the mod's PRINCE.EXE not to use WDA in palace.
b) Make a new PRINCE.EXE with CusPoP with all these changes except WDA.

(By the way, Norbert, it would be useful if diffpop told me *what* is 200 on level 12a, for example.
I.e. it should either display the name attribute of the containing <folder> and <hack> tags,
or come with a custom princehack.xml that has more informative names in <read> tags.)
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: Custom Graphics Issue

Post by Norbert »

David wrote:it would be useful if diffpop told me [...]
I think maybe what you mean is already available by using command-line option -l (or --locations).
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Custom Graphics Issue

Post by David »

Norbert wrote:I think maybe what you mean is already available by using command-line option -l (or --locations).
Er, yes, you're right.
Looks like I didn't even look at the built-in help...
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Custom Graphics Issue

Post by David »

Moved topic from "General Stuff" to "New Levels and Mods For DOS".
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Custom Graphics Issue

Post by David »

R3 wrote: am currently playing CASTLE OF DREAMS by ROBERT.

changed VPALACE.DAT to the original palette since the blue one used by Robert kinda hurts my eyes (also difficult to detect floor switches).
You could also use the Total Pack.
After you click Play, uncheck "Use Official Graphics", and then you can select what graphics to use for Dungeon, Palace and Characters.

It seems that Total Pack automatically enables or disables WDA in PRINCE.EXE based on which Palace Graphics is selected.
User avatar
R3
Vizier
Vizier
Posts: 99
Joined: June 19th, 2015, 8:17 am

Re: Custom Graphics Issue

Post by R3 »

Thanks, David & Norbert. :)

I guess hacking PRINCE.EXE is still on my to-do list then.
Post Reply