I'm starting with level 1 events. I have to check if they are already implemented in princehack.xml.
Level 1 events:
Code: Select all
07e2:4b2d a3 98 4c mov [4c98],ax
07e2:4b30 a3 f2 5f mov [5ff2],ax
07e2:4b33 83 3e 9e 0f 01 cmp word ptr [0f9e],0001 <-- level where the kid starts crouching
07e2:4b38 75 22 jne 4b5c
(offsets are p0:0x4c2d, u0:0x62dd, p3:0x50b5, u3:0x57f5, p4:0x4b71, u4:0x5ca1)
and replace
01 for level where the kid starts crouching
Code: Select all
07e2:61cb 83 3e aa 4c 00 cmp word ptr [4caa],0000
07e2:61d0 74 30 je 6202
07e2:61d2 83 3e 9e 0f 01 cmp word ptr [0f9e],0001 <-- level where the kid music is played after loading
07e2:61d7 75 29 jne 6202
07e2:61d9 9a 99 72 79 0c call 0c79:7299
(offsets are p0:0x62cb, u0:0x797b, p3:0x675f, u3:0x6e9f, p4:0x621b, u4:0x734b)
and replace
01 for level where the kid music is played after loading
---------------------
xml hacks are:
Code: Select all
<hack name="Hack name here">
<offset file="p0" value="0x62cb"/>
<offset file="u0" value="0x797b"/>
<offset file="p3" value="0x675f"/>
<offset file="u3" value="0x6e9f"/>
<offset file="p4" value="0x621b"/>
<offset file="u4" value="0x734b"/>
<check codes="83 3e .. .. .. 74 .. 83 3e .. .."/>
<read default="01" name="level where the kid music is played after loading" type=""/>
</hack>
<hack name="Hack name here">
<offset file="p0" value="0x4c2d"/>
<offset file="u0" value="0x62dd"/>
<offset file="p3" value="0x50b5"/>
<offset file="u3" value="0x57f5"/>
<offset file="p4" value="0x4b71"/>
<offset file="u4" value="0x5ca1"/>
<check codes="a3 .. .. a3 .. .. 83 3e .. .."/>
<read default="01" name="level where the kid starts crouching" type=""/>
</hack>