Important information: this site is currently scheduled to go offline indefinitely by end of the year.

Thief 4 Editing Fonts

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

Thief 4 Editing Fonts

Post by OLogYMot »

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
OLogYMot
ultra-n00b
Posts: 7
Joined: Mon Feb 01, 2016 5:13 pm
Been thanked: 1 time

Re: Thief 4 Editing Fonts

Post by OLogYMot »

Actually I managed to get first step done. Can anyone help me with second?
GHOST DEAD
mega-veteran
mega-veteran
Posts: 191
Joined: Sat Nov 26, 2016 3:39 pm
Has thanked: 7 times
Been thanked: 10 times

Re: Thief 4 Editing Fonts

Post by GHOST DEAD »

Edited
Be Good, Even in distressing or defamation and chill, Even Everyone's Called You a Bad Guy Or Lier and Mad
GHOST DEAD
mega-veteran
mega-veteran
Posts: 191
Joined: Sat Nov 26, 2016 3:39 pm
Has thanked: 7 times
Been thanked: 10 times

Re: Thief 4 Editing Fonts

Post by GHOST DEAD »

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
OLogYMot
ultra-n00b
Posts: 7
Joined: Mon Feb 01, 2016 5:13 pm
Been thanked: 1 time

Re: Thief 4 Editing Fonts

Post by OLogYMot »

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
Moderator
Posts: 1666
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 647 times
Been thanked: 431 times
Contact:

Re: Thief 4 Editing Fonts

Post by ikskoks »

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/
OLogYMot
ultra-n00b
Posts: 7
Joined: Mon Feb 01, 2016 5:13 pm
Been thanked: 1 time

Re: Thief 4 Editing Fonts

Post by OLogYMot »

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
Moderator
Posts: 1666
Joined: Thu Jul 26, 2012 5:06 pm
Location: Poland, Łódź
Has thanked: 647 times
Been thanked: 431 times
Contact:

Re: Thief 4 Editing Fonts

Post by ikskoks »

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.
OLogYMot
ultra-n00b
Posts: 7
Joined: Mon Feb 01, 2016 5:13 pm
Been thanked: 1 time

Re: Thief 4 Editing Fonts

Post by OLogYMot »

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