Unreal Engine 4 .locres, .uasset (Text)

How to translate the files of a game
akintos
Posts: 88
Joined: Tue May 08, 2018 7:48 pm

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by akintos »

https://drive.google.com/open?id=1-ftM3 ... YLA4b6omgJ

This is cli version of my locres tool. Supports all version including LocResVersion Optimized (= 2)

Drag and drop locres file to exe or use it in command line.


Unreal Engine is full open source. try writing your own tool.

https://github.com/EpicGames/UnrealEngi ... source.cpp
ghylard
Posts: 77
Joined: Wed Oct 08, 2014 1:03 pm

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by ghylard »

Thank you for this tool but how do we reintegrate the modified text into the locres file?
raulpuro
Posts: 62
Joined: Sun Feb 01, 2015 5:31 pm

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by raulpuro »

Hi,

I have the file *.locres edited and prepared, but now I have a problem, the file *.locres is in a *.pak, if I try to reimport the file locres, it does not let me the file *.pak has a size larger than 4 gb. Is there another way to integrate the *.locres file? Is it possible to add a mod with only the *.locres file?

Greeting and thanks for your time.
ghylard
Posts: 77
Joined: Wed Oct 08, 2014 1:03 pm

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by ghylard »

You don't have to re-insert the locres file into the pak file for the new subtitles to be taken into account.
The game can work while being uncompressed (you must however delete the pak file)
But if you want to put back the locres file in the pak file you have to use quickbms_4gb_files.exe because of the file size.
raulpuro
Posts: 62
Joined: Sun Feb 01, 2015 5:31 pm

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by raulpuro »

ghylard wrote:You don't have to re-insert the locres file into the pak file for the new subtitles to be taken into account.
The game can work while being uncompressed (you must however delete the pak file)
But if you want to put back the locres file in the pak file you have to use quickbms_4gb_files.exe because of the file size.

Hi,

Thanks for replying, I can not delete the * .pak file because it has a size of 7 gigs and contains other files. I have used reimport2_4gb_files.bat but the file is larger than the original and does not allow me to reimport it.
Is it possible to add the file in another way? Something like a mod?

Greetings.
swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by swuforce »

raulpuro
Posts: 62
Joined: Sun Feb 01, 2015 5:31 pm

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by raulpuro »

swuforce wrote:Try: https://github.com/panzi/u4pak

Hi,

Thanks swuforce but it seems that it does not support this version.

Image

I have managed to re-insert the file with unreal_tournament_4.bms but it shows this error:

Image



Greetings.
raulpuro
Posts: 62
Joined: Sun Feb 01, 2015 5:31 pm

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by raulpuro »

Hi,

These are the archives

https://drive.google.com/drive/folders/ ... Ku03ioKyZ3

Greetings.
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by shadow_lonely »

akintos wrote:https://drive.google.com/open?id=1-ftM3xAukoogkU5SmNKmsXYLA4b6omgJ

This is cli version of my locres tool. Supports all version including LocResVersion Optimized (= 2)

Drag and drop locres file to exe or use it in command line.


Unreal Engine is full open source. try writing your own tool.

https://github.com/EpicGames/UnrealEngi ... source.cpp

Could you add repack feature in this locres tool? Thanks!
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by Shokoniraya »

shadow_lonely
can you give me a sample file?
Shokoniraya
Posts: 416
Joined: Sat Sep 15, 2018 5:22 am

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by Shokoniraya »

raulpuro wrote:Hi,

These are the archives

https://drive.google.com/drive/folders/ ... Ku03ioKyZ3

Greetings.


try this script to export: http://aluigi.altervista.org/bms/unreal ... ment_4.bms
shadow_lonely
Posts: 216
Joined: Mon Oct 06, 2014 3:30 am

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by shadow_lonely »

Shokoniraya wrote:shadow_lonely
can you give me a sample file?

My example file: https://drive.google.com/file/d/1MMldYp ... sp=sharing

Thanks!
raulpuro
Posts: 62
Joined: Sun Feb 01, 2015 5:31 pm

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by raulpuro »

Shokoniraya wrote:try this script to export: http://aluigi.altervista.org/bms/unreal ... ment_4.bms


Hi,

Unfortunately it does not work:

Image

I am using the key
"0x84C3295EDA0DDF5DE05575CB817414E0A3357598AFD5C68DECD684812EAFC9B5" is for the game Eternity The Last Unicorn and seems to export the * .pak correctly, I think the problem arises when importing the * .pak again.

Greetings.
BANDIT
Posts: 22
Joined: Thu Oct 23, 2014 1:04 pm

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by BANDIT »

Please, help me with Layers of Fear 2 .locres
swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by swuforce »

Try my unreal locres script.
BANDIT
Posts: 22
Joined: Thu Oct 23, 2014 1:04 pm

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by BANDIT »

Please, help me with .uasset .uexp files
masagrator
Posts: 82
Joined: Sat Dec 22, 2018 10:03 am

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by masagrator »

BANDIT wrote:Please, help me with .uasset .uexp files

It can be done with hex editor.
Однажды наступает пора одному
сыграть множество ролей.

Он наблюдает за другими,
а другие — за ним.

Он должен соответствовать,

с достоинством пройти
сквозь несуществующие миры.

Он надевает маски и приспосабливается к ним.

Каждая маска — отдельный персонаж.
Каждый персонаж — новый слой.

Один слой накладывается на другой, и вместе они зовут его.

Он должен создать персонаж,
который суждено сыграть.

Или окончательно потерять себя.

Он погружен в пучину.

Загнан в угол жизнями,
которые не проживал.

Но он не сломлен.

И стоит на сцене,
где каждый должен сыграть свою роль.

Его роль печальна.


They are UTF-16 LE with prefix which is length

Code: Select all

FFFFFFFF - *how many bytes text takes*\2


For example this
Его роль печальна.

is

Code: Select all

ED FF FF FF 15 04 33 04 3E 04 20 00 40 04 3E 04 3B 04 4C 04 20 00 3F 04 35 04 47 04 30 04 3B 04 4C 04 3D 04 30 04 2E 00

First 4 bytes is length, rest is a text.

in uasset there is size of uexp in little endian, but -4
Offset: 0x2D1
Value: 5A100000
Converted value: 4186

Size of uexp = 4190 bytes

And this is all you need to translate it.

Octopath Traveler is using similar stuff and I made text converter (from translated to hex) in Excel. ;)
Release
Posts: 2
Joined: Tue Nov 06, 2018 6:22 pm

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by Release »

Please help me with Game.locres from "Citadel: Forged with Fire":

1. "UE4_.locres_export.exe" does not extract text from it.
2. "new_UE4_.locres_export.exe" build corrupted txt file.
3. "locres2csv.exe" work fine, but how i can reintegrate text?

Maybe there is another tool that works well in both directions?
ghylard
Posts: 77
Joined: Wed Oct 08, 2014 1:03 pm

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by ghylard »

@ Release
The latest version of the tool made by swuforce works perfectly with this locres file.
Release
Posts: 2
Joined: Tue Nov 06, 2018 6:22 pm

Re: Unreal Engine 4 .locres, .uasset (Text)

Post by Release »

@ghylard
My great thanks for helping. It's working very fine.
Can i ask for a link, where i can look for latest version this tool, so no longer bother you about this?
Anyway, thanks again.