Madness And Testing With Shadow

Discuss PoP1 for DOS here.
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1786
Joined: January 21st, 2020, 2:53 pm
Contact:

Madness And Testing With Shadow

Post by atrueprincefanfrom18 »

I was testing with shadow in Level 12a and changed some of the elements in the first row in room 15 (where the Kid and Shadow merge), like a raise gate and instead of two falling tiles, normal tiles. And I was surprised with the behaviour. I mainly used SDLPoP for testing and then later I tried it on the DOSBox and it worked exactly the same. I am attaching the p1r files and a YouTube video link (played in DOSBox). It's quite shocking if you are a great fan of the game. No additional graphics. Nothing. Change in the top row is only the raise button and two tiles which fall (original PoP) are changed to the normal ones.

P1R Files (SDLPoP):

whyso2.p1r
(3.43 KiB) Downloaded 156 times
whyso1.p1r
(3.43 KiB) Downloaded 173 times

DOSBox:



David, Norbert, Falcury can anyone explain the cause of it?

Thanks!
Last edited by atrueprincefanfrom18 on March 13th, 2020, 1:10 pm, edited 1 time in total.
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: Madness And Testing With Shadow

Post by Norbert »

Weird. :)
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1786
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: Madness And Testing With Shadow

Post by atrueprincefanfrom18 »

Norbert wrote: March 12th, 2020, 9:02 pmWeird. :)
Yeah man!

David, do you have any ideas why this is happening?
Also why does the shadow drop down WITH sword when there are no falling tiles in between? Otherwise the shadow falls, crouches and then draw the sword. :?
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: Madness And Testing With Shadow

Post by atrueprincefanfrom18 »

There are other weird things I found out, somehow connected with the answer... Check the p1r files:

whyso6.p1r
(3.3 KiB) Downloaded 153 times
whyso.p1r
(3.11 KiB) Downloaded 169 times
haha.p1r
(3.25 KiB) Downloaded 180 times

David, any ideas on this as well?

Thanks!
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: Madness And Testing With Shadow

Post by atrueprincefanfrom18 »

prince777 wrote: March 13th, 2020, 2:31 pm :P and this is a very interesting topic about shadows
viewtopic.php?f=73&t=4185&start=105
Yes, I checked now, but not many things are discussed about the shadow... I would like to have some topic where only and specifically special events are discussed... So I created this topic, I will create more topics as I discover more (madness and) tricks of special events...

I am creating MOD in which I have some special case for Level 5 (Shadow drinking the potion, not so difficult, prince777, you can find the trick easily...)
I am also playing with Level 8 mouse... Let's see what best I can do with it.

"Rescue Of Persia" will be finished and released by the end of this month :)

prince777 and YURA, I am creating something which would at least take you a month to pass... My last MOD, prince777, you completed very quickly :twisted: :twisted: :twisted: :cool:
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: Madness And Testing With Shadow

Post by David »

Here are some more oddities with the shadow on level 12:

The prince can draw his sword before the shadow appears.
It happens when the prince turns towards the left.
He automatically puts it away the first time, but the second time he stays that way.
draw_sword_before_shadow_appears_1.p1r
(3.11 KiB) Downloaded 153 times

And here is an alternate version, where I flipped the starting direction.
This time the prince will keep holding the sword even the first time, because he's slightly closer to the place where the shadow would appear (see explanation below).
If you back off, the prince will put his sword away automatically.
draw_sword_before_shadow_appears_2.p1r
(3.1 KiB) Downloaded 138 times

Explanation:
The game has a rule that if the opponent is farther from the prince than 90 units (90/14=6.4 tiles) then the prince won't draw his sword yet: https://github.com/NagyD/SDLPoP/blob/ma ... 005.c#L333
(And I think there's a complementary rule that the prince will put his sword away in this case if he's already holding it. But I can't find it now.)
However, this rule is ignored by the "turn and draw sword" move: https://github.com/NagyD/SDLPoP/blob/ma ... 005.c#L491
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1786
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: Madness And Testing With Shadow

Post by atrueprincefanfrom18 »

Wow, looks quite interesting! But there are still two questions left:

1) Why does the shadow come down directly with the sword when there are no loose tiles in between the Kid and the shadow?
2) Why does the shadow sometimes go to the room below room 15 and after merge the game aligns the Kid in a very strange way?

Thanks!
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: Madness And Testing With Shadow

Post by atrueprincefanfrom18 »

Three new videos, one on how to merge on the tile on the second floor, and two on how to merge on the tile at the end of first row (on the screen):

1. Merge on first floor, end of the tile:



2. Merge on first floor, end of the tile:



3. Merge on second floor:



I am now, gonna do some tests with Shadow in Level 4, 5 and 6 :)
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: Madness And Testing With Shadow

Post by atrueprincefanfrom18 »

