Get damaged 'utoc'
The UE version I am using is 5.4, and the new iostore file obtained using this tool seems to be damaged. FModel is unable to open new 'utoc' files and it causes the game to crash directly upon startup.
same
I've also encountered this issue with Sonic Racing CrossWorlds, a game that also uses Unreal 5.4. I followed the listed tutorial to a tee and yet no matter what I do I still see the following:
Does this tool even support 5.4? If anything arises, I hope to see progress made...
Update: I've decided to try building the program directly since the release hasn't been touched in a long while. Although the program doesn't output strangely empty files, the UTOC/PAK files it generates are still seen as invalid as far as FModel's concerned. The game also crashes with them in the PAKs folder.
Same issue here with Assetto Corsa Rally which also uses Unreal 5.4. The game also crashes if you try to load the modified asset. Have you found another way?
This app tries to encrypt the resulting files with the game's AES key, however it does not properly encrypt the .utoc file resulting in unusable files.
I have made a fork and disabled encryption here: https://github.com/GhostyPool/UnrealReZen/releases/tag/UnrealReZen-disable-encryption
@GhostyPool I've tried the fork but unfortunately I still get a damaged utoc, which is not really a surprise as the game I'm trying to mod (Assetto Corsa Rally) isn't encrypted so I already didn't use the "--aes-key" flag
@GhostyPool I've tried the fork but unfortunately I still get a damaged utoc, which is not really a surprise as the game I'm trying to mod (Assetto Corsa Rally) isn't encrypted so I already didn't use the "--aes-key" flag
Thanks for letting me know this, I was just testing with a UE4.27 game. It seems this tool completely lacks support for any UE5+ version, since UE5 had some quite big changes to the utoc format. I will work towards implementing proper UE5 support.
Fix was simpler than I expected, should work on UE5+ versions now. Tested on UE5.3, please report if UE5.4+ works.
https://github.com/GhostyPool/UnrealReZen/releases/tag/UnrealReZen-UE5
Please PR the changes.
@rm-NoobInCoding Sure thing. How do you want to handle the encryption issues though? Encryption is currently broken because the DirectoryIndex does not get encryped, but the ucas does. I just commented it out in the fork, but I may look into properly encrypting the DirectoryIndex though. However I still think it should be optional, since it's not really needed in most cases.
I added the encryption because I saw ucas of some games was encrypted (and my encryption worked for those games) If it's optional for a game (for example, a game uses encryption ucas, but it can also read a non-encrypted archive), then we can just remove it from the source.
I think pretty much all UE4/5 games can read non-encrypted ucas even if the original files are encryped, I never encountered one that doesn't myself. So in my opinion it's not necessary to encrypt anything.
@GhostyPool hi, i've tried your latest version with ue 5.6 but the result cannot be recognized by fmodel and the game crashes. i'm not sure if it has something to do with what i did: i used retoc and uassetgui to extract game files and edit blueprints, the modded files naturally comes in uasset and uexp, since the prompt says rezen can't pack uexp files, i use repak retoc and fmodel to extract the modded uassets so that there's no uexp, then try using rezen to pack again. no --aes-key is used at all.
@fku-apple This app is not meant to pack retoc converted (legacy) assets, it's meant for IoStore assets, which you can extract from an IoStore game with FModel. There will be only one .uasset file, which you can modify and pack with this application.
@fku-apple This app is not meant to pack retoc converted (legacy) assets, it's meant for IoStore assets, which you can extract from an IoStore game with FModel. There will be only one .uasset file, which you can modify and pack with this application.
sadly i used uassetgui to edit blueprint and retoc doesn't support oodle... i'm not sure why reexporting the edited files with fmodel and packing with rezen breaks things, but thanks for your time nonetheless