Hi everyone,
text location update,
it took a while but I also found the start level text color (beginning, early, developed, expanded, advanced) it is in that order
at 0x191b14
from what I can tell there is only one other location to be found for scan strength on main map in upper right. (red yellow, green) I think the red is also used when some thing goes negative like food, energy building unpowered, scraped ect.
EDIT;
I did find location location for "Scan Strength" it is not shared like I thought these colors are called as needed so there are a lot of them though out trek.exe with mainly red color.
here is base hex used it may vary slightly
C7 84 24 58 01 00 00 "FF 00 00" 00 the FF 00 00 is color.
Scan Strength locations
004DC9E5 0xdbde5 red FF 00 00
004DC9F5 0xdbdf5 green 00 FF 00
004DC80E 0xdbc0e yellow FF FF 00
Some main empire color area info
Spocks-cuddly-tribble wrote:
Sub_43AC90 -> fnt_base_colour_for_raceID_eax_to_eax
Ds:58FB14 -> 0x3C bytes per empire -> first 3 bytes each for base fnt colour
i.e. for empires card-rom:
58FB14 -> 00 9A 72
58FB50 -> 20 68 C0
58FB8C -> FF 75 17
58FBC8 -> 6F 89 FF
58FC04 -> 59 6A FF
1, 2 & 6-10 = Each shared for many purposes
3 = F1 Map Grid
4 & 5 = for F1 Map
11 = hall of fame, end score graph, load & save screen slots
each empire color section is laid out the same.
Code: Select all
starting at 0x18d914 each section is 60 bytes (0x3c bytes)
0x00 - 0x02 1st color
0x03 - 0x0f race.cur
0x10 - 0x12 2nd color (this one is used when text is selected) also other things like list titles.
0x13 - 0x21 first letter of race and race
0x22 - 0x24 3rd color
0x25 - 0x27 4th color
0x28 - 0x2a 5th color
0x2b - 0x2d 6th color
0x2e - 0x30 7th color
0x31 - 0x33 8th color
0x34 - 0x36 9th color
0x37 - 0x39 10th color
0x3a - 0x3c 11th color
font file info
Peter1981 wrote:FONTS - .Fnt files
For boft vanilla there are 21 .fnt files divided into five groups of four and one remaining file.
The five groups (one for each major empire) contain four .fnt files
EMPIRE9.fnt
EMPIRE15.fnt
EMPIRE20.fnt
EMPIRE28.fnt
Where EMPIRE is either 'cardsn', 'human', 'ferngi', 'klingn', or 'romuln'.
There is also generic9.fnt used for the unaligned star system name on the main map.
Code: Select all
Offset Bytes Discription
0x00 XX either 0A, 10, 15, or 1d i.e. one greater than the high of a character.
0x01 ?? ?? ?? Related to character size
0x04 0A 00 78 00 [DO NOT CHANGE!]
0x08 XX XX ~tga horizontal pixel size
0x0A XX XX ~tga vertical pixel size
0x0C XX XX ~tga file size
0x0E 00 00 [DO NOT CHANGE!]
0x10 XX 01 for *9.fnt's and 01 for all others
0x11 XX 07 for generic9.fnt and 06 for all others
0x12 56 00 [DO NOT CHANGE!]
0x14 two-byte table of horizontal pixels for each character
to +1 for all characters. Except characters at the start
0x103 of a new line - NOT the first character on the first line (i.e. '1').
0x14 first line - i.e. 1 2 3 ... 9 0
0x28 second line - i.e. A B C ... Y Z
0x5c third line - i.e. a b c ... y z
0x90 forth line - i.e. ` - = ... > ?
0xD0 fifth line - i.e. ä â à ... ¡ ·
0x104 ~tga 16bit file infomation.
how to edit the font files
viewtopic.php?f=9&t=831&p=18464&sid=daf ... a70#p18464
thunderchero