Page 1 of 1

Thief 4 Editing Fonts

Posted: Sun Jan 20, 2019 1:42 am
by Gmaker
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

Re: Thief 4 Editing Fonts

Posted: Sun Jan 20, 2019 4:14 pm
by Gmaker
Actually I managed to get first step done. Can anyone help me with second?

Re: Thief 4 Editing Fonts

Posted: Tue Jan 22, 2019 8:46 am
by GHOST DEAD
Edited

Re: Thief 4 Editing Fonts

Posted: Tue Jan 22, 2019 8:51 am
by GHOST DEAD
give me a edited flash file and original upk

Re: Thief 4 Editing Fonts

Posted: Tue Jan 22, 2019 1:50 pm
by Gmaker
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.

Re: Thief 4 Editing Fonts

Posted: Thu Jan 24, 2019 12:07 am
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/

Re: Thief 4 Editing Fonts

Posted: Thu Jan 24, 2019 10:46 pm
by Gmaker
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.

Re: Thief 4 Editing Fonts

Posted: Thu Jan 24, 2019 11:04 pm
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.

Re: Thief 4 Editing Fonts

Posted: Fri Jan 25, 2019 12:17 am
by Gmaker
Thanks for screenshots. I did all steps you gave me. But game crashed. I can't get figure out :(