Unreal Engine 4 .locres, .uasset (Text)

How to translate the files of a game
Nik Burnt
Posts: 4
Joined: Wed Jan 03, 2018 8:53 pm

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

Post by Nik Burnt »

Did someone have success with Outriders Demo localizations and/or textures extraction?
AliGMods
Posts: 7
Joined: Thu Nov 12, 2020 2:06 pm

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

Post by AliGMods »

Hello today I extracted the game to UE 4.26 and the program from swuforce for extracting text from locres to txt does not work correctly. Could someone look at it, please. I am attaching locres files. Thanks
https://mega.nz/file/vFlBUQIZ#01gunzI_c ... rhJZmTBbIM
swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

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

Post by swuforce »

Try now.
AliGMods
Posts: 7
Joined: Thu Nov 12, 2020 2:06 pm

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

Post by AliGMods »

After you try and edit the tool, please upload it here, thank you
HydeFromT70s
Posts: 4
Joined: Mon Nov 02, 2020 1:14 pm

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

Post by HydeFromT70s »

Zhilian wrote:
HydeFromT70s wrote:Hi everyone!

I translate games into my native language and I want to translate Man of Medan. I am determined and have been struggling with the game files for a few days, but I can't cope by myself :(

So far I have managed to unpack the text file to be translated from the .pak archive. I know how to deal with .locres files but in this case we have .uasset / .uexp files to deal with. I learned how to change text string within .uexp file, the size of that string and how to update the size of the .uexp file in the .uasset footer. However, this method is inefficient and takes too long. Unfortunately I have very little knowledge of programming in C ++ but I tried somehow to extract the text from the .uexp file to a more "readable" form but I failed :(

Would someone who is much more knowledgeable than me be kind enough to write a program that will export and import these files? Please? Anyone? From what I can read in this thread @ducan012456 you know how to do it. Would you find some of your time and help me out?

I would be REALLY thankful!


Try these export and import tools. During the export you have to be patient. It'll takes a while.


Thank you!!! Works like a charm! :D :D :D
wolf7808
Posts: 2
Joined: Sun Apr 04, 2021 2:34 pm

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

Post by wolf7808 »

How do I extract/reinsert text from this .uexp?
https://drive.google.com/file/d/1YsDhUV ... sp=sharing
TheDarkness1994
Posts: 15
Joined: Thu Jul 11, 2019 3:04 am

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

Post by TheDarkness1994 »

Same question.
Game Subverse UE 4.22.3
Can anyone help with the disassembly of the files (text .uasset .uexp) for this game
URL
viewtopic.php?f=9&t=1005&p=63218#p63218
lokakam
Posts: 10
Joined: Mon Jun 21, 2021 2:53 am

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

Post by lokakam »

Hello, there is something weird happend here.
https://prnt.sc/167sloh
I was trying to extract a nearly released game (Police Simulator: Patrol Officers)
Why those texts are messed up?
masagrator
Posts: 82
Joined: Sat Dec 22, 2018 10:03 am

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

Post by masagrator »

I don't like current locres tools that are only extracting texts.

I'm creating Python script that can dump all locres data correctly and sort them to JSON.
Converting it back will come at later date.

If anybody is interested, you can send me locres files.

AliGMods wrote:Hello today I extracted the game to UE 4.26 and the program from swuforce for extracting text from locres to txt does not work correctly. Could someone look at it, please. I am attaching locres files. Thanks
https://mega.nz/file/vFlBUQIZ#01gunzI_c ... rhJZmTBbIM


I'm attaching dump for it as an example.

For now it was tested only on this game and Code Vein Demo.
Last edited by masagrator on Thu Jun 24, 2021 11:20 am, edited 1 time in total.
Taiyoshinz
Posts: 3
Joined: Thu Jun 24, 2021 9:19 am

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

Post by Taiyoshinz »

masagrator wrote:I don't like current locres tools that are only extracting texts.

I'm creating Python script that can dump all locres data correctly and sort them to JSON.
Converting it back will come at later date.

If anybody is interested, you can send me locres files.

AliGMods wrote:Hello today I extracted the game to UE 4.26 and the program from swuforce for extracting text from locres to txt does not work correctly. Could someone look at it, please. I am attaching locres files. Thanks
https://mega.nz/file/vFlBUQIZ#01gunzI_c ... rhJZmTBbIM


I'm attaching dump for it as an example.

For now it was tested only on this game and Scarlet Nexus Demo.

Hi masagrator, now i'm working with a 4.26 .locres file, i used your tool to export the locres to .txt and it's converted to special characters, the game is not encrypted and i think your tool is old, could you check tool please? Thank you.
here is the .locres file https://drive.google.com/file/d/1KXQeOq ... sp=sharing
masagrator
Posts: 82
Joined: Sat Dec 22, 2018 10:03 am

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

Post by masagrator »

Taiyoshinz wrote:
masagrator wrote:I don't like current locres tools that are only extracting texts.

I'm creating Python script that can dump all locres data correctly and sort them to JSON.
Converting it back will come at later date.

If anybody is interested, you can send me locres files.

AliGMods wrote:Hello today I extracted the game to UE 4.26 and the program from swuforce for extracting text from locres to txt does not work correctly. Could someone look at it, please. I am attaching locres files. Thanks
https://mega.nz/file/vFlBUQIZ#01gunzI_c ... rhJZmTBbIM


I'm attaching dump for it as an example.

For now it was tested only on this game and Scarlet Nexus Demo.

Hi masagrator, now i'm working with a 4.26 .locres file, i used your tool to export the locres to .txt and it's converted to special characters, the game is not encrypted and i think your tool is old, could you check tool please? Thank you.
here is the .locres file https://drive.google.com/file/d/1KXQeOq ... sp=sharing

You didn't use my locres tool, because I didn't share it anywhere. :mrgreen:
I will check it tomorrow.
Taiyoshinz
Posts: 3
Joined: Thu Jun 24, 2021 9:19 am

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

Post by Taiyoshinz »

masagrator wrote:
Taiyoshinz wrote:
masagrator wrote:I don't like current locres tools that are only extracting texts.

I'm creating Python script that can dump all locres data correctly and sort them to JSON.
Converting it back will come at later date.

If anybody is interested, you can send me locres files.



I'm attaching dump for it as an example.

For now it was tested only on this game and Scarlet Nexus Demo.

Hi masagrator, now i'm working with a 4.26 .locres file, i used your tool to export the locres to .txt and it's converted to special characters, the game is not encrypted and i think your tool is old, could you check tool please? Thank you.
here is the .locres file https://drive.google.com/file/d/1KXQeOq ... sp=sharing

You didn't use my locres tool, because I didn't share it anywhere. :mrgreen:
I will check it tomorrow.

Sorry, my mistake, i was thought the tool is belong to you. Thank you anyway, i will wait.
masagrator
Posts: 82
Joined: Sat Dec 22, 2018 10:03 am

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

Post by masagrator »

Taiyoshinz wrote:
masagrator wrote:
Taiyoshinz wrote:Hi masagrator, now i'm working with a 4.26 .locres file, i used your tool to export the locres to .txt and it's converted to special characters, the game is not encrypted and i think your tool is old, could you check tool please? Thank you.
here is the .locres file https://drive.google.com/file/d/1KXQeOq ... sp=sharing

You didn't use my locres tool, because I didn't share it anywhere. :mrgreen:
I will check it tomorrow.

Sorry, my mistake, i was thought the tool is belong to you. Thank you anyway, i will wait.

Thanks, it was helpful to understand some things at the beginning of locres.

Here is dump.

Edit: Uploaded dump again, because I have found a bug in parsing categories.
lokakam
Posts: 10
Joined: Mon Jun 21, 2021 2:53 am

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

Post by lokakam »

Can someone help me to extract this correctly?
masagrator
Posts: 82
Joined: Sat Dec 22, 2018 10:03 am

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

Post by masagrator »

lokakam wrote:Can someone help me to extract this correctly?
bruhmoment
Posts: 5
Joined: Sun Feb 14, 2021 3:36 pm

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

Post by bruhmoment »

masagrator wrote:
lokakam wrote:Can someone help me to extract this correctly?


scarlet nexus help plx
masagrator
Posts: 82
Joined: Sat Dec 22, 2018 10:03 am

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

Post by masagrator »

bruhmoment wrote:
masagrator wrote:
lokakam wrote:Can someone help me to extract this correctly?


scarlet nexus help plx

Game.locres is empty

You sure those are correct files? Engine.locres seems to be related to debugging, mytarget seems like file which is used to load correct texts from different file.

Whatever. Dumps in attachments.
masagrator
Posts: 82
Joined: Sat Dec 22, 2018 10:03 am

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

Post by masagrator »

Well, it seems now it's working correctly with all English newer locres file.

Python 3 script dumping locres is here:
https://pastebin.com/QVL7QXLL

Code: Select all

python script.py file.locres


New locres files have the same magic at first 16 bytes. Older don't have any magic, thus they are easy to detect.
lokakam
Posts: 10
Joined: Mon Jun 21, 2021 2:53 am

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

Post by lokakam »

masagrator wrote:Well, it seems now it's working correctly with all English newer locres file.

Python 3 script dumping locres is here:
https://pastebin.com/QVL7QXLL

Code: Select all

python script.py file.locres


New locres files have the same magic at first 16 bytes. Older don't have any magic, thus they are easy to detect.


Thank you, it worked for extraction.
How can i import now :)
akintos
Posts: 88
Joined: Tue May 08, 2018 7:48 pm

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

Post by akintos »