Level/game timer

Request patches for Keens 4-6.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Level/game timer

Post by levellass »

Aaand done! This patch adds the timer to the Keen 6 status window by removing the 'location' box. It assumes you're not going to need the map much and that you use the 'lose point when you die' patch.

Code: Select all

#Add new counter for level time (Minutes and seconds)
%patch $7A78 $33 $C0 $50 $B8 $000AW  $50 $B8 $002CW  $50 $B8 $0029W  $50 $B8 #Black box Ax2C at 29,AF
             $00AFW  $50 $9A $1CF70DEDRL     $83 $C4 $0A $C7 $06 $C3 $A6     #Text at 1E,9F
         $001EW  $C7 $06 $C1 $A6 $009FW  $C7 $06 $BF $A6 $0040W  $B8 $058FW
             $50 $9A $18F80EBDRL     $83 $C4 $02 $A1 $7558W  $99 $52 $50 $B8 #Minutes timer at 2A,B0
             $0029W  $50 $B8 $0002W  $50 $B8 $002AW  $50 $B8 $00B0W  $50 $0E
             $E8 $FE3BW  $83 $C4 $0C $A1 $7556W  $99 $52 $50 $B8 $0029W  $50 #Seconds timer at 2A,C8
             $B8 $0002W  $50 $B8 $002AW  $50 $B8 $00C8W  $50 $0E $E8 $FE1EW
             $83 $C4 $0C $EB $13

#Text
%patch $312BF "TIME" $0A "  :" $00

#Count level time in Keen's behavior -NO MAP TILE BEHAVIOR
%patch $8D94 $FF $36 $64 $A9 $9A $0AA217C3RL     $83 $C4 $02 $9A $0CA60A18RL
             $EB $0E

#Timer code, count minutes, seconds, max out at 99:59
%patch $D478 $55 $8B $EC $FF $06 $755CW  $83 $3E $755CW  $23 $72 $0A $FF $06
             $7556W  $C7 $06 $755CW  $0000W  $83 $3E $7556W  $3C $72 $11 $83
             $3E $7558W  $63 $73 $04 $FF $06 $7558W  $C7 $06 $7556W  $0000W  
             $5D $CB

#Store Keen's score,reset Keen's time on level load
%patch $67D4 $33 $C0 $A3 $7556W  $A3 $7A22W  $A3 $7558W  $A1 $7588W  $A3 $7584W
                 $A1 $758AW  $A3 $7586W  $EB $37
User avatar
Bubzrulz
Posts: 208
Joined: Thu Dec 22, 2016 12:37 pm
Location: N.S.W AUSTRAILA

Re: Level/game timer

Post by Bubzrulz »

sweet now i need to work out why the keen reset score when dies patch stopped working
User avatar
Bubzrulz
Posts: 208
Joined: Thu Dec 22, 2016 12:37 pm
Location: N.S.W AUSTRAILA

Re: Level/game timer

Post by Bubzrulz »

soo no matter what i do the reset score if die patch dont work even if i delete all other patches execpt whats needed still dont work help is needed.. here is the patch file patch
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Level/game timer

Post by levellass »

The problem is in this line here:

Code: Select all

#Auto restart level, decrements lives
%patch $645C $9A $141308A9RL     $5F $5E $8B $E5 $5D $CB
This is put BEFORE the score reload patch and skips it. What you want to do is delete that line (And the one above it) and replace it with this new combined patch:

Code: Select all

#Call reset Keen's score on death- auto restart level
%patch $645C $9A $1A502793RL     $BF $0001W   $9A $141308A9RL     $5F $5E $8B $E5 $5D $CB
User avatar
Bubzrulz
Posts: 208
Joined: Thu Dec 22, 2016 12:37 pm
Location: N.S.W AUSTRAILA

Re: Level/game timer

Post by Bubzrulz »

cheers works thank you yet again
Post Reply