Page 1 of 1

mafia definitive edition font (hex editor)

Posted: Wed Jan 27, 2021 9:31 am
by aria1996
Hi
I managed to extract the SUBtitle script. And translate it into my own language.
But I got a problem.The game doesn't support my language and I need to add my fonts to the game.
Now, my problem is I don't know how to make font and add it to the game.
I'd like if you could teach me how to make fonts, in my own language. And add it to the game.
I'd be so grateful if you would answer me.

Re: mafia definitive edition font (hex editor)

Posted: Wed Jan 27, 2021 9:46 am
by aria1996

Re: mafia definitive edition font (hex editor)

Posted: Wed Jan 27, 2021 10:02 pm
by ikskoks
You need to share public link to your samples, because access is denied and we can't download them.

Re: mafia definitive edition font (hex editor)

Posted: Fri Jan 29, 2021 3:46 pm
by aria1996
ikskoks wrote:
Wed Jan 27, 2021 10:02 pm
You need to share public link to your samples, because access is denied and we can't download them.

Re: mafia definitive edition font (hex editor)

Posted: Wed Mar 03, 2021 1:37 pm
by farshidmj
Hello
I have exactly the same problem, what should be done?
The letters in Arabic and Persian are shown as squares

Re: mafia definitive edition font (hex editor)

Posted: Wed Mar 03, 2021 2:23 pm
by ikskoks
I have exactly the same problem, what should be done?
The letters in Arabic and Persian are shown as squares
So the issue here is that characters used in your language are not defined in the font.
There are two ways to deal with this.
1. Add mapping for new characters to the font
2. Replace existing (unused) characters in the font

I would recommend second option as it is easier to do.
First you need to figure out what type of font is used in the game.
If it is TTF or DDS, then editing is easy and there are some tutorials for that like for example https://ikskoks.pl/poradnik-8-edycja-cz ... -oraz-dds/

If font is in some custom format, then you have to do some reverse engineering work first.
Here are some tutorials for that viewtopic.php?f=29&t=22266

Re: mafia definitive edition font (hex editor)

Posted: Wed Mar 03, 2021 3:41 pm
by farshidmj
Thanks for your reply. If I am not mistaken, this should be the file

https://files.fm/u/vju4fsgkd

The file is in gfx format

Re: mafia definitive edition font (hex editor)

Posted: Wed Mar 03, 2021 3:51 pm
by farshidmj

Re: mafia definitive edition font (hex editor)

Posted: Wed Mar 03, 2021 4:23 pm
by farshidmj
Hello again
I got this file and it is possible to edit it
Now to add Persian and Arabic letters, I have to delete something from the dds file and replace the Persian letters

Re: mafia definitive edition font (hex editor)

Posted: Wed Mar 03, 2021 4:30 pm
by ikskoks
I have to delete something from the dds file and replace the Persian letters
Yeah, exactly. You have to also replace those letters in text files.
You can do it automatically with some program like Notepad++ or similar

As for GFX or SWF files, you can use JPEXS Free Flash Decompiler for editing.

Re: mafia definitive edition font (hex editor)

Posted: Wed Mar 03, 2021 5:52 pm
by farshidmj
Regarding the gfx file, I could not open it with a program
You may test

Re: mafia definitive edition font (hex editor)

Posted: Wed Mar 03, 2021 6:31 pm
by farshidmj
Your answer was wonderful, I concluded, Morsi