-
Notifications
You must be signed in to change notification settings - Fork 143
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error reading certain pak (incomplete or truncated stream) #45
Comments
Hm, if another program also has problems with this maybe the file is corrupted? Do you know that the file is not corrupted? |
I've been informed by gildor2 that conan has a nonstandard pak format, I'll just modify my copy of u4pak locally for conan support. |
The problem here actually seems to be that the pak files uses absolute offsets, which gildor's explanation didn't quite make sense to me given that I was able to extract some files successfully, only the ones at the beginning of the pak since their base offset was 0. The QuickBMS script seems to detect this by seeing if any of the compressed block offsets are less than the file offset, and interpreting them as relative. I don't know if this is part of the conan modifications, but the only modification I read about was extra data before the file entry's filename, which doesn't seem to be happening here. |
Does it work with the newest version? Or does it work with this new program (download compiled binary) that I've wrote that doesn't need Python, is faster, and has features that might help Windows users that don't want to use a terminal? :D |
Also what version is the pak file? I have seen a pak of version 7 now that has that change of offsets (relative vs absolute). So I know version 1, 2, 3, 4 have absolute offsets, version 7 has compression block offsets relative to the file records. That's probably why some files work to extract and some not: The ones that work are not compressed in the pak. |
All of the mod pak's are giving me this now with the new version of u4pak.py
The rust version gives me The older u4pak.py code as of when this issue was initially created worked fine for the conan mod pak's if the handling of offsets was changed to absolute offsets. The error suggests that it's a V3 pak |
Hmmm, what happens if you try it with |
Nothing has changed, same errors. I did link the workshop file in the first issue comment if you would like to download and test the pak yourself. |
Ah yes! Took a look at that and made a new release: https://github.com/panzi/rust-u4pak/releases/tag/v1.1.0 |
Game: Conan Exiles (Mod)
UE4 Version: 4.15
File: https://steamcommunity.com/sharedfiles/filedetails/?id=1765361591
Description:
When I try to read modinfo.json from SandstormFix.pak, I receive the following error message:
Minor debugging into the issue shows that it attempts to seek past the end of the file, reads an empty byte array, and then crashes.
I've noticed that umodel also has issues opening this pak file, running into memory allocation errors.
The text was updated successfully, but these errors were encountered: