Madness And Testing With Shadow
- atrueprincefanfrom18
- Site Shah
- Posts: 1786
- Joined: January 21st, 2020, 2:53 pm
- Contact:
Madness And Testing With Shadow
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):
DOSBox:
David, Norbert, Falcury can anyone explain the cause of it?
Thanks!
P1R Files (SDLPoP):
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.
- atrueprincefanfrom18
- Site Shah
- Posts: 1786
- Joined: January 21st, 2020, 2:53 pm
- Contact:
Re: Madness And Testing With Shadow
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.

- atrueprincefanfrom18
- Site Shah
- Posts: 1786
- Joined: January 21st, 2020, 2:53 pm
- Contact:
Re: Madness And Testing With Shadow
There are other weird things I found out, somehow connected with the answer... Check the p1r files:
David, any ideas on this as well?
Thanks!
David, any ideas on this as well?
Thanks!
- atrueprincefanfrom18
- Site Shah
- Posts: 1786
- Joined: January 21st, 2020, 2:53 pm
- Contact:
Re: Madness And Testing With Shadow
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...prince777 wrote: ↑March 13th, 2020, 2:31 pmand this is a very interesting topic about shadows
viewtopic.php?f=73&t=4185&start=105
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




Re: Madness And Testing With Shadow
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.
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.
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
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.
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.
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
- atrueprincefanfrom18
- Site Shah
- Posts: 1786
- Joined: January 21st, 2020, 2:53 pm
- Contact:
Re: Madness And Testing With Shadow
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!
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!
- atrueprincefanfrom18
- Site Shah
- Posts: 1786
- Joined: January 21st, 2020, 2:53 pm
- Contact:
Re: Madness And Testing With Shadow
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
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

- atrueprincefanfrom18
- Site Shah
- Posts: 1786
- Joined: January 21st, 2020, 2:53 pm
- Contact:
Re: Madness And Testing With Shadow
Another one!

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:





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:



Re: Madness And Testing With Shadow
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
- atrueprincefanfrom18
- Site Shah
- Posts: 1786
- Joined: January 21st, 2020, 2:53 pm
- Contact:
Re: Madness And Testing With Shadow
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!
Can you please share the LEVELS.DAT here... I need to see what's going on... Thanks!
Re: Madness And Testing With Shadow
Yes: here "Levels.dat" , obviously on level 06: It's the same of my last modatrueprincefanfrom18 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!

- Attachments
-
- LEVELS.DAT
- (36.16 KiB) Downloaded 117 times
- atrueprincefanfrom18
- Site Shah
- Posts: 1786
- Joined: January 21st, 2020, 2:53 pm
- Contact:
Re: Madness And Testing With Shadow
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:
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?
Re: Madness And Testing With Shadow
Ok, thank you very much for your help and explanations: as soon I'll try Itatrueprincefanfrom18 wrote: ↑April 26th, 2020, 8:20 pmI 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?

- atrueprincefanfrom18
- Site Shah
- Posts: 1786
- Joined: January 21st, 2020, 2:53 pm
- Contact:
Re: Madness And Testing With Shadow
You can also merge with floaty effect on.