Page 1 of 2

Prince can survive at 0 HP!

Posted: January 23rd, 2020, 8:24 am
by atrueprincefanfrom18
Hey,

I was playing the original PoP1 without megahit and I discovered something very very strange. I was in Level 13 (Jaffar Level). I killed Jaffar while I had 1 HP and accidently landed on the first platform as circled in yellow ink from the top platform as circled in yellow color.

Flashing was going on while this happened. It didn't kill the Prince! Check the screenshot:
Screenshot (120)_LI.jpg
Kid (Prince) was behaving as if he had enough health and could also run, jump and do all sort of movements. I could even go to the next level from door.

Any idea why this could have happened? Is it because the system doesn't register the changes while flashing is going on?

Thanks!

Re: Prince can survive at 0 HP!

Posted: January 23rd, 2020, 9:15 pm
by Norbert
atrueprincefanfrom18 wrote: January 23rd, 2020, 8:24 am Hey,

I was playing the original PoP1 without megahit and I discovered something very very strange. I was in Level 13 (Jaffar Level). I killed Jaffar while I had 1 HP and accidently landed on the first platform as circled in yellow ink from the top platform as circled in yellow color.

Flashing was going on while this happened. It didn't kill the Prince! Check the screenshot:

Screenshot (120)_LI.jpg

Kid (Prince) was behaving as if he had enough health and could also run, jump and do all sort of movements. I could even go to the next level from door.

Any idea why this could have happened? Is it because the system doesn't register the changes while flashing is going on?

Thanks!
A quick way to replicate this is to win from Jaffar while having only 1 potion left.
Then all HP potions are displayed empty.

Alternatively, win with 2 potions left, and then find a way to lose another potion.
For example the method mentioned in atruep's post.

Re: Prince can survive at 0 HP!

Posted: January 24th, 2020, 3:45 pm
by atrueprincefanfrom18
Norbert wrote: January 23rd, 2020, 9:15 pm
atrueprincefanfrom18 wrote: January 23rd, 2020, 8:24 am Hey,

I was playing the original PoP1 without megahit and I discovered something very very strange. I was in Level 13 (Jaffar Level). I killed Jaffar while I had 1 HP and accidently landed on the first platform as circled in yellow ink from the top platform as circled in yellow color.

Flashing was going on while this happened. It didn't kill the Prince! Check the screenshot:

Screenshot (120)_LI.jpg

Kid (Prince) was behaving as if he had enough health and could also run, jump and do all sort of movements. I could even go to the next level from door.

Any idea why this could have happened? Is it because the system doesn't register the changes while flashing is going on?

Thanks!
A quick way to replicate this is to win from Jaffar while having only 1 potion left.
Then all HP potions are displayed empty.

Alternatively, win with 2 potions left, and then find a way to lose another potion.
For example the method mentioned in atruep's post.
Yes, I tried and it works! But the question still remains, WHY this happens? I am extremely curious to know this...

Re: Prince can survive at 0 HP!

Posted: January 25th, 2020, 6:40 pm
by David
It's because of what I wrote here: viewtopic.php?p=25859#p25859

If the prince has 1 HP then it blinks (between 1 HP and 0 HP).
However, this blinking is controlled by the remaining time.
If the timer stops then the blinking stops as well, it remains in the state in which it was when the timer stopped.
So you have a 50% chance that 1 HP will be displayed as 0 HP.

Re: Prince can survive at 0 HP!

Posted: January 26th, 2020, 9:04 am
by atrueprincefanfrom18
Great! Thank you! It answered my question! :)

Re: Prince can survive at 0 HP!

Posted: March 22nd, 2020, 7:22 am
by yourantumayel69
Prince is survive at 9 or 10 HP in level 13 original PoP

Re: Prince can survive at 0 HP!

Posted: May 16th, 2020, 12:35 pm
by David
David wrote: January 25th, 2020, 6:40 pm If the prince has 1 HP then it blinks (between 1 HP and 0 HP).
However, this blinking is controlled by the remaining time.
If the timer stops then the blinking stops as well, it remains in the state in which it was when the timer stopped.
So you have a 50% chance that 1 HP will be displayed as 0 HP.
A similar thing can happen if a guard has 1 HP when he kills the prince.
Time stops while the prince is dead (see the bottom of this post), so the guard's HP will stop blinking.

Re: Prince can survive at 0 HP!

Posted: May 16th, 2020, 4:50 pm
by atrueprincefanfrom18
More killer fact here!

Re: Prince can survive at 0 HP!

Posted: July 4th, 2020, 7:05 pm
by David
(Moved from "Off-Topic" to "Prince of Persia 1 for DOS".)

No blink one hit point

Posted: September 3rd, 2020, 1:10 am
by Emiliano
Hi guys, in my mod in progress I found something I haven't seen before, if you have one hit point in level 14 or a guard has it, the only hit point does not blink in this level
Do you need an evidence?
Is it because I use a cracked version?

Re: No blink one hit point

Posted: September 3rd, 2020, 8:02 am
by atrueprincefanfrom18
Emiliano Fierro wrote: September 3rd, 2020, 1:10 am If you have one hit point in level 14 or a guard has it, the only hit point does not blink in this level.
Yes, I tried it works. Maybe because in the original game there is no chance to lose any health point and that's why some code related to Level 14 and Health Points is changed. David can find it. :)

Re: No blink one hit point

Posted: September 3rd, 2020, 8:04 am
by Emiliano
I will keep the no blink one hit point for my sixth mod maybe in my seventh mod I will get a hack for it ;)

Re: No blink one hit point

Posted: September 5th, 2020, 5:11 pm
by David
Emiliano Fierro wrote: September 3rd, 2020, 1:10 am Hi guys, in my mod in progress I found something I haven't seen before, if you have one hit point in level 14 or a guard has it, the only hit point does not blink in this level
That happens because the blinking of the hit point is controlled by the elapsed time, and the timer is stopped on level 14.
See also:
viewtopic.php?p=25859#p25859 -- PoP1 Special Events
viewtopic.php?p=27523#p27523 -- "Prince can survive at 0 HP!"
viewtopic.php?p=28901#p28901 -- one of the hacks for the 30th Anniversary Port SNES mod by Shauing


You could change where the timer stops:

Search: 83 3E 9E 0F 0D 7F 5F
Change: 0D to the level number.

Code: Select all

seg008:24BC 83 3E 9E 0F 0D                       cmp     current_level, 13 ; Special event: time stops if Jaffar died, and on the next level
seg008:24C1 7F 5F                                jg      loc_C142

Re: No blink one hit point

Posted: September 5th, 2020, 5:15 pm
by Emiliano
I also found the opposite case, I arrived to level 14 fairly (playing all previous levels) and the one hit point was invisible

Re: No blink one hit point

Posted: October 3rd, 2020, 6:00 am
by dmitrys
I had the same issue on level 14 when working on my mod. As mentioned, blinking is driven off the same timer that is responsible for the amount of ticks left before the game is over. When the time stops (typically on level 13 after defeating Jaffar), the blinking stops working. It can get stuck at a tick either when the last hit point is being displayed while blinking or when it is off. So I just created a separate timer for blinking hit points in the SDLPOP source because in my mod the time stops as soon as you face off with Jaffar.