change fonts life is strange 2?

How to translate the files of a game
binlv1
Posts: 54
Joined: Sat Apr 15, 2017 9:00 am

change fonts life is strange 2?

Post by binlv1 »

I need to change the character font localization of my country, any help?
akintos
Posts: 88
Joined: Tue May 08, 2018 7:48 pm

Re: change fonts life is strange 2?

Post by akintos »

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.
binlv1
Posts: 54
Joined: Sat Apr 15, 2017 9:00 am

Re: change fonts life is strange 2?

Post by binlv1 »

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?
akintos
Posts: 88
Joined: Tue May 08, 2018 7:48 pm

Re: change fonts life is strange 2?

Post by akintos »

binlv1
Posts: 54
Joined: Sat Apr 15, 2017 9:00 am

Re: change fonts life is strange 2?

Post by binlv1 »

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?
binlv1
Posts: 54
Joined: Sat Apr 15, 2017 9:00 am

Re: change fonts life is strange 2?

Post by binlv1 »

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
akintos
Posts: 88
Joined: Tue May 08, 2018 7:48 pm

Re: change fonts life is strange 2?

Post by akintos »

https://drive.google.com/open?id=1j1SvM ... rDIadl04dO

Try this one. Not tested.

Put this file in Paks folder.
binlv1
Posts: 54
Joined: Sat Apr 15, 2017 9:00 am

Re: change fonts life is strange 2?

Post by binlv1 »

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
akintos
Posts: 88
Joined: Tue May 08, 2018 7:48 pm

Re: change fonts life is strange 2?

Post by akintos »

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.
binlv1
Posts: 54
Joined: Sat Apr 15, 2017 9:00 am

Re: change fonts life is strange 2?

Post by binlv1 »

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"
akintos
Posts: 88
Joined: Tue May 08, 2018 7:48 pm

Re: change fonts life is strange 2?

Post by akintos »

iammhk128
Posts: 8
Joined: Sun Jan 27, 2019 9:24 pm

Re: change fonts life is strange 2?

Post by iammhk128 »

plz update script
bug in script.
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

Re: change fonts life is strange 2?

Post by Shokoniraya »

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
akintos
Posts: 88
Joined: Tue May 08, 2018 7:48 pm

Re: change fonts life is strange 2?

Post by akintos »

Actually this code works.

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

Code: Select all

uasset_data[-0x5c:-0x58] = struct.pack('<I', patched_uexp_size - 4)
aedv1234
Posts: 1
Joined: Tue May 14, 2019 12:49 pm

Re: change fonts life is strange 2?

Post by aedv1234 »

how to convert .ttf to .uasset/.uexp. i dont know
Liberty
Posts: 3
Joined: Sun Jun 02, 2019 10:59 am

Re: change fonts life is strange 2?

Post by Liberty »

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... :-?
Haoose
Posts: 68
Joined: Thu Aug 07, 2014 9:43 pm

Re: change fonts life is strange 2?

Post by Haoose »

akintos
Hello. You can reupload script for fonts?
cg131
Posts: 5
Joined: Sun Jul 19, 2020 4:19 am

Re: change fonts life is strange 2?

Post by cg131 »

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.



The link has expired, please upload it again
cih99
Posts: 48
Joined: Wed Jun 09, 2021 10:23 pm

Re: change fonts life is strange 2?

Post by cih99 »

Try now if it doesn't change tell me I'm waiting for you