Is there any way to kill the shadow by the left side without crashing the game?
I know I must import the sources with PR, but is there a code to fix it well?
I hope you can help me, watch the video and you'll know what I'm talking about
Re: Fixing the shadow
Posted: November 21st, 2019, 4:44 pm
by 4DPlayer
Emiliano Fierro wrote: ↑November 21st, 2019, 12:35 am
Is there any way to kill the shadow by the left side without crashing the game?
I know I must import the sources with PR, but is there a code to fix it well?
I hope you can help me, watch the video and you'll know what I'm talking about
In the file "resources.xml" find the <folder index="pop1" name="binary" file="shadow.dat" path="shadow" palette="750"> section.
In a regular resources.xml it will look like:
Then, in a hex editor, open the file located in the shadow folder of PR called "res750.pal.more". Replace the first byte in that file with 0x22.
After that, you can add the death frames to the shadow folder using the death frames of the Prince. Make sure to name those frames from "frame 1.bmp" and so on to "res779.bmp" and so on until "res 784.bmp" but use "dead.bmp" for "res784.bmp".
This is an example of how you should name and place each file from the Prince's death frames and dead frame in the shadow folder in PR:
Then import SHADOW.DAT in pr and you'll have your new file.
Emiliano Fierro wrote: ↑November 21st, 2019, 12:35 am
Is there any way to kill the shadow by the left side without crashing the game?
I know I must import the sources with PR, but is there a code to fix it well?
I hope you can help me, watch the video and you'll know what I'm talking about
In the file "resources.xml" find the <folder index="pop1" name="binary" file="shadow.dat" path="shadow" palette="750"> section.
In a regular resources.xml it will look like:
Then, in a hex editor, open the file located in the shadow folder of PR called "res750.pal.more". Replace the first byte in that file with 0x22.
After that, you can add the death frames to the shadow folder using the death frames of the Prince. Make sure to name those frames from "frame 1.bmp" and so on to "res779.bmp" and so on until "res 784.bmp" but use "dead.bmp" for "res784.bmp".
This is an example of how you should name and place each file from the Prince's death frames and dead frame in the shadow folder in PR:
Capture.JPG
Then import SHADOW.DAT in pr and you'll have your new file.
Thanks, but Does it work in the left side?
Re: Fixing the shadow
Posted: November 21st, 2019, 6:18 pm
by 4DPlayer
Emiliano Fierro wrote: ↑November 21st, 2019, 4:53 pm
Thanks, but Does it work in the left side?
This will work in any side because the shadow will actually die and not disappear.
Emiliano Fierro wrote: ↑November 21st, 2019, 4:53 pm
Thanks, but Does it work in the left side?
This will work in any side because the shadow will actually die and not disappear.
Thanks, today in the afternoon I will fix it
Re: Fixing the shadow
Posted: November 21st, 2019, 6:42 pm
by 4DPlayer
One thing I forgot:
Below <item value="782" path="res782.bmp"/> in the shadow.dat section of resources.xml there is text reading </folder>.
Make sure when you add the new lines in resources.xml that </folder> is at the bottom of the <folder index="pop1" name="binary" file="shadow.dat" path="shadow" palette="750> section in resources.xml.
So when you’re done adding the new lines of code in the xml document, the shadow folder section should look like:
I did all your steps and the game still crashes by the left side
I can prove it, here's my file
Check out the file and correct my mistakes
Re: Fixing the shadow
Posted: November 22nd, 2019, 4:33 am
by 4DPlayer
Emiliano Fierro wrote: ↑November 22nd, 2019, 1:47 am
I did all your steps and the game still crashes by the left side
I can prove it, here's my file
Check out the file and correct my mistakes
Did you edit the first byte in res750.pal.more to 0x22?
If you did, then maybe it’s an issue in resources.xml. Could you upload the xml file?
Edit: Wait. I think I know the problem. You need to re-export SHADOW.DAT after you make the change to resources.xml. Changes in the dat file won’t change if you are working with an already exported SHADOW.DAT.
Re: Fixing the shadow
Posted: November 22nd, 2019, 4:45 am
by Emiliano
I edited the first byte in res.pal.more
I can't send xml files I followed all your steps
Emiliano Fierro wrote: ↑November 22nd, 2019, 1:47 am
I did all your steps and the game still crashes by the left side
I can prove it, here's my file
Check out the file and correct my mistakes
Edit: Wait. I think I know the problem. You need to re-export SHADOW.DAT after you make the change to resources.xml. Changes in the dat file won’t change if you are working with an already exported SHADOW.DAT.
I guess that might be the problem
Re: Fixing the shadow
Posted: November 22nd, 2019, 4:53 am
by Emiliano
Here are my re-exported shadow.dat
And my re-imported file
Re: Fixing the shadow
Posted: November 22nd, 2019, 4:59 am
by Emiliano
This is what happens:
Re: Fixing the shadow
Posted: November 22nd, 2019, 5:29 pm
by 4DPlayer
Emiliano Fierro wrote: ↑November 22nd, 2019, 4:53 am
Here are my re-exported shadow.dat
And my re-imported file
If you look at your image again, you can see you forgot to add "res781.bmp". If you add that file to the shadow folder and then re-import shadow.dat, it will probably work.
res781.bmp was not added in the shadow folder.
Shadow.png (59.74 KiB) Viewed 15051 times
Also, there is another line of code you can add to resources.xml to make the shadow guard better. Below <item value="767" path="res767.bmp"/> in the shadow.dat section of resources.xml you can add <item value="768" path="res768.bmp"/> like this:
Capture.JPG (57 KiB) Viewed 15051 times
When you add this line of code, re-exportSHADOW.DAT and then you can take a "normal.bmp" from kid.dat, rename it to "res768.bmp", and move it to the shadow folder.
That way, the shadow guy will actually stand with a sword instead of being invisible when he doesn't see you.
res768standingshadow.JPG (9.49 KiB) Viewed 15051 times
You only need to add that line of code to resources.xml if you want. It is not really necessary.
Re: Fixing the shadow
Posted: November 22nd, 2019, 5:35 pm
by Emiliano
I will try again today later
Re: Fixing the shadow
Posted: November 24th, 2019, 1:20 am
by Emiliano
I did it again and it worked perfectly, Thank you very much
You'll see it in Lihinghntom's Nightmares (February 2020 or so)