Patch:F10 J Cheat

From KeenWiki
Jump to navigation Jump to search

The F10 + J or jump cheat in Keen Galaxy and Dreams allows Keen to 'fly' while jumping. In Keen Dreams Keen will fall if he hits his head on a ceiling. This can be turned on and off.


Cheat window

This is the cheat window itself and how it is displayed.

Keen 4

#Jump cheat (F10 + J)
%patch $7593 [$0003W] #Window height
%patch $7597 [$0012W] #Window width
%patch $75AA [$052DW] #Text called from (ON)
%patch $75B8 [$053BW] #Text called from (OFF)

#Text
%patch $2F39D "Jump cheat ON" $00
%patch $2F3AB "Jump cheat OFF" $00

Keen 5

#Jump cheat (F10 + J)
%patch $7548 [$0003W] #Window height
%patch $754C [$0012W] #Window width
%patch $755F [$04A9W] #Text called from (On)
%patch $756D [$04B7W] #Text called from (Off)

#Text
%patch $307E9 "Jump cheat ON" $00
%patch $307F7 "Jump cheat OFF" $00

Keen 6

#Jump cheat (F10 + J)
%patch $7368 [$0003W] #Height
%patch $736C [$0012W] #Width
%patch $737F [$04A4W] #Text called from (On)
%patch $738D [$04B3W] #Text called from (Off)

#Text
%patch $311D5 "Jump cheat ON" $00
%patch $311E3 "Jump cheat OFF" $00

Keen Dreams

#Jump cheat
%patch $3862 [$0003W] #Height of Jump cheat textbox
%patch $3866 [$0012W] #Width of box
%patch $3879 [$00D3W] #Text called from (Off)
%patch $387E [$00E1W] #Text called from (On)

#Text
%patch $23B43 "Jump cheat ON" $00
%patch $23B51 "Jump cheat OFF" $00


Complete window code

This is the complete code for both the window and patch. In Keen 4 the first line contains the condition needed to be met to activate the cheat. This is the J key being pressed. Also on this line the jump mode variable is switched. (If 0 it becomes 1, if 1 it becomes 0.) On the second line the window's size is set up. Line 3 checks to see whether or not jump cheat is already enabled by checking the jump mode variable; this will change what text appears in the window, in lines 3 and 4. Line 5 waits for a key and finishes up the cheat.

In Keen Dreams things are handled a little differently; there is a single check and then the jump mode variable is set on the first line.The window's size is set on line 2 and on line 3 the jump variable checked and the right text displayed.

Keen 4

#Jump cheat window code
%patch $7581 $83 $3E {$C68FW}  [$00] {$74} $4E $83 $36 {$C62BW}  [$01] $9A $1D060999RL
                 $B8 [$0003W]  $50 $B8 [$0012W]  $50 $9A $19311070RL     $83 $C4
             $04 $83 $3E {$C62BW}  [$00] {$74} $0E $B8 [$052DW]  $50 $9A $19310E1FRL
                 $83 $C4 $02 $EB $0C $B8 [$053BW]  $50 $9A $19310E1FRL     $83
             $C4 $02 $9A $1D060A9BRL     $9A $14600EDFRL     $B8 $0001W  $5F
             $5E $8B $E5 $5D $CB

Keen 5

#Jump cheat window code
%patch $7536 $83 $3E {$BCF7W}  [$00] {$74} $4E $83 $36 {$BC93W}  [$01] $9A $1E000995RL
                 $B8 [$0003W]  $50 $B8 [$0012W]  $50 $9A $1A2B106ERL     $83 $C4
             $04 $83 $3E {$BC93W}  [$00] {$74} $0E $B8 [$04A9W]  $50 $9A $1A2B0E1DRL
                 $83 $C4 $02 $EB $0C $B8 [$04B7W]  $50 $9A $1A2B0E1DRL     $83
             $C4 $02 $9A $1E000A97RL     $9A $155A0EDCRL     $B8 $0001W  $5F
             $5E $8B $E5 $5D $CB

Keen Dreams

#Jump cheat window code
%patch $384F $83 $3E {$E4D2W}  [$00] {$74} $42 $81 $36 {$7012W}  [$0001W]  $9A $0CA507D5RL
                     $B8 [$0003W]  $50 $B8 [$0012W]  $50 $9A $11FA1C64RL     $83
             $C4 $04 $83 $3E {$7012W}  [$00] {$74} $05 $B8 [$00D3W]  $EB $03 $B8 [$00E1W]
                 $50 $9A $11FA1A1ERL     $44 $44 $9A $0CA508C0RL     $9A
         $0FE40C8ERL     $B8 $0001W  $E9 $00F4W


Disable

These patches disable the F10-J cheat.

Keen 4

#Disable jump cheat
%patch $7586 $EB

Keen 5

#Disable jump cheat
%patch $753B $EB

Keen 6

#Disable jump cheat
%patch $735B $EB


Key that activates cheat

This patch alters what key activates the jump cheat. (See Patch:Scancodes.) By default this is 'j' Setting this to $C647\$BC99 (Keen 4\5) will disable the cheat.

Keen 4

#Jump cheat key
%patch $7583 {$C68FW}

Keen 5

#Jump cheat key
%patch $7538 {$BCF7W}

Keen 6

#Jump cheat key
%patch $7358 {$C81DW}


Jump cheat always on

This patch allows Keen to jump as if he has the F10 J cheat on all the time. The F10 J cheat will still work, but will not change anything.

Keen 4

#Keen has no max jump height
%patch $C3B2 $EB $0A
%patch $D49D $EB $30


Window has a different border

In Keen Dreams it is possible to make certain windows use a different set of 8x8 tiles for their border. This patch is on the 'text windows' page.