![]() |
SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997 |
03-26-26, 06:14 PM
|
#1 |
|
Chief
![]() Join Date: Jul 2008
Posts: 329
Downloads: 84
Uploads: 3
|
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? |
|
|
03-26-26, 07:18 PM
|
#2 | |
|
Silent Hunter
![]() |
Quote:
__________________
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 |
|
|
|
03-26-26, 08:38 PM
|
#3 | |
|
CTD - it's not just a job
|
Quote:
![]() 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 |
|
|
|
03-26-26, 08:54 PM
|
#4 |
|
Engineer
![]() |
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 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 |
|
|
03-26-26, 11:19 PM
|
#5 |
|
Chief
![]() Join Date: Jul 2008
Posts: 329
Downloads: 84
Uploads: 3
|
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. 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? |
|
|
03-26-26, 11:46 PM
|
#6 |
|
Chief
![]() Join Date: Jul 2008
Posts: 329
Downloads: 84
Uploads: 3
|
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. |
|
|
03-27-26, 12:12 AM
|
#7 |
|
Chief
![]() Join Date: Jul 2008
Posts: 329
Downloads: 84
Uploads: 3
|
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? |
|
|
03-27-26, 06:08 AM
|
#8 | |
|
Engineer
![]() |
Quote:
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 |
|
|
|
03-27-26, 12:50 PM
|
#9 |
|
Chief
![]() Join Date: Jul 2008
Posts: 329
Downloads: 84
Uploads: 3
|
Some screenies of what I got and what I can't find in the menu.ini. Note the notes.
In Crew Management, I got their name, rank, experience, health, morale, fatigue, and efficiency. I'm not sure where their other stats come from, or the names on the recruitment list. ![]() Note here the target name, speed, rudder, and depth text, the fire button tool tip, and the time (though still obscured by the depth meter). ![]() All the text here is enlarged, and note again the nice, fat, tool tip. ![]() I can't for the life of me figure out where the lat/long numbers come from on the nav map. Data\Menu\cfg\maps.cfg has the following in it, but degrees.tga doesn't exist. The degrees.dds in menu/gui is a literal 4x4 pixel dot... [MAPS] MapsNb=2 ;materials Mat0=0x09,0x0B;default Mat1=0x09,0x0B,data/menu/gui/ContLine.tga Mat2=0x09,0x0B,data/menu/gui/DashLine.tga Mat3=0x09,0x0B,data/menu/gui/Degrees.tga Mat4=0x3B,0x0B,data/menu/gui/Units/Torp.tga Mat5=0x3B,0x0B,data/menu/gui/Units/Selection.tga Mat6=0x3B,0x0B,data/menu/gui/Units/ShipDestroyed.tga Mat7=0x3B,0x0B,data/menu/gui/Units/AirDestroyed.tga Mat8=0x3B,0x0B,data/menu/gui/Units/City.tga
__________________
Help for eye-haters: 4k 3kyd Plotter - SH4 4k Playability Package - Now with bigger text! Do you even ReShade? |
|
|
![]() |
|
|
