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 > SH4 Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 03-26-26, 06:14 PM   #1
Baxder
Chief
 
Join Date: Jul 2008
Posts: 329
Downloads: 84
Uploads: 3
Default Font Size

I'm working my way through menu_1024_768.ini, making font sizes bigger in chunks. There are some that just makes the text disappear. The ones that have mattered are in the recognition manual and the target name in the PK. These would be so much more playable with fonts just one size bigger. Does anyone know how I can make that work?


[G42 I43]
Name=Target name
Type=1029;Static text
ItemID=0x42160001
ParentID=0x42160000
Pos=45,-42,170,20
Zone= 45 726 170 20 0 1 0x42160000 0.5 0 0x42160001 -0.5 0 0 -42
Font=19 If I change this to 20, the text never appears in the PK
Text=1000
TextFlags=0x15

Font19=DATA/Menu/Fonts/Agency_16.tga
Font20=DATA/Menu/Fonts/Agency_20.tga
__________________
Help for eye-haters: 4k 3kyd Plotter - SH4 4k Playability Package - Now with bigger text!

Do you even ReShade?
Baxder is offline   Reply With Quote
Old 03-26-26, 07:18 PM   #2
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Gone to Texas. No More Kleptocratic Government for me!
Posts: 4,711
Downloads: 508
Uploads: 31


Default

Quote:
Originally Posted by Baxder View Post
I'm working my way through menu_1024_768.ini, making font sizes bigger in chunks. There are some that just makes the text disappear. The ones that have mattered are in the recognition manual and the target name in the PK. These would be so much more playable with fonts just one size bigger. Does anyone know how I can make that work?


[G42 I43]
Name=Target name
Type=1029;Static text
ItemID=0x42160001
ParentID=0x42160000
Pos=45,-42,170,20
Zone= 45 726 170 20 0 1 0x42160000 0.5 0 0x42160001 -0.5 0 0 -42
Font=19 If I change this to 20, the text never appears in the PK
Text=1000
TextFlags=0x15

Font19=DATA/Menu/Fonts/Agency_16.tga
Font20=DATA/Menu/Fonts/Agency_20.tga
that value, 19, could be an offset into an array, which could have an organization that is not arithmetic.
__________________
there are only two things in the world: submarines and targets.
Fortis et stabilis et fidelis, semper


------------------------------------------------------------
Silent Hunter 4 1.5 Gold Edition on CDROM
LAA enabled
Dell XPS with 32 GB Ram running Win10
KaleunMarco is offline   Reply With Quote
Old 03-26-26, 08:54 PM   #3
ElCid97
Engineer
 
Join Date: Nov 2019
Location: Miami, FL
Posts: 204
Downloads: 146
Uploads: 6


Default

Baxter,

The "Font=##" refers to the font specified at the top of the ini file. By changing "19" to "20" in the line, you are now calling up a font that is far larger than the one you are trying to replace it with. It just won't show.

I'll post the section I have been testing with here as code so you guys can see if it's good or not, but it's a hit or miss until I go through the entire ini file to ensure the different sections are not calling up a font that's too big.

The "Agency" ones tend to "jump" rather high from one to the other, so it may not show in the "display window" that has been specified in the "Zone" line for that particular item.

When I did the changes to the fonts a while back, I just went through and swapped out the "Agency" fonts for a similar sized "FPHunt" font since that is the "typewriter" style font for the game.

Here is the section I have for the S-Boat mod I'm working on. It should work as written, but I would have to get feedback on that since I've only tried it with the full S-Boat mod updates I'm helping BH with right now. It's basically an update of the ones I did for FotRSU a while back as part of the BuPers thing I tried to do, so there may or may not be something overlooked.

So far it works with the TMO-BH-2.1 version I'm testing on, so I think it should work with your setup since I haven't had any CTD's.

Well, yet anyway.

Code:
[Fonts]
Fonts=24
Font0=DATA/Menu/Fonts/FPHunt26.tga
Font1=DATA/Menu/Fonts/FPHunt15.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/FPHunt12.tga
Font19=DATA/Menu/Fonts/FPHunt15.tga
Font20=DATA/Menu/Fonts/FPHunt15.tga
Font21=DATA/Menu/Fonts/FPHunt26.tga
Font22=DATA/Menu/Fonts/FPHunt26.tga
Font23=DATA/Menu/Fonts/Chalk.dds
You can add or subtract fonts if you would like, but you will have to change the "Fonts=24" to a number that would correspond to the new, total number of fonts.

You also have to remember you start at "0" and work your way up, so if you want, say, "30" fonts you would change "Fonts=24" to "Fonts=30" and you could add up to "Font29=Data/Menu/Fonts/MyFont.dds" in the listing.

You can have more fonts called for in the "Fonts=##" than you actually have, if I remember correctly, but you can't have less. This will definately crash the sim.

I would recommend just sticking with the number matching the number of fonts you have installed and call it a day. This method I'm using just swapped out the fonts for something that looked typed and supplied with the sim, so it shouldn't look too far out of the ordinary as far as usability.

You should generally go for the closest but smaller font to the one you are trying to replace since it may not display at all if you go higher due to the defined display in the menu_1024_768.ini file for the window or group you are trying to replace. You can see what I mean by comparing the code above to your original code. I have a size "15" FPHunt replacing the two Agency fonts.

In your listing:

Zone= 45 726 170 20 0 1 0x42160000 0.5 0 0x42160001 -0.5 0 0 -42

... tells us the area you have to "play" with for the font is 170 pixels wide by 20 pixels tall, with the "0" telling us it stays the same regardless of the resolution of your screen. The "-42" at the end tell us the "170 20" display as a whole is offset from the origin 42 pixels vertical regardless of resolution. I can't remember now if this is up or down, but it's in reference to the origin described earlier.

The "off" file associated with a font is opened in S3D much like "dat" files are, so the "footprints" of where to read the letters/numbers/symbols is based on a percentage of area from the image file. This is the same way the game reads images for dials and such in the "Zone" file. You can use any size image, so long as it matches the percentages for the letters defined in the "off" file.

Anyway, enough rambling.

Let me know if the above code works at the top of your menu_1024_768.ini file without any further changes to it.

Saludos!

ElCid97
ElCid97 is offline   Reply With Quote
Old 03-26-26, 11:19 PM   #4
Baxder
Chief
 
Join Date: Jul 2008
Posts: 329
Downloads: 84
Uploads: 3
Default

It's like they're trying to speak to me, I know it!

So...is there a way to make what I want to do work? I really have no idea where y'all went with all that, but it doesn't seem to be what I'm after.

Quote:
Originally Posted by ElCid97 View Post
Zone= 45 726 170 20 0 1 0x42160000 0.5 0 0x42160001 -0.5 0 0 -42

... tells us the area you have to "play" with for the font is 170 pixels wide by 20 pixels tall, with the "0" telling us it stays the same regardless of the resolution of your screen.
Does this mean the area could be enlarged? Or that I could change the "0" to make it scale?
__________________
Help for eye-haters: 4k 3kyd Plotter - SH4 4k Playability Package - Now with bigger text!

Do you even ReShade?
Baxder is offline   Reply With Quote
Old 03-26-26, 11:46 PM   #5
Baxder
Chief
 
Join Date: Jul 2008
Posts: 329
Downloads: 84
Uploads: 3
Default

The smallest 2nd value I could find for font 20 was 24, so I changed the PK zone value to that, and voila! Readable hi-rez ship names!

Thanks! I'm going to see if it works in the recognition manual next. [EDIT: Hell yeah, it worked!]

[G42 I43]
Name=Target name
Type=1029;Static text
ItemID=0x42160001
ParentID=0x42160000
Pos=45,-42,170,20
Zone= 45 726 170 24 0 1 0x42160000 0.5 0 0x42160001 -0.5 0 0 -42
Font=20
Text=1000
TextFlags=0x15
__________________
Help for eye-haters: 4k 3kyd Plotter - SH4 4k Playability Package - Now with bigger text!

