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 07-22-23, 06:53 AM   #1
Bartholomew Roberts
Bosun
 
Join Date: Sep 2021
Posts: 69
Downloads: 107
Uploads: 2
Default HOW TO MAKE NEW FONT IN SH GAME?

I want to make larger font for 4k UI.

I've looking into Data/Menu/Font/, ervery font contains 2 files. a tga or dds file, a off file , and some contains a txt file which has no use just to show the position of each letter.

I opened off file with HxD know it's a 16bit file. it clearly reflects the position table writes in txt file and you can not change dds into tga format or it ctd. So Anyone knows how to make this off file with what tool?
Bartholomew Roberts is offline   Reply With Quote
Old 07-22-23, 11:30 AM   #2
KaleunMarco
Silent Hunter
 
KaleunMarco's Avatar
 
Join Date: Sep 2007
Location: Chicago area, which is more dangerous than Omaha Beach.
Posts: 3,917
Downloads: 436
Uploads: 27


Default

Quote:
Originally Posted by Bartholomew Roberts View Post
I want to make larger font for 4k UI.

I've looking into Data/Menu/Font/, ervery font contains 2 files. a tga or dds file, a off file , and some contains a txt file which has no use just to show the position of each letter.

I opened off file with HxD know it's a 16bit file. it clearly reflects the position table writes in txt file and you can not change dds into tga format or it ctd. So Anyone knows how to make this off file with what tool?
i use GIMP to edit TGA and DDS files.
__________________
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 07-22-23, 12:47 PM   #3
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,319
Downloads: 130
Uploads: 0


Default

S3D is the tool needed.
Somewhere there is a post about doing the Fonts.
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 07-22-23, 01:09 PM   #4
propbeanie
CTD - it's not just a job
 
propbeanie's Avatar
 
Join Date: May 2016
Location: One hour from Music City USA!
Posts: 9,749
Downloads: 439
Uploads: 2


Default

Quote:
Originally Posted by Bartholomew Roberts View Post
I want to make larger font for 4k UI.

I've looking into Data/Menu/Font/, ervery font contains 2 files. a tga or dds file, a off file , and some contains a txt file which has no use just to show the position of each letter.

I opened off file with HxD know it's a 16bit file. it clearly reflects the position table writes in txt file and you can not change dds into tga format or it ctd. So Anyone knows how to make this off file with what tool?
Quote:
Originally Posted by Jeff-Groves View Post
S3D is the tool needed.
Somewhere there is a post about doing the Fonts.
That is correct sir! - How to create new game fonts

Silent 3ditor download

Both from skwasjer!
__________________

"...and bollocks to the naysayer/s" - Jimbuna
propbeanie is offline   Reply With Quote
Old 07-22-23, 01:22 PM   #5
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,319
Downloads: 130
Uploads: 0


Default

That would be the thread I was talking about.
Be aware there may be issues like a black screen that don't show the fonts.
There are threads about that also if you search.
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 07-22-23, 10:07 PM   #6
Bartholomew Roberts
Bosun
 
Join Date: Sep 2021
Posts: 69
Downloads: 107
Uploads: 2
Default

Quote:
Originally Posted by Jeff-Groves View Post
S3D is the tool needed.
Somewhere there is a post about doing the Fonts.
Oh, I don't know S3D is that useful! Enlarge image is a easy job anyway, sadly I use excel to fast mutiply dimension array, now I have to do it manually
Bartholomew Roberts is offline   Reply With Quote
Old 07-23-23, 01:35 PM   #7
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,319
Downloads: 130
Uploads: 0


Default

If you know the enlargement size of the texture file? Should be an easy calculation with a spread sheet.
__________________
I don't do Stupid. So don't ask.
Jeff-Groves is offline   Reply With Quote
Old 07-23-23, 10:39 PM   #8
Bartholomew Roberts
Bosun
 
Join Date: Sep 2021
Posts: 69
Downloads: 107
Uploads: 2
Default

Quote:
Originally Posted by Jeff-Groves View Post
If you know the enlargement size of the texture file? Should be an easy calculation with a spread sheet.
But S3D cannot import txt or xls, I have to input every number one at a time
Bartholomew Roberts is offline   Reply With Quote
Old 07-24-23, 10:17 AM   #9
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,319
Downloads: 130
Uploads: 0


Default

The .off file is a simple format. One could write a converter to change a txt file fairly easily.

I probably have a script for 010 that could be modified to do that.
It converts an obj file (Which is just a txt file) to the SH5 RAW file format.

EDIT:
Found the Script. Should be easy to adjust it but it only runs in 010 Hex Editor.
__________________
I don't do Stupid. So don't ask.

