Short films between levels

About PR usage and development, and about the POP format.
Post Reply
Dark77
Wise Scribe
Wise Scribe
Posts: 296
Joined: October 26th, 2010, 7:10 pm
Location: Poland

Short films between levels

Post by Dark77 »

Can I change the look of the short films (I don't know how to name it better) between levels somehow? I mean those films where we see the princess waiting for the prince. I would like to put something completely different there.
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Short films between levels

Post by David »

(Sometimes they are called cutscenes.)
The location and format of the animations (sequence table) is known, but (currently) there is no easy way to edit them.
What do you want to put there, by the way?
Dark77
Wise Scribe
Wise Scribe
Posts: 296
Joined: October 26th, 2010, 7:10 pm
Location: Poland

Re: Short films between levels

Post by Dark77 »

(Yeah, better :D)
Oh, ok, so I think I will abandon this idea.
Text, just like during the intro, when we read the story starting like "In the sultan's absence the grand vizier Jaffar...", You know. I would like it to be just a text on a background, no animations.
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Short films between levels

Post by David »

Showing text might be easier than an animation.
Dark77
Wise Scribe
Wise Scribe
Posts: 296
Joined: October 26th, 2010, 7:10 pm
Location: Poland

Re: Short films between levels

Post by Dark77 »

Then could You explain me how to do that? I'm still not sure If I can do that, but let's see. :)
Last edited by Dark77 on August 17th, 2014, 12:02 pm, edited 1 time in total.
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Short films between levels

Post by David »

I didn't try to do it yet, but this is what I thought:
There is a procedure that displays some quotes. (See screenshots.)
It is used only in the demo version, so it could be rewritten to choose a text based on the current level.
Plus change the "show cutscene" call to point here instead.
The texts would be written in the exe in place of those texts. There are 740 bytes available for this purpose.

Update: I attached a modified exe to this post.
Of the 740 bytes, 32 are used for pointers, so there is (740-32)/16 = 44 bytes space for each text.
The texts start at offset 0x1CBFA.
Attachments
PRINCE_with_texts_44.zip
(69.84 KiB) Downloaded 131 times
Dark77
Wise Scribe
Wise Scribe
Posts: 296
Joined: October 26th, 2010, 7:10 pm
Location: Poland

Re: Short films between levels

Post by Dark77 »

Thank You so much. :D
But what if I also want to use CusPop? Is it possible to have an exe modified by CusPop and containing those texts?
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Short films between levels

Post by David »

First make sure that your exe is 1.0 unpacked.
Then you need to copy the modified parts from my exe to yours.
Those parts are:
1. 0x3D58 to 0x3D9B
2. 0x6153 to 0x6171
3. 0x1CBDA to 0x1CEBD
Dark77
Wise Scribe
Wise Scribe
Posts: 296
Joined: October 26th, 2010, 7:10 pm
Location: Poland

Re: Short films between levels

Post by Dark77 »

Thank You very much for all Your help. :)
Dark77
Wise Scribe
Wise Scribe
Posts: 296
Joined: October 26th, 2010, 7:10 pm
Location: Poland

Re: Short films between levels

Post by Dark77 »

I tried to do this again, but it doesn't work anymore. It used to work three years ago, but now when I open the modified exe file, the game will freeze while displaying "Loading...". It happens for both my cuspop-generated exe with modified parts copied from the David's exe and for the David's file itself. Do you have any idea what may be the cause?
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Short films between levels

Post by David »

Dark77 wrote:I tried to do this again, but it doesn't work anymore. It used to work three years ago, but now when I open the modified exe file, the game will freeze while displaying "Loading...". It happens for both my cuspop-generated exe with modified parts copied from the David's exe and for the David's file itself. Do you have any idea what may be the cause?
The original modified exe (from the zip above) works for me.
However, it seems there are some problems when moving between the intro and the game itself: I have to press a key too many times.
Dark77
Wise Scribe
Wise Scribe
Posts: 296
Joined: October 26th, 2010, 7:10 pm
Location: Poland

Re: Short films between levels

Post by Dark77 »

Strange, but now it does work for me again. Dunno what was the cause, but never mind.
I do notice the problems with skipping the intro too, though.
Post Reply