Short films between levels

About PR usage and development, and about the POP format.

Moderator: English Moderator Team

Dark77
Wise Scribe
Wise Scribe
Posts: 293
Joined: October 26th, 2010, 7:10 pm
Location: Poland

Short films between levels

Postby Dark77 » August 15th, 2014, 12:00 am

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: 1362
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Short films between levels

Postby David » August 15th, 2014, 11:21 am

(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: 293
Joined: October 26th, 2010, 7:10 pm
Location: Poland

Re: Short films between levels

Postby Dark77 » August 15th, 2014, 12:51 pm

(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: 1362
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Short films between levels

Postby David » August 16th, 2014, 10:56 am

Showing text might be easier than an animation.

Dark77
Wise Scribe
Wise Scribe
Posts: 293
Joined: October 26th, 2010, 7:10 pm
Location: Poland

Re: Short films between levels

Postby Dark77 » August 16th, 2014, 1:04 pm

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: 1362
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Short films between levels

Postby David » August 16th, 2014, 6:47 pm

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 19 times

Dark77
Wise Scribe
Wise Scribe
Posts: 293
Joined: October 26th, 2010, 7:10 pm
Location: Poland

Re: Short films between levels

Postby Dark77 » August 16th, 2014, 9:33 pm

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: 1362
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Short films between levels

Postby David » August 17th, 2014, 9:02 am

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: 293
Joined: October 26th, 2010, 7:10 pm
Location: Poland

Re: Short films between levels

Postby Dark77 » August 17th, 2014, 12:02 pm

Thank You very much for all Your help. :)


Return to “Princed Resources (PR)”

Who is online

Users browsing this forum: No registered users and 1 guest