Level/game timer

Request patches for Keens 4-6.
User avatar
Bubzrulz
Posts: 208
Joined: Thu Dec 22, 2016 12:37 pm
Location: N.S.W AUSTRAILA

Level/game timer

Post by Bubzrulz »

Just a question is there a way to do a level timer and full game timer and have it viewable in stat box in game i have disable a lot in it i just think that would add another dimension to the game trt and bet score and time and have full game time show up in high score level too Here is my stat box atm Image
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Level/game timer

Post by levellass »

Yes, I have done something similar in my 'Kubed' mods. However it would be something like 'seconds' instead of hours:minutes:seconds; THAT would be a very complicated patch. If that still sounds ok then I should be able to set up a patch, though I might need a list of the statusbox patches you're using.
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 »

levellass wrote:Yes, I have done something similar in my 'Kubed' mods. However it would be something like 'seconds' instead of hours:minutes:seconds; THAT would be a very complicated patch. If that still sounds ok then I should be able to set up a patch, though I might need a list of the statusbox patches you're using.

yes it sounds great thanks here is the patches :

Code: Select all

##############################
#    STATUS WINDOW PATCHES   #
##############################



#status window colour and text colour (red and blue)
%patch $7CC9 $0004W

#Lives text center
%patch $7FC2 $00A0W #Horizontal
%patch $7FC8 $0080W #Vertical
%patch $7FCB $0655W #Text read from
%patch $2F4C5 "LIVES" $00

#Counter
%patch $7FEF $7A6AW #What to track
%patch $7FF5 $0029W #start tile
%patch $7FF9 $0003W #Number of digits
%patch $7FFD $0080W #Vertical AND horizontal position (Both are equal!)

%patch $7FE6 $90 $90 $90 $90 $90 #Background rectangle

#one up
%patch $7DC8 $003DW #Vertical
%patch $7DCE $00B0W #Horizontal
%patch $7DD4 $0040W #Maximum text width
%patch $7DD7 $0626W #Text read from
%patch $2F496 "1UP AT" $00


#Don't draw (Rescued text)
%patch $7E32 $90 $90 $90 $90 $90 #Rescued text
%patch $7E4D $90 $90 $90 $90 $90 #Background rectangle
%patch $7E6D $90 $90 $90 $90 $90 #Rescued tiles

#Don't display any Wetsuit stuff
%patch $8058 $EB $4D

#Don't draw (easy hard and so on stuff)
%patch $7E96 $90 $90 $90 $90 $90 #Level text
%patch $7EB2 $90 $90 $90 $90 $90 #Background rectangle
%patch $7EE4 $90 $90 $90 $90 $90 #Easy text
%patch $7EF2 $90 $90 $90 $90 $90 #Medium text
%patch $7F00 $90 $90 $90 $90 $90 #Hard text

#Don't draw (Level name)
%patch $7CFA $90 $90 $90 $90 $90 #Location text
%patch $7D16 $90 $90 $90 $90 $90 #Background
%patch $7D64 $90 $90 $90 $90 $90 #Level name

##Drops text
%patch $800C $0087W #Horizontal
%patch $8012 $0028W #Vertical
%patch $8015 $065BW #Text read from
%patch $2F4CB "DROPS" $00



#Counter
%patch $803C $7A5AW #What to track
%patch $8042 $0029W #Start tile
%patch $8046 $0002W #Number of digits
%patch $804A $0029W #Vertical position
%patch $804E $00B0W #Horizontal position

#No Background rectangle
%patch $8033 $90 $90 $90 $90 $90

##Move press
%patch $80B2 $008CW #Vertical position
%patch $80BE $0078W #Horizontal position
%patch $80D0 $0094W #Vertical position
%patch $80DC $0078W #Horizontal position
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Level/game timer

Post by levellass »

This patch adds a timer in the form of MM:SS that maxes out at 99:59. I moved your drops counter to fit it in the status window, you may want to move it some more.

The 'timer' text also provides the ':' in the timer, fiddling with the text may move that. This patch should totally replace your status window patches PLUS it should come AFTER the 'reset Keen's score on dying' patch, since it tweaks that a bit. (If you do NOT do this the game will crash.)

Code: Select all

##############################
#    STATUS WINDOW PATCHES   #
##############################

#Add new counter for level time (Minutes and seconds)
%patch $7CE4 $33 $C0 $50 $B8 $000AW  $50 $B8 $002CW  $50 $B8 $0029W  $50 $B8 #Black box Ax2C at 29,AF
             $00AFW  $50 $9A $1D060DE3RL     $83 $C4 $0A $C7 $06 $35 $A5     #Text at 1E,9F
         $001EW  $C7 $06 $33 $A5 $009FW  $C7 $06 $31 $A5 $0040W  $B8 $0617W
             $50 $9A $19310EBDRL     $83 $C4 $02 $A1 $7A24W  $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 $7A22W  $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 $2F487 "TIME" $0A "  :" $00

