Shadow.DAT Question

Discuss PoP1 for DOS here.
Post Reply
4DPlayer

Shadow.DAT Question

Post by 4DPlayer »

Why does killing guards created with Shadow.DAT crash the game? Is there any explanation for that?
Also, I understand that Shadow’s graphics aren’t changed with the Shadow.DAT file. He will just be a black/transparent version of KID.DAT.

So, what purpose does the Shadow.DAT file have?
:?:
David
The Prince of Persia
The Prince of Persia
Posts: 2850
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Shadow.DAT Question

Post by David »

4DPlayer wrote: June 11th, 2019, 8:23 pm Also, I understand that Shadow’s graphics aren’t changed with the Shadow.DAT file. He will just be a black/transparent version of KID.DAT.

So, what purpose does the Shadow.DAT file have?
The game uses SHADOW.DAT when the shadow is holding the sword.
For example, copy GUARD.DAT over SHADOW.DAT.
This will be the result:
shadow_guard.png
shadow_guard.png (4.18 KiB) Viewed 1105 times
4DPlayer wrote: June 11th, 2019, 8:23 pm Why does killing guards created with Shadow.DAT crash the game? Is there any explanation for that?
Interestingly, the game doesn't crash on pressing K if I overwrite SHADOW.DAT with GUARD.DAT (as I did above), FAT.DAT, or VIZIER.DAT.
But it crashes if I overwrite it with SKEL.DAT and press K.
So my guess is that the game crashes because SHADOW.DAT doesn't have death frames.

If I press K on shadow guards in SDLPoP (debug build), it writes this into the console:

Code: Select all

Tried to use image 32 of chtab 5, not in 0..31
Tried to use image 33 of chtab 5, not in 0..31
This means that SHADOW.DAT doesn't have certain frames that would appear when a guard dies.
(PR calls these frames res783 and res784.)


It should be possible to add the missing images with PR, but you need to edit resources.xml for that.
4DPlayer

Re: Shadow.DAT Question

Post by 4DPlayer »

Ok. Thanks for the explanation.
I did notice in my mod that when I set Level 12 to Guard Type: GUARD, Shadow fought as a guard like the one above with yellow lives.
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1786
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: Shadow.DAT Question

Post by atrueprincefanfrom18 »

David wrote: June 14th, 2019, 8:10 pm But it crashes if I overwrite it with SKEL.DAT and press K.
It evens crashes if you try to kill SKEL.DAT guards with K in cheat mode. Can this be fixed? Because my computer had to be forced rebooted in DOSBox!
Love to create new MODS :)

My complete list of mods until now!

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