PoP2 bugs

Second part of the best game ever made.
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

PoP2 bugs

Post by David »

A classic one: If you press left and right after going up the level door, the kid will appear above the floor.
(Remember kids, don't run on the stairs, because you may fall!)
goup.avi.ZIP
(319.96 KiB) Downloaded 273 times
This was on PoPUW: With the SAYCHEESE command line parameter, you can look at other rooms with the arrow keys. However, it's very buggy.
In this case, the kid became a guard.
guard_vs_guard.avi.ZIP
(264.08 KiB) Downloaded 181 times
Never stand between a closing gate and a wall.
gatepush.avi.ZIP
(349.13 KiB) Downloaded 209 times
Birdmen will jump over a pit, even if they'd better fall or stop.
prince_birdspk_nos.avi.ZIP
(31.46 KiB) Downloaded 169 times
If you really want to go through a closed gate, you may succeed, but you'll wish you didn't.
through_door_and_wall.avi.ZIP
(96.45 KiB) Downloaded 176 times
throughgate2.zip
(196.7 KiB) Downloaded 227 times
Have you ever tried putting a small green potion into a level?
greenpotion_guard1.avi.ZIP
(29.13 KiB) Downloaded 177 times
greenpotion_guard2.avi.ZIP
(72.97 KiB) Downloaded 163 times
On the last level, if you turn into a flame on the top of the tower, and jump into the nothing, the kid suddenly finds himself in the tower.
The exact position is important.
last_level_flame.zip
(353.87 KiB) Downloaded 217 times
The false prince appears twice!
I don't know exactly what causes this. It might have to do something with what I did with the clones in the crystal room.
doublesee.avi.ZIP
(801.98 KiB) Downloaded 207 times
the forum wrote:Cannot add another attachment, 10 is the maximum.
Ok, I'll stop now. :)
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: PoP2 bugs

Post by Norbert »

The videos that David just posted.
(Hosted at princed.org; hopefully they don't load too slowly.)

goup:


guard_vs_guard:


gatepush:


prince_birdspk_nos:


through_door_and_wall:


throughgate2:


greenpotion_guard1:


greenpotion_guard2:


last_level_flame:


doublesee:
User avatar
musa
Vizier
Vizier
Posts: 112
Joined: March 27th, 2011, 2:06 pm
Location: Nairobi, Kenya

Re: PoP2 bugs

Post by musa »

I've noticed a funny bug. See for yourself in the video.
Attachments
prince_000.rar
(174.71 KiB) Downloaded 166 times
-- Michael, the boy who makes Shaw's Nightmare.
Visit here to download Shaw's Nightmare: http://shawsnightmare.ucoz.com
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: PoP2 bugs

Post by Norbert »

The video that musa just posted.
(Hosted at princed.org; hopefully it doesn't load too slowly.)

David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: PoP2 bugs

Post by David »

One false prince (purple turban) becomes the "real" prince (blue turban). Strange.
User avatar
musa
Vizier
Vizier
Posts: 112
Joined: March 27th, 2011, 2:06 pm
Location: Nairobi, Kenya

Re: PoP2 bugs

Post by musa »

Another funny bug involving the prince.
Attachments
princec1_001.rar
(4.08 MiB) Downloaded 198 times
-- Michael, the boy who makes Shaw's Nightmare.
Visit here to download Shaw's Nightmare: http://shawsnightmare.ucoz.com
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: PoP2 bugs

Post by David »

So the shadow who appears with Shift-S can't get the flame.
Remember, the sign says: He who would steal the flame *must die*. The kid does not *really* die with Shift-S, so it's not good enough. :)
And then the "real" shadow comes and gets the flame.

But why does the kid's body remain there?
It seems that if the shadow dies (*), he can be resurrected at the kid's body, but then he will become another kid.
(*) This is possible at the flame, in a bottomless pit, or by Shift-K.
If the shadow dies, even the view changes to the kid's body.
User avatar
musa
Vizier
Vizier
Posts: 112
Joined: March 27th, 2011, 2:06 pm
Location: Nairobi, Kenya

Re: PoP2 bugs

Post by musa »

Yet another bug involving the false princes.
Attachments
princec1_002.rar
(275.25 KiB) Downloaded 207 times
-- Michael, the boy who makes Shaw's Nightmare.
Visit here to download Shaw's Nightmare: http://shawsnightmare.ucoz.com
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: PoP2 bugs

Post by Norbert »

I think that's what it's supposed to do.
You think it's a bug that the prince got killed?
User avatar
musa
Vizier
Vizier
Posts: 112
Joined: March 27th, 2011, 2:06 pm
Location: Nairobi, Kenya

Re: PoP2 bugs

Post by musa »

Yeah but I don't think it's supposed to do that because the prince was facing the false prince. I think it's only supposed to do that when your back is turned.
-- Michael, the boy who makes Shaw's Nightmare.
Visit here to download Shaw's Nightmare: http://shawsnightmare.ucoz.com
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: PoP2 bugs

Post by Norbert »

Another bug I just found. (Near end o/t video.)
I was looking into something related to the flame and was wondering how the scripted event would react if the prince dies very close to the edge or room border, either looking left or right.

David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: PoP2 bugs

Post by David »

Norbert wrote:Another bug I just found.
Not even SaveShad() could save the shadow from falling. :)

I thought the shadow makes safe steps until the edge and then does a standing jump.
Or does he do that only when coming back?
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

Re: PoP2 bugs

Post by Norbert »

Towards the flame it depends on the distance.
From the flame, it's always a standing jump and safe steps.
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: PoP2 bugs

Post by David »

Norbert wrote:Towards the flame it depends on the distance.
From the flame, it's always a standing jump and safe steps.
I couldn't reproduce this, until I noticed that the prince faces right in your video when he dies.
That is needed for this bug to happen.


There are some other bugs related to the flame room:

(a) After the shadow came out of the prince, press R and leave the room.
When you come back, the shadow becomes a birdman!
This looks the best when the shadow was on the left side:
You shall not pass!
You shall not pass!
guard_of_the_flame.png (8.9 KiB) Viewed 11526 times
(b) Press R and let the shadow walk past the prince, into the other room.
If you enter that room now, the game will hang.

Once, this even filled the DOSBox console with messages like this:

Code: Select all

Illegal read from 30f6c18, CS:IP     5590: 30a1317
(What? How on Earth is IP>0xFFFF even possible?)
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1782
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: PoP2 bugs

Post by atrueprincefanfrom18 »

(A bit late to the discussion!)

Looks like PoP2 was not well tested (or not coded properly, that guy or the team didn't think of the edge cases well).

By the way, isn't the PoP2 source code released yet? Maybe they should do it now?
David wrote: April 23rd, 2017, 10:52 am (a) After the shadow came out of the prince, press R and leave the room.
When you come back, the shadow becomes a birdman!
Maybe the game forgets that there was shadow in that room and then just replaces it with guard instead (sword in hand is by default).
David wrote: April 22nd, 2017, 12:52 pm Not even SaveShad() could save the shadow from falling. :)

I thought the shadow makes safe steps until the edge and then does a standing jump.
Or does he do that only when coming back?
I guess there are two blocks of code:

Code: Select all

if (shadow_distance_units_from_the_other_end <= SOME_CONSTANT_NUMBER) {
	walk_safely_and_jump();
}

else {
	do_a_running_jump();
}
Norbert wrote: July 24th, 2013, 8:10 pm (Hosted at princed.org; hopefully they don't load too slowly.) [...]
Unfortunately, they do. I had to right click, copy video address and paste it in the new tab for 6 videos, because those 6 just stop loading. Don't know if it's my internet problem or the server's.

P.S: Is it possible in SDLPoP to draw a sword without a guard shown? Meaning, can Kid draw his sword at his own wish? Maybe so we can check if the bug (of going through the gate when sword is in action) exists in original PoP? I think it would do, because if you can get through wall when you are in combat, if you can get through a gate when a guard pushes you, technically you should be able to replicate the same bug in PoP1.

My humble request to David: if you get some free time, could you change the code so Kid can draw the sword at his wish? I know it's a lot of work, but I am curious to know if we can replicate the same in PoP1! :)
Love to create new MODS :)

My complete list of mods until now!

My channel. Do consider subscribing it! :)
Post Reply