PATCH: Keen 4-style flags in Keen 1

Completed patches for Keen1.
Post Reply
User avatar
adurdin
Site Founder
Posts: 549
Joined: Fri Aug 29, 2003 11:27 pm
Location: Edinburgh, Scotland
Contact:

PATCH: Keen 4-style flags in Keen 1

Post by adurdin »

The following patch does two things:
It allows you to place "flag" markers on the map for each level, after which, when the level is done, the tile under the flag marker will be changed to a different tile.
Also, this patch allows you to use blocking level markers (as are used on the map for level 1, for example) anywhere on the map, and these are removed when the level is done, without changing the tile underneath. One result of this is that you cannot then use these blocking level markers to mark the top-left tile of the level entrance itself (try doing level 7 with this patch and you'll see what I mean).

Code: Select all

%ext ck1
%version 1.31

%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 $4E $00 $43 $43 $26 $C7 $07 $4F $00 $03 $1E $08 $6C $03
%patch $7DB0  $1E $08 $6C $26 $C7 $07 $51 $00 $4B $4B $26 $C7 $07 $50 $00 $07
%patch $7DC0  $EB $3C $06 $C4 $1E $48 $6C $89 $F0 $D1 $E0 $01 $C3 $26 $C7 $07
%patch $7DD0  $4D $00 $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 $CD $00 $07 $49 $47
%patch $7E00  $47 $46 $E9 $1F $FF $EB $4A

%end
To make a flag marker for level n, you need to put a sprite on the map with number 100 + n; for example, to make a flag marker for level 3, I'd put a sprite number 103 on the map. Be aware that these should only be placed on an area where Keen cannot walk, or they'll act like teleporters if he walks over them and presses Alt.

With this patch at the moment, the flag markers will change to tile $CD (205, the teddy bear) when done. To change this, modify the two bytes $CD $00 in the second-last line to the tile number you want.

Do not use this patch with the "change Done tiles" patch; if you want to change the "Done" tiles with this patch, you need to change the tile numbers $4E $00 and $4F $00 in the line for $7DA0, the numbers $51 $00 and $50 $00 in the line for $7DB0, and the number $4D $00 in the line for $7DD0 to the tile numbers you'd prefer.
User avatar
adurdin
Site Founder
Posts: 549
Joined: Fri Aug 29, 2003 11:27 pm
Location: Edinburgh, Scotland
Contact:

Post by adurdin »

Here's a quick demonstration of the patch. Create a new folder with Keen 1 (v1.31) in it, unzip this file into that folder, overwriting as needed, and run go.bat.
Post Reply