Log in

View Full Version : Font question


conus00
10-31-13, 05:19 PM
Does anybody know which file (or maybe it is hardcoded) describes what font is used on what screen?
Let's say that I would like to change font used on radio messages?

Before we get into the entire "font discussion" I am aware that the "fonts" in game are not actual fonts (but rather combination of TGA and DDS files) but I am curious if there is a way of changing which ones the game uses...

Thanks!

Dani
11-01-13, 12:20 PM
In SH3 the menu.ini file in the Menu folder. I think it's the same in SH4.

robustits
11-01-13, 04:44 PM
The menu_1024_768.ini file in the Menu folder provides font usage. In "Font=X" reference number is X. In "ToolTipText=Y" reference characters are Y in the menu.txt file.

conus00
11-04-13, 09:36 AM
I understand menu_1024_768.ini file to certain extent. There are entries like "Font=1", "Font=18" etc... But how do I find out what particular font the number refers to?

Madox58
11-04-13, 11:47 AM
It's listed at the top of the menu_1024_768.ini file itself.

[Fonts]
Fonts=24
Font0=DATA/Menu/Fonts/FPHunt26.tga
Font1=DATA/Menu/Fonts/FPCond14.tga
Font3=DATA/Menu/Fonts/FPHunt38.tga
Font4=DATA/Menu/Fonts/FPHunt12.tga
Font5=DATA/Menu/Fonts/FPHunt15.tga
Font6=DATA/Menu/Fonts/FPSmall.tga
Font7=DATA/Menu/Fonts/FPPencil12.tga
Font10=DATA/Menu/Fonts/FPArhi24.tga
Font11=DATA/Menu/Fonts/ShellsNr.tga
Font13=DATA/Menu/Fonts/FPCond18.tga
Font14=DATA/Menu/Fonts/FPCond12.tga
Font15=DATA/Menu/Fonts/FPCond9.tga
Font16=DATA/Menu/Fonts/FPBro20.tga
Font17=DATA/Menu/Fonts/FPBro100.tga
Font18=DATA/Menu/Fonts/Agency_12.tga
Font19=DATA/Menu/Fonts/Agency_16.tga
Font20=DATA/Menu/Fonts/Agency_20.tga
Font21=DATA/Menu/Fonts/Agency_24.tga
Font22=DATA/Menu/Fonts/Agency_28.tga
Font23=DATA/Menu/Fonts/Chalk.dds

conus00
11-05-13, 03:06 AM
Ahhhh, nice. Thanks privateer!

Madox58
11-05-13, 03:21 PM
I used 010 editor to scan all the files in SH4.
That's how I found it.
:up:

conus00
11-05-13, 03:37 PM
Sounds like a handy program, have to look it up. You wouldn't know, by chance, how to find specific things inside of files? Sorry if this sounds like dumb question, I am good graphic designer not programmer, but here is an example:
I need to change, for now, font in the body of Radio Messages (the ones which are on the little notepad on Captain's Log). As of now it uses one of the "Agency" fonts and I need it to be written in one of the FPHunt font (courier style "typewriter font") and I need the same change done for the Ranks page (in Captain's Room). There has to be a way of finding this info somewhere...
I would really appreciate little walkthrough if you have time.

Thanks!

-LJ

Madox58
11-05-13, 03:46 PM
010 by Sweetscape is a hex editor but has a crap load of great features.
I paid around $50.00 for it as I use the heck out of it!
It can search in all types of files to find a phrase or other type searches such as hex numbers and so on.

So I can tell it to search the SH4 folder and all sub folders for nearly anything.

I'll search Agency and see what turns up.
:up:

Captains Log is listed in the menu_1024 blah blah as useing Font 21 which is an agency font.
So search that area.
So if you use notepad? Search for
Name=Captain'sLogTitle

That puts you in the right area.

I do plug and suggest 010 alot but it's a very good program for so much more then just SH type stuff.
I have bought a second upgrade as the first license ran out. The second license is cheaper then the first of course.
They also listen to requests for future improvments and have told me 2 that I requested will be in the next upgrades!
Great program in SO many ways!

polyfiller
11-08-13, 08:21 PM
Am sure if you need a hex editor then privateers recommendation sounds good.

If you want really fast search for free, I use Agent Ransack for all my SH4 modding searches.

Madox58
11-09-13, 01:54 PM
That's a good text searcher and I did have that at one time.
:up:
And it is free.

010 isn't free but as what I search for is usually in many different type files? It's a good investment for me.

It's all in what you want to do and how programmable of a program do you want/need.

010 was the major tool used to assist TDW doing the GR2 Editor also.
:yep:

conus00
11-10-13, 12:53 PM
I have been playing with menu_1024_768.ini trying to change fonts around. I was, to certain, extent succesfull but even if I combed the file for "Font=" there are still few I cannot change. Are there any other files which handle font assignments?

Madox58
11-10-13, 01:10 PM
I'll run another scan and see what pops up.
Currently scanning the SH3 files so it will be a few minutes before I can scan the SH4 folders.
:yep:

I'll scan useing Captain first as you were wanting to change the log text right?

conus00
11-10-13, 01:26 PM
Thanks for your help.
I can snap a few pics of the problem. From the top of my head: font used in description of saved games, the scrolling bar of events, body of the radio messages, names of the sailors... There's more. Makes me believe that it not might be inside the menu_1024_768.ini.

Madox58
11-10-13, 01:39 PM
One way you could do a quick test is to set all fonts to the same font in menu 1024 etc.ini
:hmmm:
I'd make a copy and JSGME it in.
Something like this below.


[Fonts]
Fonts=24
Font0=DATA/Menu/Fonts/FPHunt26.tga
Font1=DATA/Menu/Fonts/FPHunt26.tga
Font3=DATA/Menu/Fonts/FPHunt26.tga
Font4=DATA/Menu/Fonts/FPHunt26.tga
Font5=DATA/Menu/Fonts/FPHunt26.tga
Font6=DATA/Menu/Fonts/FPHunt26.tga
Font7=DATA/Menu/Fonts/FPHunt26.tga
Font10=DATA/Menu/Fonts/FPHunt26.tga
Font11=DATA/Menu/Fonts/FPHunt26.tga
Font13=DATA/Menu/Fonts/FPHunt26.tga
Font14=DATA/Menu/Fonts/FPHunt26.tga
Font15=DATA/Menu/Fonts/FPHunt26.tga
Font16=DATA/Menu/Fonts/FPHunt26.tga
Font17=DATA/Menu/Fonts/FPHunt26.tga
Font18=DATA/Menu/Fonts/FPHunt26.tga
Font19=DATA/Menu/Fonts/FPHunt26.tga
Font20=DATA/Menu/Fonts/FPHunt26.tga
Font21=DATA/Menu/Fonts/FPHunt26.tga
Font22=DATA/Menu/Fonts/FPHunt26.tga
Font23=DATA/Menu/Fonts/FPHunt26.tga

conus00
11-10-13, 01:44 PM
Hmmmm, good idea let me try...

Madox58
11-10-13, 01:50 PM
If you see the font changed where you want?
Start replaceing each font one at a time to narrow it down.
That may take awhile but sometimes that's the price we pay.
:D

conus00
11-10-13, 01:57 PM
Okay, it worked... So that means the entries ARE indeed in menu_1024_768.ini.
But where?

Madox58
11-10-13, 02:01 PM
Start from the bottom and replace with the original font.
You may need to do that 23 times testing each time.
Then search for the font18 or whatever you find changes and replace.