XeNTaX Forum Index
Forum MultiEx Commander Tools Tools Home
It is currently Sat Feb 16, 2019 5:59 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: Thief 4 Editing Fonts
PostPosted: Sun Jan 20, 2019 1:42 am 
Offline
ultra-n00b

Joined: Mon Feb 01, 2016 5:13 pm
Posts: 7
Has thanked: 0 time
Have thanks: 0 time














You can make the ads go away by registering

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


Top
 Profile  
 
 Post subject: Re: Thief 4 Editing Fonts
PostPosted: Sun Jan 20, 2019 4:14 pm 
Offline
ultra-n00b

Joined: Mon Feb 01, 2016 5:13 pm
Posts: 7
Has thanked: 0 time
Have thanks: 0 time
Actually I managed to get first step done. Can anyone help me with second?


Top
 Profile  
 
 Post subject: Re: Thief 4 Editing Fonts
PostPosted: Tue Jan 22, 2019 8:46 am 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Sat Nov 26, 2016 3:39 pm
Posts: 196
Has thanked: 7 times
Have thanks: 6 times
Edited

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


Top
 Profile  
 
 Post subject: Re: Thief 4 Editing Fonts
PostPosted: Tue Jan 22, 2019 8:51 am 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Sat Nov 26, 2016 3:39 pm
Posts: 196
Has thanked: 7 times
Have thanks: 6 times
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


Top
 Profile  
 
 Post subject: Re: Thief 4 Editing Fonts
PostPosted: Tue Jan 22, 2019 1:50 pm 
Offline
ultra-n00b

Joined: Mon Feb 01, 2016 5:13 pm
Posts: 7
Has thanked: 0 time
Have thanks: 0 time
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.


Top
 Profile  
 
 Post subject: Re: Thief 4 Editing Fonts
PostPosted: Thu Jan 24, 2019 12:07 am 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Thu Jul 26, 2012 5:06 pm
Posts: 293
Location: Poland, Łódź
Has thanked: 360 times
Have thanks: 92 times
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/

_________________
http://ikskoks.pl/
https://www.facebook.com/ikskoks
Image


Top
 Profile  
 
 Post subject: Re: Thief 4 Editing Fonts
PostPosted: Thu Jan 24, 2019 10:46 pm 
Offline
ultra-n00b

Joined: Mon Feb 01, 2016 5:13 pm
Posts: 7
Has thanked: 0 time
Have thanks: 0 time
Quote:
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.


Top
 Profile  
 
 Post subject: Re: Thief 4 Editing Fonts
PostPosted: Thu Jan 24, 2019 11:04 pm 
Offline
mega-veteran
mega-veteran
User avatar

Joined: Thu Jul 26, 2012 5:06 pm
Posts: 293
Location: Poland, Łódź
Has thanked: 360 times
Have thanks: 92 times
Quote:
Could you please explain to me how to do it this step?

Yes, of course. Here is package with screenshots, I hope it helps.


Quote:
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.


Attachments:


You do not have the required permissions to view the files attached to this post. Register to gain access.


_________________
http://ikskoks.pl/
https://www.facebook.com/ikskoks
Image


Top
 Profile  
 
 Post subject: Re: Thief 4 Editing Fonts
PostPosted: Fri Jan 25, 2019 12:17 am 
Offline
ultra-n00b

Joined: Mon Feb 01, 2016 5:13 pm
Posts: 7
Has thanked: 0 time
Have thanks: 0 time
Thanks for screenshots. I did all steps you gave me. But game crashed. I can't get figure out :(


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group