The rules have been updated, read them now: Rules!

mafia definitive edition font (hex editor)

Need help translating games in other languages? Have your language problems solved here.
Post Reply
aria1996
beginner
Posts: 23
Joined: Thu Mar 19, 2020 8:33 pm
Has thanked: 1 time

mafia definitive edition font (hex editor)

Post by aria1996 » Wed Jan 27, 2021 9:31 am

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.

aria1996
beginner
Posts: 23
Joined: Thu Mar 19, 2020 8:33 pm
Has thanked: 1 time

Re: mafia definitive edition font (hex editor)

Post by aria1996 » Wed Jan 27, 2021 9:46 am


User avatar
ikskoks
Moderator
Posts: 738
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 463 times
Been thanked: 203 times
Contact:

Re: mafia definitive edition font (hex editor)

Post by ikskoks » 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.

aria1996
beginner
Posts: 23
Joined: Thu Mar 19, 2020 8:33 pm
Has thanked: 1 time

Re: mafia definitive edition font (hex editor)

Post by aria1996 » Fri Jan 29, 2021 3:46 pm

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.
You do not have the required permissions to view the files attached to this post.

farshidmj
ultra-n00b
Posts: 6
Joined: Mon Mar 01, 2021 8:12 pm

Re: mafia definitive edition font (hex editor)

Post by farshidmj » Wed Mar 03, 2021 1:37 pm

Hello
I have exactly the same problem, what should be done?
The letters in Arabic and Persian are shown as squares

User avatar
ikskoks
Moderator
Posts: 738
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 463 times
Been thanked: 203 times
Contact:

Re: mafia definitive edition font (hex editor)

Post by ikskoks » Wed Mar 03, 2021 2:23 pm

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

farshidmj
ultra-n00b
Posts: 6
Joined: Mon Mar 01, 2021 8:12 pm

Re: mafia definitive edition font (hex editor)

Post by farshidmj » Wed Mar 03, 2021 3:41 pm

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

farshidmj
ultra-n00b
Posts: 6
Joined: Mon Mar 01, 2021 8:12 pm

Re: mafia definitive edition font (hex editor)

Post by farshidmj » Wed Mar 03, 2021 3:51 pm


farshidmj
ultra-n00b
Posts: 6
Joined: Mon Mar 01, 2021 8:12 pm

Re: mafia definitive edition font (hex editor)

Post by farshidmj » Wed Mar 03, 2021 4:23 pm

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

User avatar
ikskoks
Moderator
Posts: 738
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 463 times
Been thanked: 203 times
Contact:

Re: mafia definitive edition font (hex editor)

Post by ikskoks » Wed Mar 03, 2021 4:30 pm

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.

farshidmj
ultra-n00b
Posts: 6
Joined: Mon Mar 01, 2021 8:12 pm

Re: mafia definitive edition font (hex editor)

Post by farshidmj » Wed Mar 03, 2021 5:52 pm

Regarding the gfx file, I could not open it with a program
You may test

farshidmj
ultra-n00b
Posts: 6
Joined: Mon Mar 01, 2021 8:12 pm

Re: mafia definitive edition font (hex editor)

Post by farshidmj » Wed Mar 03, 2021 6:31 pm

Your answer was wonderful, I concluded, Morsi

Post Reply