Last edited by Jeff-Groves; 07-24-23 at 10:39 AM.
Jeff-Groves is offline   Reply With Quote
Old 07-24-23, 11:32 AM   #10
Bartholomew Roberts
Bosun
 
Join Date: Sep 2021
Posts: 69
Downloads: 107
Uploads: 2
Default

Quote:
Originally Posted by Jeff-Groves View Post
The .off file is a simple format. One could write a converter to change a txt file fairly easily.

I probably have a script for 010 that could be modified to do that.
It converts an obj file (Which is just a txt file) to the SH5 RAW file format.

EDIT:
Found the Script. Should be easy to adjust it but it only runs in 010 Hex Editor.
Another problem remains that most font in the game dont have a txt. convert into xls first is needed. and language code is a problem too, I think it is in Romanian but excel could not fully recognize all the letters.
Bartholomew Roberts is offline   Reply With Quote
Old 07-24-23, 12:30 PM   #11
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,319
Downloads: 130
Uploads: 0


Default

One could convert the .off to a text file also.
The characters are Ascii or Extended Ascii so wouldn't be that hard.
I'd think Excel would be able to handle extended Ascii.


ä In the .off files translates to 228 which Exel should recognize.
So appears they used Unicode - Latin Supplement A
Can you send me a txt file that excel does not work with?

Looking at the txt files in Notepad shows they are a mess. 010 opens them really good!
So the import to Open Office always gives me fits!
__________________
I don't do Stupid. So don't ask.

Last edited by Jeff-Groves; 07-24-23 at 02:11 PM.
Jeff-Groves is offline   Reply With Quote
Old 07-24-23, 02:15 PM   #12
Bartholomew Roberts
Bosun
 
Join Date: Sep 2021
Posts: 69
Downloads: 107
Uploads: 2
Default

Quote:
Originally Posted by Jeff-Groves View Post
One could convert the .off to a text file also.
The characters are Ascii or Extended Ascii so wouldn't be that hard.
I'd think Excel would be able to handle extended Ascii.


ä In the .off files translates to 228 which Exel should recognize.
So appears they used Unicode - Latin Supplement A
Can you send me a txt file that excel does not work with?

Looking at the txt files in Notepad shows they are a mess. 010 opens them really good!
So the import to Open Office always gives me fits!
It's in the Silent Hunter 4 Wolves of the Pacific Gold Edition\Data\Menu\Fonts
they're stock files like Agency_28.txt ,Chalk.txt, I use microsoft excel and libre office, can't find a suitable code match the 16bit display anyway

Last edited by Bartholomew Roberts; 07-24-23 at 02:30 PM.
Bartholomew Roberts is offline   Reply With Quote
Old 07-24-23, 02:52 PM   #13
Jeff-Groves
Village Idiot
 
Jeff-Groves's Avatar
 
Join Date: Sep 2014
Posts: 5,319
Downloads: 130
Uploads: 0


Default

In Open Office? I import with Tabs as the seperator
Then select Western Europe (Windows-1252/WinLatin 1)

Looks just like the txt file.

Having figured all that out? I can write a script to convert the .off to a text file.
__________________
I don't do Stupid. So don't ask.

Last edited by Jeff-Groves; 07-24-23 at 03:04 PM.
Jeff-Groves is offline   Reply With Quote
Old 07-24-23, 08:37 PM   #14
Bartholomew Roberts
Bosun
 
Join Date: Sep 2021
Posts: 69
Downloads: 107
Uploads: 2
Default

Quote:
Originally Posted by Jeff-Groves View Post
In Open Office? I import with Tabs as the seperator
Then select Western Europe (Windows-1252/WinLatin 1)

Looks just like the txt file.

Having figured all that out? I can write a script to convert the .off to a text file.
Yes, it shows correctly with (Windows-1252/WinLatin 1) but they are different letters from font to font. Take Agency_28 and chalk for example. With same format chalk can't be read correctly.

Agency_28 dds


Chalk


the libre office can't read chalk txt correctly alone with excel



for microsoft excel opens in 1252, another ghost story



So it still has some trouble.

Last edited by Bartholomew Roberts; 07-24-23 at 08:54 PM.
Bartholomew Roberts is offline   Reply With Quote
Old 07-24-23, 09:29 PM   #15
Bartholomew Roberts
Bosun
 
Join Date: Sep 2021
Posts: 69
Downloads: 107
Uploads: 2
Default



Open office looks the same as libre office , " 226 113 10 32 the first letter caused the trouble, it only shows correctly in Notepad++
Bartholomew Roberts 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 12:43 AM.


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.