Another one! :D :P ;) :)

You can make spikes useless (meaning, if you land on them, it won't kill you) by dying on it, and on the other hand merging with the shadow as well! Check this out! Quite interesting, can be used on MODS:



:cool: :cool: :cool:
Love to create new MODS :)

My complete list of mods until now!

My channel. Do consider subscribing it! :)
Dh73
Vizier
Vizier
Posts: 104
Joined: October 30th, 2019, 9:20 pm
Contact:

Re: Madness And Testing With Shadow

Post by Dh73 »

can anyone explain to me why this happens? the rooms are the same, but in 1st case (Trick_01.avi) It works completely normal, but in the 2nd case (Trick_02.avi) the Prince, for bump in the gate, died as if there were no rooms available :?:
Attachments
ShadowTrick_02.zip
(1 MiB) Downloaded 167 times
ShadowTrick_01.zip
(653.43 KiB) Downloaded 159 times
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1786
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: Madness And Testing With Shadow

Post by atrueprincefanfrom18 »

Nice that you found something more to the Shadow element!

Can you please share the LEVELS.DAT here... I need to see what's going on... Thanks!
Love to create new MODS :)

My complete list of mods until now!

My channel. Do consider subscribing it! :)
Dh73
Vizier
Vizier
Posts: 104
Joined: October 30th, 2019, 9:20 pm
Contact:

Re: Madness And Testing With Shadow

Post by Dh73 »

atrueprincefanfrom18 wrote: April 26th, 2020, 7:44 pm Nice that you found something more to the Shadow element!

Can you please share the LEVELS.DAT here... I need to see what's going on... Thanks!
Yes: here "Levels.dat" , obviously on level 06: It's the same of my last mod :)
Attachments
LEVELS.DAT
(36.16 KiB) Downloaded 117 times
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1786
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: Madness And Testing With Shadow

Post by atrueprincefanfrom18 »

Dh73 wrote: April 26th, 2020, 8:01 pm It's the same of my last mod :)
I didn't notice it somehow... Busy a lot now-a-days.

Well, actually you really don't have a room below 1! The code says if you enter a room from above and from room 1 (meaning, if you leave room 1 on top, go to the next level. If you add room 24 below room 1 and room 1 above room 24 in your LEVELS.DAT file, the game would go to the next level properly. I made the change and you can see this:

LEVELS.DAT
(36.16 KiB) Downloaded 158 times

Check Level 6, check room links (although they are not displayed as broken room links in Apoplexy (don't know why), but they are changed!). If you play in cheat mode, you can press "U", "N" and "C", you will understand.

Now why did it work if you jump directly? Maybe it checked the condition of if it's good to move to next level and then it checks the condition whether or not to declare you dead (as there's no room) but by the time Level 7 has started! :)

Why it didn't work if you press up while the gate is closed? Because the game moved you below first and tried to grab on to something, but there's nothing to grab on, so it declared you as dead.

So, I think the grabbing on condition is checked first, but as there's nothing you can grab on to, you are dead.

(David, please let me know if I am wrong.) Hope that helped?
Love to create new MODS :)

My complete list of mods until now!

My channel. Do consider subscribing it! :)
Dh73
Vizier
Vizier
Posts: 104
Joined: October 30th, 2019, 9:20 pm
Contact:

Re: Madness And Testing With Shadow

Post by Dh73 »

atrueprincefanfrom18 wrote: April 26th, 2020, 8:20 pm
Dh73 wrote: April 26th, 2020, 8:01 pm It's the same of my last mod :)
I didn't notice it somehow... Busy a lot now-a-days.

Well, actually you really don't have a room below 1! The code says if you enter a room from above and from room 1 (meaning, if you leave room 1 on top, go to the next level. If you add room 24 below room 1 and room 1 above room 24 in your LEVELS.DAT file, the game would go to the next level properly. I made the change and you can see this:


LEVELS.DAT


Check Level 6, check room links (although they are not displayed as broken room links in Apoplexy (don't know why), but they are changed!). If you play in cheat mode, you can press "U", "N" and "C", you will understand.

Now why did it work if you jump directly? Maybe it checked the condition of if it's good to move to next level and then it checks the condition whether or not to declare you dead (as there's no room) but by the time Level 7 has started! :)

Why it didn't work if you press up while the gate is closed? Because the game moved you below first and tried to grab on to something, but there's nothing to grab on, so it declared you as dead.

So, I think the grabbing on condition is checked first, but as there's nothing you can grab on to, you are dead.

(David, please let me know if I am wrong.) Hope that helped?
Ok, thank you very much for your help and explanations: as soon I'll try It :)
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1786
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: Madness And Testing With Shadow

Post by atrueprincefanfrom18 »

You can also merge with floaty effect on.


Love to create new MODS :)

My complete list of mods until now!

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