Platform (Keen 6) new cache value???

Anything related to Keen Modding.
Post Reply
User avatar
szemigi
Posts: 707
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Platform (Keen 6) new cache value???

Post by szemigi »

Levellass made this patch for Keen 10: Mirror Menace, but I'm in trouble as I can't count or realize what the new sprite cache is since she didn't mention it. So help me:

Code: Select all

#Change pointers
%patch $E986 $01FAW #Platform up (At $E61A)
%patch $E988 $01FAW #Platform right (At $E61A)
%patch $E98A $01FAW #Platform down (At $E61A)
%patch $E98C $01FAW #Platform left (At $E61A)
%patch $E990 $020DW #Falling Platform (At $E62D)
%patch $E992 $0216W #Only-Easy sitting Platform (At $E636)
%patch $E994 $0220W #Easy\Medium sitting Platform (At $E640)
%patch $E996 $022AW #Easy\Medium\Hard sitting Platform (At $E64A)
%patch $E998 $0233W #Path Platform up (At $E653)
%patch $E99A $0233W #Path Platform right (At $E653)
%patch $E99C $0233W #Path Platform down (At $E653)
%patch $E99E $0233W #Path Platform left (At $E653)
%patch $E9A0 $0246W #Sneaky Platform (At $E666)

#Compact Platform initiation codes (Frees $E5D4 - $E619)
%patch $E61A $8B $46 $FA $05 $FFE5W  $50 $57 $56 $9A $0EFC1116RL     $83 $C4 #HV plats
             $06 $EB $43
%patch $E62D $57 $56 $9A $0EFC13C2RL     $EB $37			     #Dropping plat
%patch $E636 $83 $3E $75A8W  $01 $7E $0D $E9 $0287W  $83 $3E $75A8W  $02 $7E #Sitting plats
             $03 $E9 $027DW  $57 $56 $9A $0EFC14E6RL     $EB $1A
%patch $E653 $8B $46 $FA $05 $FFDCW  $50 $57 $56 $9A $0EFC1539RL     $83 $C4 #Goplat
             $06 $EB $0A
%patch $E666 $57 $56 $9A $0EFC17A4RL     $83 $C4 $04 $B8 $2BF3RW $8A $16 $28 #Sneaky plat
             $76 $8E $C0 $26 $08 $16 $00EDW  $E9 $0246W

#Change Platform animations to match new cache:
%patch $32B26 $00EDW $00EDW #Dropping
%patch $32B44 $00EDW $00EDW
%patch $32B62 $00EDW $00EDW
%patch $32B9E $00EDW $00EDW #Goplat
%patch $32B08 $00EDW $00EDW #Horizontal-Vertical Platform
%patch $32B80 $00EDW $00EDW #Sitting
%patch $32BBC $00EDW $00EDW #Sneaking
%patch $32BDA $00EDW $00EDW
%patch $32BF8 $00EDW $00EDW
What is the offset of the new sprite cache?

EDIT: I forgot to mention I'm using this patch as well that was also made by Levellass:

Code: Select all

#Switch pointer
%patch $E9AC $00B4W #At $E4D4

#Initiation code (Use unused platform cache)
%patch $E4D4 $57 $56 $9A $069A0B54RL     $83 $C4 $04 $C7 $06 $CD23W  $0001W
             $E9 $03E0W

#Spawn code = $069A0B54RL (Close fit! Whew!)
%patch $74F4 $55 $8B $EC $33 $C0 $50 $9A $069A1E25RL     $83 $C4 $02 $8B $1E
             $66 $A9 $C7 $07 $0012W  $C7 $47 $02 $0002W  
             $8B $46 $06 $B1 $08 $D3 $E0 $89 $47 $0A $8B $46 $08 $D3 $E0 $89
             $47 $3E $89 $47 $0C $B8 $0004W  $50 $53 $9A $08F41219RL     $83
             $C4 $04 $5D $CB

#Switch off action: =$0004W
%patch $30D34 $0152W $0152W $0000W $0000W $0000W $0020W $0000W $0000W
              $0000059DRL   $037B028DRL   $08F4180ARL   $0004W

#Switch on action: =$00BCW
%patch $30DEC $0153W $0153W $0000W $0000W $0000W $0020W $0000W $0000W
              $0000059DRL   $037B0272RL   $08F4180ARL   $00BCW

#Switch bust action: =$00DAW
%patch $30E0A $0154W $0154W $0002W $0000W $0000W $0000W $0000W $0000W
              $00000000L    $00000000L    $08F4180ARL   $0000W

#Keen flip action =$01E3W
%patch $30F13 $0076W $0076W $0000W $0000W $0000W $0020W $0000W $0000W
              $00000000L    $00000000L    $08F4180ARL   $089AW

#Switch on collision, bust if shot, flip if up arrow+Keen = $037B0272RL (NEEDS FOLLOWING CODE!)
%patch $3A22 $55 $8B $EC $56 $8B $76 $08 $83 $3C $02 $75 $3C $83 $3E $A960W
             $00 $75 $32 $C7 $06 $7598W  $0000W  $EB $19

#Switch off collision, bust if shot, flip if up arrow+Keen, also smashable = $037B028DRL
%patch $3A3D $55 $8B $EC $56 $8B $76 $08 $83 $3C $02 $75 $21 $83 $3E $A960W
             $00 $75 $1A $C7 $06 $7598W  $0001W  $C7 $44 $1C $01E3W  $B8 $0015W
                 $50 $9A $183B09F1RL     $83 $C4 $02 $5E $5D $CB $83 $3C $03
             $75 $07 $B8 $00DAW  $50 $E9 $CE69W  $5E $5D $CB

#Switch behavior: change action epending on LasOn variable (Switch when flipped) = $0000059DRL
%patch $059D $55 $8B $EC $56 $8B $76 $06 $83 $3E $7598W  $00 $74 $07 $C7 $44
             $1C $00BCW  $EB $05 $C7 $44 $1C $0004W  $5E $5D $CB

#Change cache
%patch $32436 $0152W #Platforms cache start
%patch $32486 $0154W #Cache end
Post Reply