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

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


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:25 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.