Patch:F10 J Cheat

From KeenWiki
Jump to: navigation, 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.

Patch: Keen 4
#Jump cheat
%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

Patch: Keen 5
#Jump cheat (F10 + J)
%patch $755F $4A9W
#Text called from (On)
%patch $756D $4B7W
#Text called from (Off)
#Text
%patch $307E9 "Jump cheat ON" $00 %patch $307F7 "Jump cheat OFF" $00

Patch: 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

Patch: 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.

Patch: 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

Patch: 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.

Patch: Keen 4
#Disable jump cheat
%patch $7586 $EB

Patch: 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 will disable the cheat.

Patch: Keen 4
#Jump cheat key
%patch $7583 $C68FW


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.

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