#Count level time in Keen's behavior
%patch $8FBA $FF $36 $D6 $A7 $9A $0B8018E9RL $83 $C4 $02 $9A $0D8F08A9RL
             $EB $0E

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

#Store Keen's score,reset Keen's time on level load
%patch $69E3 $33 $C0 $A3 $7A20W  $A3 $7A22W  $A3 $7A24W  $A1 $7A50W  $A3 $7A4CW
                 $A1 $7A52W  $A3 $7A4EW  $EB $37


#status window colour and text colour (red and blue)
%patch $7CC9 $0004W

#Lives text center
%patch $7FC2 $00A0W #Horizontal
%patch $7FC8 $0080W #Vertical
%patch $7FCB $0655W #Text read from
%patch $2F4C5 "LIVES" $00

#Counter
%patch $7FEF $7A6AW #What to track
%patch $7FF5 $0029W #start tile
%patch $7FF9 $0003W #Number of digits
%patch $7FFD $0080W #Vertical AND horizontal position (Both are equal!)

%patch $7FE6 $90 $90 $90 $90 $90 #Background rectangle

#one up
%patch $7DC8 $003DW #Vertical
%patch $7DCE $00B0W #Horizontal
%patch $7DD4 $0040W #Maximum text width
%patch $7DD7 $0626W #Text read from
%patch $2F496 "1UP AT" $00


#Don't draw (Rescued text)
%patch $7E32 $90 $90 $90 $90 $90 #Rescued text
%patch $7E4D $90 $90 $90 $90 $90 #Background rectangle
%patch $7E6D $90 $90 $90 $90 $90 #Rescued tiles

#Don't display any Wetsuit stuff
%patch $8058 $EB $4D

#Don't draw (easy hard and so on stuff)
%patch $7E96 $90 $90 $90 $90 $90 #Level text
%patch $7EB2 $90 $90 $90 $90 $90 #Background rectangle
%patch $7EE4 $90 $90 $90 $90 $90 #Easy text
%patch $7EF2 $90 $90 $90 $90 $90 #Medium text
%patch $7F00 $90 $90 $90 $90 $90 #Hard text

#Drops text
%patch $800C $0067W #Horizontal
%patch $8012 $0029W #Vertical
%patch $8015 $065BW #Text read from
%patch $2F4CB "DROPS" $00

#Counter
%patch $803C $7A5AW #What to track
%patch $8042 $0029W #Start tile
%patch $8046 $0002W #Number of digits
%patch $804A $002AW #Vertical position
%patch $804E $0090W #Horizontal position

#No Background rectangle
%patch $8033 $90 $90 $90 $90 $90

##Move press
%patch $80B2 $008CW #Vertical position
%patch $80BE $0078W #Horizontal position
%patch $80D0 $0094W #Vertical position
%patch $80DC $0078W #Horizontal position
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 »

it still crashes i put the whole patch section at end .. crashed when u leave the 1st level
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Level/game timer

Post by levellass »

Strange, not sure what the problem could be. Can you provide a copy of ALL the patches in your patchfile? Then I can check to see where the problem is.
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 »

here you go

PATCH FILE
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Level/game timer

Post by levellass »

Right, the problem was the 'go to next level' patch which needed to be changed to this:

Code: Select all

#no world map patches .. need  start level patch to be last level added
%patch $6B1E $FF $06 $7A26W  $90 $90 $90
%patch $6B31 $A1 $7A26W  $A3 $7A68W
%patch $6B3D $EB $0A

Alternatively here is the working patchfile: https://dl.dropboxusercontent.com/u/3940020/ROL.PAT
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 well
User avatar
szemigi
Posts: 716
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Re: Level/game timer

Post by szemigi »

Levellass, could you also do this timer patch to Keen 5 and 6? I want it.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Level/game timer

Post by levellass »

That will be a bit tricky since it changes the status screen, if you don't want to lose anything on the status window a new place will have to be found for the code.
User avatar
szemigi
Posts: 716
Joined: Fri Jan 23, 2009 8:06 pm
Location: Hungary
Contact:

Re: Level/game timer

Post by szemigi »

Alright.
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 »

levellass wrote: Sat Jan 28, 2017 4:13 pm This patch adds a timer in the form of MM:SS that maxes out at 99:59. I moved your drops counter to fit it in the status window, you may want to move it some more.

