Not killable shadow editing

Discussions about all other tools (CusPop, SAV/HOF editors) and hex editing.
Post Reply
User avatar
Emiliano
Wizard Scribe
Wizard Scribe
Posts: 718
Joined: July 31st, 2019, 8:53 pm
Location: Mexico
Contact:

Not killable shadow editing

Post by Emiliano »

Hi everyone, I tried to modify one of the shadows, but the options are not displayed in CusPoP
I want to set skill 9 and 10 hit points to this shadow, I guess it depends directly from Kid.dat
Attachments
prince_030.png
prince_030.png (3.83 KiB) Viewed 4540 times
65536
User avatar
atrueprincefanfrom18
Site Shah
Site Shah
Posts: 1782
Joined: January 21st, 2020, 2:53 pm
Contact:

Re: Not killable shadow editing

Post by atrueprincefanfrom18 »

Emiliano Fierro wrote: May 14th, 2020, 5:10 am Hi everyone, I tried to modify one of the shadows, but the options are not displayed in CusPoP
I want to set skill 9 and 10 hit points to this shadow, I guess it depends directly from Kid.dat
I don't know about skill, but I think the hit points can be altered using F2 of Apoplexy or CusPoP. Maybe David can help changing skill Level? :P
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: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: Not killable shadow editing

Post by David »

Emiliano Fierro wrote: May 14th, 2020, 5:10 am Hi everyone, I tried to modify one of the shadows, but the options are not displayed in CusPoP
Indeed, CusPoP has no options related to the shadow at all, except for the guard types and the DAT file names.
It's strange how they were left out, and how I haven't noticed that before.
Emiliano Fierro wrote: May 14th, 2020, 5:10 am I want to set skill 9 and 10 hit points to this shadow, I guess it depends directly from Kid.dat
You need to hex-edit PRINCE.EXE.

For PoP v1.0, the codes are:
Search: C7 06 68 43 03 00 B8 04 00
Change: 03 to new skill, 04 to new hitpoints (both in hex).

The relevant part of the disassembly:

Code: Select all

seg002:0029 C7 06 68 43 03 00          mov  guard_skill, 3
seg002:002F B8 04 00                   mov  ax, 4
seg002:0032 A3 58 4C                   mov  guardhp_max, ax
seg002:0035 A3 6A 59                   mov  guardhp_curr, ax
seg002:0038 A3 4A 4C                   mov  guardhp_delta, ax
User avatar
Emiliano
Wizard Scribe
Wizard Scribe
Posts: 718
Joined: July 31st, 2019, 8:53 pm
Location: Mexico
Contact:

Re: Not killable shadow editing

Post by Emiliano »

Thanks David, I will edit it
65536
Post Reply