A High Scores patch (CK1)

Request patches for Keens 1-3.
Post Reply
Darziw Nogaj
Posts: 22
Joined: Fri Feb 07, 2014 1:25 am

A High Scores patch (CK1)

Post by Darziw Nogaj »

Is it possible for a patch that can do seven different default names in the high scores instead of three? Quinton would really like have that patch for his current working mod.
levellass
Posts: 3001
Joined: Wed Oct 11, 2006 12:03 pm
Location: Ngaruawahia New Zealand

Post by levellass »

The score names are loaded as a single block of text that is then cut up into a number of names of a certain length. By default a block of text $2D (45) letters long is loaded cut up into 3 names of length $0F (15).

If the number of names exceeds the block of text some names will be blank. All names will be the same maximum length with their actual length depending on how many letters are in the name. (By default these are 5, 7 and 6 letters.) Names repeat in sequence until the required number of high score entries is filled. http://www.shikadi.net/keenwiki/Patch:H ... _name_text

Code: Select all

#Default high score entries
%patch $7931 $28EFW #Block location
%patch $7935 $002DW #Block length
%patch $7A31 $0003W #Number of names
%patch $7A37 $000FW #Name length

#Default highscore names
%patch $1593F "Yorpy    " $00
%patch $1594E "Gargile  " $00
%patch $1595D "Zzapp!   " $00
If you want more names you'll have to either use shorter name segments or relocate the text block somewhere you have more space. Using the default space you'd have 7 entries of 5 letters (Plus a $00) which is a little limiting. What you want will change what kind of patch you get.
Post Reply