ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Jun 25, 2019 6:27 pm

All times are UTC




Post new topic  Reply to topic  [ 16 posts ] 
Author Message
PostPosted: Sun Feb 10, 2019 6:13 pm 

Joined: Sat Apr 15, 2017 9:00 am
Posts: 37
I need to change the character font localization of my country, any help?


Top
   
PostPosted: Mon Feb 11, 2019 3:54 am 
User avatar

Joined: Tue May 08, 2018 7:48 pm
Posts: 66
You have two ways to do it.

1. replace fallback font(DroidSansFallback.ttf) in LIS2-WindowsNoEditor-Other.pak
2. replace ufont files in LIS2-WindowsNoEditor-Cooked.pak. This way, you can replace each fonts individually.

It's fairly simple because the game use ttf fonts.


Top
   
PostPosted: Mon Feb 11, 2019 10:47 am 

Joined: Sat Apr 15, 2017 9:00 am
Posts: 37
akintos wrote:
You have two ways to do it.

1. replace fallback font(DroidSansFallback.ttf) in LIS2-WindowsNoEditor-Other.pak
2. replace ufont files in LIS2-WindowsNoEditor-Cooked.pak. This way, you can replace each fonts individually.

It's fairly simple because the game use ttf fonts.


How to import LIS2-WindowsNoEditor-Other.pak?


Top
   
PostPosted: Mon Feb 11, 2019 12:39 pm 
User avatar

Joined: Tue May 08, 2018 7:48 pm
Posts: 66
viewtopic.php?f=9&t=1005

I personally use u4pak.py


Top
   
PostPosted: Mon Feb 11, 2019 3:34 pm 

Joined: Sat Apr 15, 2017 9:00 am
Posts: 37
akintos wrote:
https://zenhax.com/viewtopic.php?f=9&t=1005

I personally use u4pak.py


When I replace the font, it doesn't import because of the big size. My font file is smaller than the original file, why it reports big size?


Top
   
PostPosted: Mon Feb 11, 2019 3:40 pm 

Joined: Sat Apr 15, 2017 9:00 am
Posts: 37
akintos wrote:
https://zenhax.com/viewtopic.php?f=9&t=1005

I personally use u4pak.py


can you help me?

https://drive.google.com/file/d/1qRrQqF0XAZ-zFrtjK6bHuFXaSoerr_c1/view?usp=sharing


Top
   
PostPosted: Mon Feb 11, 2019 4:14 pm 
User avatar

Joined: Tue May 08, 2018 7:48 pm
Posts: 66
https://drive.google.com/open?id=1j1SvM ... rDIadl04dO

Try this one. Not tested.

Put this file in Paks folder.


Top
   
PostPosted: Mon Feb 11, 2019 4:51 pm 

Joined: Sat Apr 15, 2017 9:00 am
Posts: 37
akintos wrote:
https://drive.google.com/open?id=1j1SvM2ClhQRQA8u65dgd77rDIadl04dO

Try this one. Not tested.

Put this file in Paks folder.


thank. Subtitle font is ok but font menu and interaction wrong


Top
   
PostPosted: Tue Feb 12, 2019 4:41 am 
User avatar

Joined: Tue May 08, 2018 7:48 pm
Posts: 66
https://drive.google.com/open?id=1Op9QM ... 53FnTZMIwl

Use this tool. Requires python3 installed.

1. run extract.py in fontpatcher folder. it will extract font asset files into fontpacher/ttf folder. font asset files are included in tool.
2. replace ttf files.
3. run repack.py in fontpatcher folder. it will patch font asset files and save it at fontpatcher/patched folder.
4. copy patched uasset/uexp files to repacker\LIS2\Content\UI\Menu\Resources\Fonts folder.
5. run repack.bat in repacker folder. it will generate LIS2-WindowsNoEditor-Cooked_P.pak
6. copy generated pak file to paks folder in your game.

You can also patch other UE4 games font this way. They may have different font path and asset structure, but the difference will be relatively small.


Top
   
PostPosted: Tue Feb 12, 2019 2:36 pm 

Joined: Sat Apr 15, 2017 9:00 am
Posts: 37
akintos wrote:
https://drive.google.com/open?id=1Op9QM38D2g-W18iKM8yBz553FnTZMIwl

Use this tool. Requires python3 installed.

1. run extract.py in fontpatcher folder. it will extract font asset files into fontpacher/ttf folder. font asset files are included in tool.
2. replace ttf files.
3. run repack.py in fontpatcher folder. it will patch font asset files and save it at fontpatcher/patched folder.
4. copy patched uasset/uexp files to repacker\LIS2\Content\UI\Menu\Resources\Fonts folder.
5. run repack.bat in repacker folder. it will generate LIS2-WindowsNoEditor-Cooked_P.pak
6. copy generated pak file to paks folder in your game.

You can also patch other UE4 games font this way. They may have different font path and asset structure, but the difference will be relatively small.


thank. but when i install python i just extract, i can't repack

"TypeError: source must be BinaryIO or str"


Top
   
PostPosted: Tue Feb 12, 2019 3:07 pm 
User avatar

Joined: Tue May 08, 2018 7:48 pm
Posts: 66
https://drive.google.com/open?id=1Op9QM ... 53FnTZMIwl

sorry, there was bug in script.


Top
   
PostPosted: Wed Mar 06, 2019 6:01 am 

Joined: Sun Jan 27, 2019 9:24 pm
Posts: 5
plz update script
bug in script.


Top
   
PostPosted: Wed Mar 06, 2019 8:29 am 
User avatar

Joined: Sat Sep 15, 2018 5:22 am
Posts: 236
i dont think its a bug! you cant add more size in uasset file without changing Serial Size and create a dumper needs a total information to get file as well and bring back but its limited and you have to change .c files in game source too


Top
   
PostPosted: Wed Mar 06, 2019 10:39 am 
User avatar

Joined: Tue May 08, 2018 7:48 pm
Posts: 66
Actually this code works.

uasset file have total uexp file size value. you can simply change it for new uexp file.

Code:
uasset_data[-0x5c:-0x58] = struct.pack('<I', patched_uexp_size - 4)


Top
   
PostPosted: Tue May 14, 2019 12:53 pm 

Joined: Tue May 14, 2019 12:49 pm
Posts: 1
how to convert .ttf to .uasset/.uexp. i dont know


Top
   
PostPosted: Sun Jun 02, 2019 4:46 pm 

Joined: Sun Jun 02, 2019 10:59 am
Posts: 3
Extracting doesn't work for me with your tool, akintos. It simply closes, not doing anything...

I wonder if there isn't a possibility to change the game files to use only DroidSans for text and subtitles... :-?


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

All times are UTC


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:
Powered by phpBB® Forum Software © phpBB Limited