The 'timer' text also provides the ':' in the timer, fiddling with the text may move that. This patch should totally replace your status window patches PLUS it should come AFTER the 'reset Keen's score on dying' patch, since it tweaks that a bit. (If you do NOT do this the game will crash.)

Code: Select all

##############################
#    STATUS WINDOW PATCHES   #
##############################

#Add new counter for level time (Minutes and seconds)
%patch $7CE4 $33 $C0 $50 $B8 $000AW  $50 $B8 $002CW  $50 $B8 $0029W  $50 $B8 #Black box Ax2C at 29,AF
             $00AFW  $50 $9A $1D060DE3RL     $83 $C4 $0A $C7 $06 $35 $A5     #Text at 1E,9F
         $001EW  $C7 $06 $33 $A5 $009FW  $C7 $06 $31 $A5 $0040W  $B8 $0617W
             $50 $9A $19310EBDRL     $83 $C4 $02 $A1 $7A24W  $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 $7A22W  $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 $2F487 "TIME" $0A "  :" $00

#Count level time in Keen's behavior
%patch $8FBA $FF $36 $D6 $A7 $9A $0B8018E9RL $83 $C4 $02 $9A $0D8F08A9RL
             $EB $0E

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

#Store Keen's score,reset Keen's time on level load
%patch $69E3 $33 $C0 $A3 $7A20W  $A3 $7A22W  $A3 $7A24W  $A1 $7A50W  $A3 $7A4CW
                 $A1 $7A52W  $A3 $7A4EW  $EB $37


#status window colour and text colour (red and blue)
%patch $7CC9 $0004W

#Lives text center
%patch $7FC2 $00A0W #Horizontal
%patch $7FC8 $0080W #Vertical
%patch $7FCB $0655W #Text read from
%patch $2F4C5 "LIVES" $00

#Counter
%patch $7FEF $7A6AW #What to track
%patch $7FF5 $0029W #start tile
%patch $7FF9 $0003W #Number of digits
%patch $7FFD $0080W #Vertical AND horizontal position (Both are equal!)

%patch $7FE6 $90 $90 $90 $90 $90 #Background rectangle

#one up
%patch $7DC8 $003DW #Vertical
%patch $7DCE $00B0W #Horizontal
%patch $7DD4 $0040W #Maximum text width
%patch $7DD7 $0626W #Text read from
%patch $2F496 "1UP AT" $00


#Don't draw (Rescued text)
%patch $7E32 $90 $90 $90 $90 $90 #Rescued text
%patch $7E4D $90 $90 $90 $90 $90 #Background rectangle
%patch $7E6D $90 $90 $90 $90 $90 #Rescued tiles

#Don't display any Wetsuit stuff
%patch $8058 $EB $4D

#Don't draw (easy hard and so on stuff)
%patch $7E96 $90 $90 $90 $90 $90 #Level text
%patch $7EB2 $90 $90 $90 $90 $90 #Background rectangle
%patch $7EE4 $90 $90 $90 $90 $90 #Easy text
%patch $7EF2 $90 $90 $90 $90 $90 #Medium text
%patch $7F00 $90 $90 $90 $90 $90 #Hard text

#Drops text
%patch $800C $0067W #Horizontal
%patch $8012 $0029W #Vertical
%patch $8015 $065BW #Text read from
%patch $2F4CB "DROPS" $00

#Counter
%patch $803C $7A5AW #What to track
%patch $8042 $0029W #Start tile
%patch $8046 $0002W #Number of digits
%patch $804A $002AW #Vertical position
%patch $804E $0090W #Horizontal position

#No Background rectangle
%patch $8033 $90 $90 $90 $90 $90

##Move press
%patch $80B2 $008CW #Vertical position
%patch $80BE $0078W #Horizontal position
%patch $80D0 $0094W #Vertical position
%patch $80DC $0078W #Horizontal position
can you do the same STATUS WINDOW PATCHES for k5 and k6 no rush tho
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Re: Level/game timer

Post by levellass »

As I mentioned just above, these are possible,but tricky since the game using this patch eliminated something from the status window, freeing up space. To do the same for Keen 5 and 6 I'd need to know where you want the game timer on the window (there's not much space) and whether or not you were going to eliminate anything from the status window. (Which would make it easier to patch.)
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 »

levellass wrote: Sun Mar 26, 2017 12:40 am As I mentioned just above, these are possible,but tricky since the game using this patch eliminated something from the status window, freeing up space. To do the same for Keen 5 and 6 I'd need to know where you want the game timer on the window (there's not much space) and whether or not you were going to eliminate anything from the status window. (Which would make it easier to patch.)
ok i dont need or want the location, level, or item boxes ..k6 and like the k4 one i want the extra life to say 1UP AT
Post Reply