Do you even ReShade?

Last edited by Baxder; 03-27-26 at 12:05 AM.
Baxder is offline   Reply With Quote
Old 03-27-26, 12:12 AM   #6
Baxder
Chief
 
Join Date: Jul 2008
Posts: 329
Downloads: 84
Uploads: 3
Default

With that, I've got the recognition manual, value displays below the HUD gauges, date/time to their right, all the DC screen text, PK ship name, and all tool tips enlarged for hi-rez readability.

I'd love to get the crew management page, lat/long on the nav map, and the orders sheet that types out at patrol start done, and I'd be very happy.

Hopefully tomorrow.
__________________
Help for eye-haters: 4k 3kyd Plotter - SH4 4k Playability Package - Now with bigger text!

Do you even ReShade?
Baxder is offline   Reply With Quote
Old 03-27-26, 06:08 AM   #7
ElCid97
Engineer
 
Join Date: Nov 2019
Location: Miami, FL
Posts: 204
Downloads: 146
Uploads: 6


Default

Quote:
Originally Posted by Baxder View Post
The smallest 2nd value I could find for font 20 was 24, so I changed the PK zone value to that, and voila! Readable hi-rez ship names!

Thanks! I'm going to see if it works in the recognition manual next. [EDIT: Hell yeah, it worked!]

[G42 I43]
Name=Target name
Type=1029;Static text
ItemID=0x42160001
ParentID=0x42160000
Pos=45,-42,170,20
Zone= 45 726 170 24 0 1 0x42160000 0.5 0 0x42160001 -0.5 0 0 -42
Font=20
Text=1000
TextFlags=0x15
Now you're getting it!

If it's cut off at the right, just add a little to the "170" value.

FYI, the default fonts also have a text file associated with them. I should have mentioned that. Sorry!

The text file tells you the height of the characters in the font set. For "Agency_20" it's "23 pixels" in height, so the "24" in your line will work. The default "20" would not since it was too short for the font being called.

Again, sorry for overlooking the obvious!

Saludos!

ElCid97
ElCid97 is offline   Reply With Quote
Old 03-26-26, 08:38 PM   #8
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 10,245
Downloads: 466
Uploads: 4


Default

Quote:
Originally Posted by Baxder View Post
I'm working my way through menu_1024_768.ini, making font sizes bigger in chunks. There are some that just makes the text disappear. The ones that have mattered are in the recognition manual and the target name in the PK. These would be so much more playable with fonts just one size bigger. Does anyone know how I can make that work?


[G42 I43]
Name=Target name
Type=1029;Static text
ItemID=0x42160001
ParentID=0x42160000
Pos=45,-42,170,20
Zone= 45 726 170 20 0 1 0x42160000 0.5 0 0x42160001 -0.5 0 0 -42
Font=19 If I change this to 20, the text never appears in the PK
Text=1000
TextFlags=0x15

Font19=DATA/Menu/Fonts/Agency_16.tga
Font20=DATA/Menu/Fonts/Agency_20.tga
There are a couple of ways to find the fonts and sizes. The 'graphical' way would be to open the Mission Editor, open any mis file, or create a new one. Use the Tools menu and tick the "Map Location Edit Mode" box to put a tick in it.



Then right-click a blank location in the map area in ME, and select "Add Map Location" from the context menu.



That will bring up a dialog box for a new Map Location, which will have a font dialog in the middle of it. Scroll through the list to see the fonts and sizes available.



The lists hanging out to the right are there by magical foto editing courtesy of modern technology... :wink:

I am drawing a blank right now on the 'list' way... but skwasjer mentions it (maybe) in his font tutorial on SubSim here somewhere...

btw - the Stock game might have a different list, and other mods might have different lists. The one above is from FotRSU v1.8
__________________

"...and bollocks to the naysayers" - Jimbuna
propbeanie is offline   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 10:01 PM.


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