Guide to Prince of Persia tricks (Large Topic)

Discuss PoP1 for DOS here.
Dh73
Vizier
Vizier
Posts: 104
Joined: October 30th, 2019, 9:20 pm
Contact:

Re: Guide to Prince of Persia tricks (Large Topic)

Post by Dh73 »

atrueprincefanfrom18 wrote: March 21st, 2020, 1:03 pm
Dh73 wrote: March 21st, 2020, 11:44 am Hi: I don't specify the room because It can be whatever you choose: the important is that the exit door is at far left side and you in the corrispondant far right side: the attached image file is near room: is available also with DosBox, hence is not only via SdlPop ;
Yes, I know you don't need to specify any room. I was talking about the code of the game engine.
Can you share LEVELS.DAT for trick 2 you shared?
oh yes is simple: you can take this levels.dat from my last mod "Prince's Adventure" in level 05; I misunderstood, I thought you were referring to Trick 01 for hidden exit :)
 
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1786
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: Guide to Prince of Persia tricks (Large Topic)

Post by atrueprincefanfrom18 »

Dh73 wrote: March 21st, 2020, 1:13 pm oh yes is simple: you can take this levels.dat from my last mod "Prince's Adventure" in level 05; I misunderstood, I thought you were referring to Trick 01 for hidden exit :)
No problem!
Okay, I'll take that DAT file. Thanks!
Love to create new MODS :)

My complete list of mods until now!

My channel. Do consider subscribing it! :)
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5786
Joined: April 9th, 2009, 10:58 pm

Re: Guide to Prince of Persia tricks (Large Topic)

Post by Norbert »

atrueprincefanfrom18 wrote: March 21st, 2020, 12:59 pmNorbert, do you think it would be good to create a new page in PoPOT, called as special event tricks?
Better a forum thread.
Not everything has to be on PoPOT.
There might be hundreds of event-related tricks...
Dh73
Vizier
Vizier
Posts: 104
Joined: October 30th, 2019, 9:20 pm
Contact:

Re: Guide to Prince of Persia tricks (Large Topic)

Post by Dh73 »

atrueprincefanfrom18 wrote: March 21st, 2020, 1:16 pm
Dh73 wrote: March 21st, 2020, 1:13 pm oh yes is simple: you can take this levels.dat from my last mod "Prince's Adventure" in level 05; I misunderstood, I thought you were referring to Trick 01 for hidden exit :)
No problem!
Okay, I'll take that DAT file. Thanks!
and, this is another variation, that I published in my first mod "Illusions of Persia" in november 2019:
as you can see, normally the shadow goes to left, but if you drink green weightless potion, the shadow, hanging in tile, after goes to right .
Attachments
Trick03.zip
(2.17 MiB) Downloaded 154 times
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1786
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: Guide to Prince of Persia tricks (Large Topic)

Post by atrueprincefanfrom18 »

Dh73 wrote: March 21st, 2020, 5:07 pm and, this is another variation, [...]
Yes, quite interesting in the way, how shadow is coded. It also has exact behaviour as the Kid. I mean he goes a step through gates, run through walls, etc. Also he drinks the potion if it is next to where he landed. So, for the entry of the shadow on the screen, the potion on the first row is required. If there is no tile in between he would fall on the second row, but if there's a potion in the same column as the first row, shadow would drink it. Can be used a lot on MODS!
Love to create new MODS :)

My complete list of mods until now!

My channel. Do consider subscribing it! :)
David
The Prince of Persia
The Prince of Persia
Posts: 2877
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Guide to Prince of Persia tricks (Large Topic)

Post by David »

atrueprincefanfrom18 wrote: March 18th, 2020, 11:36 am 2. This one's very interesting and maybe David or Falcury can help looking at source code, perhaps, why this happened. After you merge, when the blinking stops, if you keep running and go to the section where the tile appearing (special event) ends, if there's a falling tile in the same room at the end, and when you jump over it, when you go to next room, another tile appears where you just jumped!
The appearing floors are created here: https://github.com/NagyD/SDLPoP/blob/ma ... 006.c#L966
The key is this part: (Char.room == 13 && tile_col >= 6)
The tile_col variable contains the column index of the touched tile within its own room.
If you touch the rightmost column of the room on the left side of room 13, while the screen still shows room 13, then tile_col will be 9, not -1.
And since 9 >= 6, the floor will appear there.

By the way, you don't need the loose floor to make the special floor appear.

