Not recognizing pak file by medium game [u4pak]

How to translate the files of a game
rezamms
Posts: 25
Joined: Fri Feb 19, 2021 11:05 am

Not recognizing pak file by medium game [u4pak]

Post by rezamms »

I changed the locres file to change the language of the medium game
And I converted the changes to a pak file with u4pak
But when I move it to the paks folder and run the game, none of my changes apply (this problem exists for a few other games I tested)
please guide me
lostprophet
Posts: 49
Joined: Thu Sep 04, 2014 9:34 pm

Re: Not recognizing pak file by medium game

Post by lostprophet »

First: I don't know which version are you running, but in my case, all of the .pak files start with "pakchunk". So the naming of your file seems wrong.
Second: Check which .pak file is the last one (sorting via name). For example: in my case, the the last .pak file is called "pakchunk100-WindowsNoEditor.pak". If I name my created .pak file "pakchunk101-WindowsNoEditor_HUN.pak", it works.
Third: the directory structure is wrong in your .pak file (see the screenshot). No wonder the game(s) don't recognize it. The correct structure in this case would be "Medium/Content/Localization".
Image
rezamms
Posts: 25
Joined: Fri Feb 19, 2021 11:05 am

Re: Not recognizing pak file by medium game

Post by rezamms »

Thanks for your guidance
My problem was solved but there was no problem with routing
The bug was u4pak.py. I feel that this tool has problems for packing and that is why the game considers it a corrupt file and does not load it
I used an older version of u4pak and the game detected my file
akintos
Posts: 88
Joined: Tue May 08, 2018 7:48 pm

Re: Not recognizing pak file by medium game [u4pak]

Post by akintos »

use UnrealPak.exe shipped with official Unreal Engine development tool. the pak file is encrypted, you need to provide AES key to unpack it.

u4pak.py is outdated, do not use it.
lostprophet
Posts: 49
Joined: Thu Sep 04, 2014 9:34 pm

Re: Not recognizing pak file by medium game [u4pak]

Post by lostprophet »

akintos wrote:use UnrealPak.exe shipped with official Unreal Engine development tool. the pak file is encrypted, you need to provide AES key to unpack it.

u4pak.py is outdated, do not use it.

Are you sure it's outdated? I never had any problems with the dozens of games I translated, and also u4pak.py was updated 24 days ago.
akintos
Posts: 88
Joined: Tue May 08, 2018 7:48 pm

Re: Not recognizing pak file by medium game [u4pak]

Post by akintos »

They are only minor updates. u4pak does not support encryption and latest pak file format.
rezamms
Posts: 25
Joined: Fri Feb 19, 2021 11:05 am

Re: Not recognizing pak file by medium game [u4pak]

Post by rezamms »

The new u4pak tool does not work on many games, and the pak it delivers is incomplete.
I worked on this tool for several days, but it seems to have a root problem
For example, if you pack a folder with this tool, the game will not recognize the packed file
I did a lot of searching to find a stable version of this tool that works and has no problem packing.