Patch:Done markers

From KeenWiki
Jump to navigation Jump to search

This page covers patches relating to the Keen Vorticons "DONE" markers that appear over completed levels. Related patches are Patch:Teleporter, Patch:Map (Keen 1) Patch:Map (Keen 2) and Patch:Map (Keen 3). For markers used in other episodes see Patch:Done sign and Patch:Flags.


Change tiles used

There are five tiles used as done markers, four for the big 2x2 marker, and one for the small, 1x1 marker. These are simple enough to change. Here are the default values.

Keen 1

#Change the Done tile markers
%patch $7D88 [$004DW] #Small marker
%patch $7DFC [$004FW] #Big marker top left
%patch $7E14 [$0050W] #Big marker top right
%patch $7E2A [$0051W] #Big marker bottom left
%patch $7E43 [$004EW] #Big marker bottom right

Keen 2

#Change the Done tile markers
%patch $8193 [$004DW] #Small marker
%patch $8207 [$004FW] #Big marker top left
%patch $821F [$0050W] #Big marker top right
%patch $8235 [$0051W] #Big marker bottom left
%patch $824E [$004EW] #Big marker bottom right

Keen 3

#Change the Done tile markers
%patch $8B31 [$0038W] #Small marker
%patch $8BAA [$0034W] #Big marker top left
%patch $8BC3 [$0035W] #Big marker top right
%patch $8BDA [$0036W] #Big marker bottom left
%patch $8BF4 [$0037W] #Big marker bottom right


Disable markers

This patch disables a done marker tile; the tile is not replaced, though the level becomes unplayable. Each line is independent and can be used with or without the others, as well as with the "change tiles" patch above. (Though for safety, it should follow the change patch, not precede it.)

Keen 1

#Change the Done tile markers
%patch $7D85 $90 $90 $90 $90 $90 #Small marker
%patch $7DF5 $90 $90 $90 $90 $90 #Big marker top left
%patch $7E11 $90 $90 $90 $90 $90 #Big marker top right
%patch $7E27 $90 $90 $90 $90 $90 #Big marker bottom left
%patch $7E40 $90 $90 $90 $90 $90 #Big marker bottom right


"Flag" markers

This patch lets the done markers function as normal, replacing a level entry point, but a "flag" tile will replace any "marked" tiles on the map. This is not really a flag as such, since it is tile-based and not sprite-based, but more like the mechanism that removes map barriers in Keen Galaxy.

A tile is marked by placing a sprite of value [level number] + 100 over it. (For level 1, sprite 101.) These should be somewhere Keen cannot walk (Blocking tiles, off-limit ground), or he runs risk of mistakenly trying to "enter the flag level" or using it as a teleport.

There are six tiles that can be changed here, much like the patches above. The first five are the same as the DONE tiles above, and in the same order (small marker, big top left...). The last value is the flag tile, the tile that will replace any marked tiles.

This patch is obviously incompatible with the above change/disable tile patches. It has its own disable patches that here have been hashed out.

Keen 1

#Flag-done tiles patch:
%patch $7C07  $83 $EC $20 
%patch $7D13              $31 $F6 $C4 $3E $4C $6C $8B $16 $08 $6C $A1 $58 $6C 
%patch $7D20  $F7 $E2 $89 $C1 $09 $C9 $75 $03 $E9 $DA $00 $26 $8B $05 $C7 $46 
%patch $7D30  $E0 $00 $00 $A9 $00 $80 $74 $05 $C7 $46 $E0 $01 $00 $25 $FF $7F 
%patch $7D40  $75 $03 $E9 $B9 $00 $89 $46 $FC $3D $10 $00 $7C $03 $E9 $85 $00 
%patch $7D50  $89 $C3 $D1 $E3 $83 $BF $A4 $AA $00 $75 $03 $E9 $A0 $00 $26 $C7 
%patch $7D60  $05 $00 $00 $83 $7E $E0 $00 $74 $03 $E9 $92 $00 $89 $FB $43 $43 
%patch $7D70  $26 $8B $07 $25 $FF $7F $3B $46 $FC $75 $47 $26 $C7 $07 $00 $00 
%patch $7D80  $03 $1E $08 $6C $03 $1E $08 $6C $26 $C7 $07 $00 $00 $4B $4B $26 
%patch $7D90  $C7 $07 $00 $00 $06 $C4 $1E $48 $6C $89 $F0 $D1 $E0 $01 $C3 $26 
%patch $7DA0  $C7 $07 [$004EW]  $43 $43 $26 $C7 $07 [$004FW]  $03 $1E $08 $6C $03 
%patch $7DB0  $1E $08 $6C $26 $C7 $07 [$0051W]  $4B $4B $26 $C7 $07 [$0050W]  $07 
%patch $7DC0  $EB $3C $06 $C4 $1E $48 $6C $89 $F0 $D1 $E0 $01 $C3 $26 $C7 $07 
%patch $7DD0  [$004DW]  $07 $EB $29 $3D $65 $00 $7C $24 $3D $74 $00 $7F $1F $2D 
%patch $7DE0  $64 $00 $89 $C3 $D1 $E3 $83 $BF $A4 $AA $00 $74 $11 $06 $C4 $1E 
%patch $7DF0  $48 $6C $89 $F0 $D1 $E0 $01 $C3 $26 $C7 $07 [$00CDW]  $07 $49 $47 
%patch $7E00  $47 $46 $E9 $1F $FF $EB $4A

Include any of these patches to disable a tile. You can see they start at the $26 $C7 preceding a tile's value, so if you want, you can write them into the main patch. Otherwise, the must follow(??) the flag patch.

Keen 1

#Change the Done tile markers
%patch $7D9F $90 $90 $90 $90 $90 #Small marker
%patch $7DA6 $90 $90 $90 $90 $90 #Big marker top left
%patch $7DB4 $90 $90 $90 $90 $90 #Big marker top right
%patch $7DBA $90 $90 $90 $90 $90 #Big marker bottom left
%patch $7DCD $90 $90 $90 $90 $90 #Big marker bottom right