What's more, if you can keep the game show room 13 while you go further into the other room, then floors will appear in those further columns as well.
This is possible if the prince is in a swordfight.
See this example:
level_12_floors_appear_2.p1r
(3.49 KiB) Downloaded 155 times
This recording also shows that you can climb (down or up) through an empty space where a special floor would appear.
The floor appears only if the prince would fall otherwise.


More fun stuff you can do with the appearing floors:

1. Step up to the edge of such a floor and press down.
The prince will "teleport" forward a bit. (And of course a floor will appear under his feet.)
level_12_press_down.p1r
(3.2 KiB) Downloaded 122 times

2. Put loose floors where the floors would appear.
If you step onto one of the loose floors, it will break without falling, on the floor which appears at its place!
level_12_loose.p1r
(3.22 KiB) Downloaded 160 times
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1786
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: Guide to Prince of Persia tricks (Large Topic)

Post by atrueprincefanfrom18 »

David wrote: March 22nd, 2020, 7:03 pm The appearing floors are created here: https://github.com/NagyD/SDLPoP/blob/ma ... 006.c#L966
The key is this part: (Char.room == 13 && tile_col >= 6)
The tile_col variable contains the column index of the touched tile within its own room.
If you touch the rightmost column of the room on the left side of room 13, while the screen still shows room 13, then tile_col will be 9, not -1.
And since 9 >= 6, the floor will appear there.
Oh, so that's why the behaviour! Got it!
David wrote: March 22nd, 2020, 7:03 pm By the way, you don't need the loose floor to make the special floor appear. [...]
Wow, Nice! Thanks! I think I should dive more deeper into special events!
Love to create new MODS :)

My complete list of mods until now!

My channel. Do consider subscribing it! :)
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1786
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: Guide to Prince of Persia tricks (Large Topic)

Post by atrueprincefanfrom18 »

David, can you help with this?
Love to create new MODS :)

My complete list of mods until now!

My channel. Do consider subscribing it! :)
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1786
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: Guide to Prince of Persia tricks (Large Topic)

Post by atrueprincefanfrom18 »

Can you explain the movements please? I am not able to do it... :(
Love to create new MODS :)

My complete list of mods until now!

My channel. Do consider subscribing it! :)
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1786
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: Guide to Prince of Persia tricks (Large Topic)

Post by atrueprincefanfrom18 »

1) Why does this happen? Is there something related to the unnhh sound which the Kid produces and he saves, because he is a bit far from the spikes and doesn't die? Check the video to know exactly what I am talking about!





2) Similar to trick 139, 141, 142:





Norbert, #2 to PoPOT, if you want?

Thanks!
Love to create new MODS :)

My complete list of mods until now!

My channel. Do consider subscribing it! :)
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5786
Joined: April 9th, 2009, 10:58 pm

Re: Guide to Prince of Persia tricks (Large Topic)

Post by Norbert »

atrueprincefanfrom18 wrote: March 30th, 2020, 7:34 pmNorbert, #2 to PoPOT, if you want?
This is extremely similar to 142, in my opinion.
I think players understand there will be many ways to survive spikes next to a gate...
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1786
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: Guide to Prince of Persia tricks (Large Topic)

Post by atrueprincefanfrom18 »

Another one, quite similar to 138, maybe an extended version of it...





Self-explanatory.
Love to create new MODS :)

My complete list of mods until now!

My channel. Do consider subscribing it! :)
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5786
Joined: April 9th, 2009, 10:58 pm

Re: Guide to Prince of Persia tricks (Large Topic)

Post by Norbert »

atrueprincefanfrom18 wrote: April 12th, 2020, 8:46 am Another one, quite similar to 138, maybe an extended version of it...





Self-explanatory.
Clever combination of tricks. :)
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1786
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: Guide to Prince of Persia tricks (Large Topic)

Post by atrueprincefanfrom18 »

Norbert wrote: April 12th, 2020, 10:26 am Clever combination of tricks. :)
But difficult to get it perfect... Works fine with Level 8 guard as he doesn't attack...
Love to create new MODS :)

My complete list of mods until now!

My channel. Do consider subscribing it! :)
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1786
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: Guide to Prince of Persia tricks (Large Topic)

Post by atrueprincefanfrom18 »

We can make Shadow in Level 5 go right and never go off screen from left...

If you never let him reach and crouch to drink the potion he would come back again (provided the door is open). But if you make him crouch and drink the potion, but get to next screen, and come back he would be still there to show up the drinking potion animation. However, for some reason he doesn't go back from where he came, instead exit the screen from right...

Don't know why that happens! :P
Any thoughts?


Love to create new MODS :)

My complete list of mods until now!

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