READ THE RULES: Click here

Follow us on Facebook: https://www.facebook.com/xentax/ :)

Thief 4 Editing Fonts

Need help translating games in other languages? Have your language problems solved here.
Post Reply
Gmaker
ultra-n00b
Posts: 7
Joined: Mon Feb 01, 2016 5:13 pm

Thief 4 Editing Fonts

Post by Gmaker » Sun Jan 20, 2019 1:42 am

Hey everyone!

Thief 4 has PROG_GUI_Fonts.upk file which contains all fonts per language. Extracted data is:

Image

I guess .SwfMovie file is very similar to .swf. I can see what it contains with JPEXS Free Flash Decompiler:

Image

There are two fonts game uses across languages: Adobe Jenson Pro and Frutiger LT Std 57 Cn. For english version, Adobe Jenson Pro font has limited characters beside other languages (such as fonts_FRA.SwfMovie):

Image

So fonts_FRA.SwfMovie has all characters I need. But Frutiger LT Std 57 Cn font is same regardless to language. I need to add extra characters for it. Or maybe adding entire new font for this?

In the end, I need to edit fonts_en.SwfMovie. Basically two steps:
1 - Replace Adobe font with Adobe font inside fonts_FRA.
2 - Add extra characters for Frutiger.

Can you help me with this? Thanks :)

PROG_GUI_Fonts.upk file:
http://www.mediafire.com/file/hw99mbhzh ... s.rar/file

Gmaker
ultra-n00b
Posts: 7
Joined: Mon Feb 01, 2016 5:13 pm

Re: Thief 4 Editing Fonts

Post by Gmaker » Sun Jan 20, 2019 4:14 pm

Actually I managed to get first step done. Can anyone help me with second?

User avatar
GHOST DEAD
mega-veteran
mega-veteran
Posts: 196
Joined: Sat Nov 26, 2016 3:39 pm
Has thanked: 7 times
Been thanked: 6 times

Re: Thief 4 Editing Fonts

Post by GHOST DEAD » Tue Jan 22, 2019 8:46 am

Edited
Be Good, Even in distressing or defamation and chill, Even Everyone's Called You a Bad Guy Or Lier and Mad

User avatar
GHOST DEAD
mega-veteran
mega-veteran
Posts: 196
Joined: Sat Nov 26, 2016 3:39 pm
Has thanked: 7 times
Been thanked: 6 times

Re: Thief 4 Editing Fonts

Post by GHOST DEAD » Tue Jan 22, 2019 8:51 am

give me a edited flash file and original upk
Be Good, Even in distressing or defamation and chill, Even Everyone's Called You a Bad Guy Or Lier and Mad

Gmaker
ultra-n00b
Posts: 7
Joined: Mon Feb 01, 2016 5:13 pm

Re: Thief 4 Editing Fonts

Post by Gmaker » Tue Jan 22, 2019 1:50 pm

GHOST DEAD wrote:give me a edited flash file and original upk
I simply renamed and packed fonts_FRA.SwfMovie to fonts_en.SwfMovie and it worked :)

Anyway I included renamed flash file and one font which I want to change from Frutiger to:

http://www.mediafire.com/file/3u17yzrsn ... n.rar/file

Original upk from first message:

http://www.mediafire.com/file/hw99mbhzh ... s.rar/file

If its worked out, I will be very glad if you tell me how you did it. Thanks for interest.

User avatar
ikskoks
mega-veteran
mega-veteran
Posts: 297
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 375 times
Been thanked: 92 times
Contact:

Re: Thief 4 Editing Fonts

Post by ikskoks » Thu Jan 24, 2019 12:07 am

Hello. I had similar issue with Deadpool translation.

I was able to edit font this way:
1. Open swfmovie using JPEXS Free Flash Decompiler
2. Edit your file and save it as SWF/GFX. (don't remember which one)
Your file has to be smaller than original.
3. Copy header and footer from original swfmovie file and paste it to your saved SWF/GFX file. You can use Hex Workshop for that. You have to remember to also fill missing space with zeroes at this point (after SWF/GFX data and before footer).
4. Change filename to original filename and pack it to UPK using Gildor tools.

You can also check my transaltion to see how edited files looks like https://ikskoks.pl/deadpool-the-video-g ... lszczenie/

Gmaker
ultra-n00b
Posts: 7
Joined: Mon Feb 01, 2016 5:13 pm

Re: Thief 4 Editing Fonts

Post by Gmaker » Thu Jan 24, 2019 10:46 pm

3. Copy header and footer from original swfmovie file and paste it to your saved SWF/GFX file. You can use Hex Workshop for that. You have to remember to also fill missing space with zeroes at this point (after SWF/GFX data and before footer).
Could you please explain to me how to do it this step? How long header and footer are in .SwfMovie? Thanks for interest btw.

User avatar
ikskoks
mega-veteran
mega-veteran
Posts: 297
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 375 times
Been thanked: 92 times
Contact:

Re: Thief 4 Editing Fonts

Post by ikskoks » Thu Jan 24, 2019 11:04 pm

Could you please explain to me how to do it this step?
Yes, of course. Here is package with screenshots, I hope it helps.
screenshots_gfx_font.zip
How long header and footer are in .SwfMovie?
For header it's easy, you just take everything that is before "GFX" magic and copy it.
For footer, you have to compare saved GFX/SWF and swfmovie to get the length. You can use option Tools > Compare > Compare Files in Hex Workshop.
You do not have the required permissions to view the files attached to this post.

Gmaker
ultra-n00b
Posts: 7
Joined: Mon Feb 01, 2016 5:13 pm

Re: Thief 4 Editing Fonts

Post by Gmaker » Fri Jan 25, 2019 12:17 am

Thanks for screenshots. I did all steps you gave me. But game crashed. I can't get figure out :(

Post Reply