Patch:F10 N Cheat

From KeenWiki
Jump to navigation Jump to search

The F10 + N or no clipping cheat in Keen Galaxy is a cheat that changes the player's clipping from 1 to 0 and back again. That is, when the cheat is on the player can pass through all solid tiles. (and will rapidly fall out of the level.) It was developed for playtesting but is useful for players to make shortcuts through a level.


Window

This is the cheat window. Notice that both ON and OFF cheats use the same window, but different texts.

Keen 4

#No clipping window
%patch $75F7 [$0003W] #Window height
%patch $75FB [$0012W] #Window width
%patch $7611 [$054AW] #Text called from (ON)
%patch $7628 [$0559W] #Text called from (OFF)

#Text
%patch $2F3BA "No clipping ON" $00
%patch $2F3C9 "No clipping OFF" $00

Keen 5

#No clipping window
%patch $75AC [$0003W] #Window height
%patch $75B0 [$0012W] #Window width
%patch $75C6 [$04C6W] #Text called from
%patch $75DD [$04D5W] #Text called from

#Text
%patch $30806 "No clipping ON" $00
%patch $30815 "No clipping OFF" $00

Keen 6

#No clipping window
%patch $73CC [$0003W] #Window height
%patch $73D0 [$0012W] #Window width
%patch $73E6 [$04C2W] #Text called from (ON)
%patch $73FD [$04C2W] #Text called from (OFF)

#Text
%patch $311F2 "No clipping ON" $00
%patch $31201 "No clipping OFF" $00


Disable ON window

This patch causes the OFF window to be displayed when the F10 - N cheat is used, every time. This means that the player cannot use the clipping cheat to turn off their clipping.

Keen 4

#Disable F10 - N ON window
%patch $760E $EB

Keen 5

#Disable F10 - N ON window
%patch $75C3 $EB


Disable OFF window

This patch causes the ON window to be displayed when the F10 - N cheat is used, every time. This means that once the palyer has turned off clipping they cannot turn it on again.

Keen 4

#Disable F10 - N OFF window
%patch $760E $90 $90

Keen 5

#Disable F10 - N OFF window
%patch $75C3 $90 $90


Key that activates cheat

This patch alters what key activates the no clipping cheat. (See Patch:Scancodes.) By default this is 'n' Setting this to $C647 will disable the cheat.

Keen 4

#F10 + N key
%patch $75EC {$C6A9W}

Keen 5

#F10 + N key
%patch $75A1 {$BD11W}


Disable

This patch disables the F10 N cheat entirely.

Keen 4

#Disable F10-N (Free $75EC-7667)
%patch $75EA $EB $63

Keen 4

#Disable F10-N (Free $75A1-7603)
%patch $759F $EB $63

Keen 6

#Disable F10-N (Free $73C1-7423)
%patch $73BF $EB $63


Disable F10 - N, F10 - V and F10 - S

As well as disabling F10-N, this disables the F10-V and F10-S cheats. It frees up significant code space for other patches.

Keen 4

#Disable F10 - N F10-S AND F10-V (Free $75EC-7760)
%patch $75EA $E9 $0174W

Keen 5

#Disable F10 - N F10-S AND F10-V (Free $75A1-7715)
%patch $759F $E9 $0174W


Disable F10 - N, F10 - V, F10 - S and F10 - W

As well as disabling F10-N, this disables the F10-V, F10-S and F10-W cheats. It frees up significant code space for other patches.

Keen 4

#Disable F10 - N F10-S, F10-V AND F10 - W (Free $75EC-77F9)
%patch $75EA $E9 $020DW

Keen 5

#Disable F10 - N F10-S, F10-V AND F10 - W (Free $75A1-777AE)
%patch $759F $E9 $020DW


Complete cheat code

This is the complete code for the F10-N cheat. The first line checks to see if the N key is being pressed. At the end of the first line and second line the text window is drawn. On the third line Keen's clipping is checked. If it is not zero then the clipping off text is used and Keen's clipping set to 0. If it is zero the clipping on text is used and Keen's clipping set to 1. The game then waits for a key and clears the screen.

Keen 4

#Complete F10-N cheat code
%patch $75EA $83 $3E {$C6A9W}  [$00] {$74} $5E $9A $1D060999RL     $B8 [$0003W]  $50
             $B8 [$0012W]  $50 $9A $19311070RL     $83 $C4 $04 $8B $1E $A7D6W 
             $83 $7F {$06} [$00] {$74} $17 $B8 [$054AW]  $50 $9A $19310E1FRL     $83
             $C4 $02 $8B $1E $A7D6W  $C7 $47 $06 [$0000W]  $EB $15 $B8 [$0559W]
             $50 $9A $19310E1FRL     $83 $C4 $02 $8B $1E $A7D6W  $C7 $47 $06
             [$0001W]  $9A $1D060A9BRL     $9A $14600EDFRL     $B8 $0001W  $5F
             $5E $8B $E5 $5D $CB

Keen 5

#Complete F10-N cheat code
%patch $759F $83 $3E {$BD11W}  [$00] {$74} $5E $9A $1E000995RL     $B8 [$0003W]  $50
             $B8 [$0012W]  $50 $9A $1A2B106ERL     $83 $C4 $04 $8B $1E $9E3EW
             $83 $7F {$06} [$00] {$74} $17 $B8 [$054AW]  $50 $9A $1A2B0E1DRL     $83
             $C4 $02 $8B $1E $9E3EW  $C7 $47 $06 [$0000W]  $EB $15 $B8 [$0559W]
             $50 $9A $1A2B0E1DRL     $83 $C4 $02 $8B $1E $9E3EW  $C7 $47 $06
             [$0001W]  $9A $1E000A97RL     $9A $155A0EDCRL     $B8 $0001W  $5F
             $5E $8B $E5 $5D $CB

Keen 6

#Complete F10-N cheat code
%patch $73BF $83 $3E {$C837W}  [$00] {$74} $5E $9A $1CF709A3RL    $B8 [$0003W]  $50
             $B8 [$0012W]  $50 $9A $18F81070RL    $83 $C4 $04 $8B $1E $A964W
             $83 $7F {$06} [$00] {$74} $17 $B8 [$04C2W]  $50 $9A $18F80E1FRL    $83
             $C4 $02 $8B $1E $A964W  $C7 $47 $06 [$0000W]  $EB $15 $B8 [$04D1W]
             $50 $9A $18F80E1FRL    $83 $C4 $02 $8B $1E $A964W  $C7 $47 $06
             [$0001W]  $9A $1CF70AA5RL    $9A $14130EE0RL    $B8 $0001W  $5F
             $5E $8B $E5 $5D $CB