SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SH4 ATO Mods (https://www.subsim.com/radioroom/forumdisplay.php?f=234)
-   -   [TEC] HOW TO MAKE NEW FONT IN SH GAME? (https://www.subsim.com/radioroom/showthread.php?t=255781)

Bartholomew Roberts 07-22-23 06:53 AM

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?:06:

KaleunMarco 07-22-23 11:30 AM

Quote:

Originally Posted by Bartholomew Roberts (Post 2877435)
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?:06:

i use GIMP to edit TGA and DDS files.

Jeff-Groves 07-22-23 12:47 PM

S3D is the tool needed.
Somewhere there is a post about doing the Fonts.

propbeanie 07-22-23 01:09 PM

Quote:

Originally Posted by Bartholomew Roberts (Post 2877435)
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?:06:

Quote:

Originally Posted by Jeff-Groves (Post 2877481)
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! :salute:

Jeff-Groves 07-22-23 01:22 PM

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.

Bartholomew Roberts 07-22-23 10:07 PM

Quote:

Originally Posted by Jeff-Groves (Post 2877481)
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:Kaleun_Salute:

Jeff-Groves 07-23-23 01:35 PM

If you know the enlargement size of the texture file? Should be an easy calculation with a spread sheet.
:hmmm:

Bartholomew Roberts 07-23-23 10:39 PM

Quote:

Originally Posted by Jeff-Groves (Post 2877643)
If you know the enlargement size of the texture file? Should be an easy calculation with a spread sheet.
:hmmm:

But S3D cannot import txt or xls, I have to input every number one at a time:k_confused:

Jeff-Groves 07-24-23 10:17 AM

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.

Bartholomew Roberts 07-24-23 11:32 AM

Quote:

Originally Posted by Jeff-Groves (Post 2877767)
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.

Jeff-Groves 07-24-23 12:30 PM

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

ä 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!

Bartholomew Roberts 07-24-23 02:15 PM

Quote:

Originally Posted by Jeff-Groves (Post 2877784)
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.
:hmmm:

ä 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

Jeff-Groves 07-24-23 02:52 PM

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.

Bartholomew Roberts 07-24-23 08:37 PM

Quote:

Originally Posted by Jeff-Groves (Post 2877815)
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
https://img1.imgtp.com/2023/07/25/LQU5BdHw.jpg

Chalk
https://img1.imgtp.com/2023/07/25/tLVLrRgE.jpg

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

https://img1.imgtp.com/2023/07/25/Mk1W9fe9.jpg

for microsoft excel opens in 1252, another ghost story

https://img1.imgtp.com/2023/07/25/icsJ7vdW.jpg

So it still has some trouble.

Bartholomew Roberts 07-24-23 09:29 PM

https://img1.imgtp.com/2023/07/25/JgbLM864.jpg

Open office looks the same as libre office , " 226 113 10 32 the first letter caused the trouble, it only shows correctly in Notepad++


All times are GMT -5. The time now is 03:22 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.