SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > Silent Hunter 4: Wolves of the Pacific > SH4 ATO Mods
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 10-31-13, 05:19 PM   #1
conus00
Grey Wolf
 
Join Date: May 2008
Location: DB85
Posts: 804
Downloads: 166
Uploads: 0
Font question

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!
__________________
conus00 is offline   Reply With Quote
Old 11-01-13, 12:20 PM   #2
Dani
Helmsman
 
Join Date: Oct 2008
Posts: 103
Downloads: 349
Uploads: 0
Default

In SH3 the menu.ini file in the Menu folder. I think it's the same in SH4.
Dani is offline   Reply With Quote
Old 11-01-13, 04:44 PM   #3
robustits
Watch
 
Join Date: Nov 2013
Location: Türkiye
Posts: 15
Downloads: 0
Uploads: 0
Default Fonts are created by app.

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.
robustits is offline   Reply With Quote
Old 11-04-13, 09:36 AM   #4
conus00
Grey Wolf
 
Join Date: May 2008
Location: DB85
Posts: 804
Downloads: 166
Uploads: 0
Default

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?
__________________
conus00 is offline   Reply With Quote
Old 11-04-13, 11:47 AM   #5
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

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
  Reply With Quote
Old 11-05-13, 03:06 AM   #6
conus00
Grey Wolf
 
Join Date: May 2008
Location: DB85
Posts: 804
Downloads: 166
Uploads: 0
Default

Ahhhh, nice. Thanks privateer!
__________________
conus00 is offline   Reply With Quote
Old 11-05-13, 03:21 PM   #7
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

I used 010 editor to scan all the files in SH4.
That's how I found it.
  Reply With Quote
Old 11-05-13, 03:37 PM   #8
conus00
Grey Wolf
 
Join Date: May 2008
Location: DB85
Posts: 804
Downloads: 166
Uploads: 0
Default

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
__________________
conus00 is offline   Reply With Quote
Old 11-05-13, 03:46 PM   #9
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

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.


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!

Last edited by Madox58; 11-05-13 at 04:13 PM.
  Reply With Quote
Old 11-08-13, 08:21 PM   #10
polyfiller
Weps
 
Join Date: Sep 2005
Posts: 356
Downloads: 40
Uploads: 0
Default

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.
polyfiller is offline   Reply With Quote
Old 11-09-13, 01:54 PM   #11
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

That's a good text searcher and I did have that at one time.

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.
  Reply With Quote
Old 11-10-13, 12:53 PM   #12
conus00
Grey Wolf
 
Join Date: May 2008
Location: DB85
Posts: 804
Downloads: 166
Uploads: 0
Default

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?
__________________
conus00 is offline   Reply With Quote
Old 11-10-13, 01:10 PM   #13
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

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.


I'll scan useing Captain first as you were wanting to change the log text right?
  Reply With Quote
Old 11-10-13, 01:26 PM   #14
conus00
Grey Wolf
 
Join Date: May 2008
Location: DB85
Posts: 804
Downloads: 166
Uploads: 0
Default

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.
__________________
conus00 is offline   Reply With Quote
Old 11-10-13, 01:39 PM   #15
Madox58
Stowaway
 
Posts: n/a
Downloads:
Uploads:
Default

One way you could do a quick test is to set all fonts to the same font in menu 1024 etc.ini

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
  Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:16 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 1995- 2024 Subsim®
"Subsim" is a registered trademark, all rights reserved.