Skip to content
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

unsupported version: 11 / corrupt deflate stream #40

Open
ghostlyghastly opened this issue Dec 30, 2023 · 4 comments
Open

unsupported version: 11 / corrupt deflate stream #40

ghostlyghastly opened this issue Dec 30, 2023 · 4 comments

Comments

@ghostlyghastly
Copy link

Extracting from the pak of "Barely Racing" (steam app id 1351480) fails:

$ ./u4pak.exe info BarelyRacing-WindowsNoEditor.pak
Pak Version: 11
Mount Point: ../../../

                     Count        Size       Uncompr.
-----------------------------------------------------
Files:               18400  3075762921  8203787405960
Uncompr.:             6734   105140322
ZLIB Compr.:         10603  2947616005  6869246990365
Bias Speed Compr.:       0           0              0
Bias Memory Compr.:      0           0              0
Unknown Compr.:       1063    23006594  1334435275273
Encrypted:               0           0              0
$ ./u4pak.exe check BarelyRacing-WindowsNoEditor.pak
unsupported version: 11
 $ ./u4pak.exe unpack BarelyRacing-WindowsNoEditor.pak
Engine/GlobalShaderCache-PCD3D_SM5.bin: corrupt deflate stream

https://github.com/allcoolthingsatoneplace/UnrealPakTool seems to be able to extract at first, but nearly all files have 0 size.

$ ./UnrealPak.exe BarelyRacing-WindowsNoEditor.pak -Info
LogInit: Display: Loading text-based GConfig....
LogPaths: Warning: No paths for game localization data were specifed in the game configuration.
LogInit: Warning: No paths for engine localization data were specifed in the engine configuration.
LogPakFile: Display: Using command line for crypto configuration
LogPakFile: Display: Pak File: ../../../Extract/Unreal/UnrealPakTool/BarelyRacing-WindowsNoEditor.pak
LogPakFile: Display:     Version: 11
LogPakFile: Display:     IndexOffset: 1273939168
LogPakFile: Display:     IndexSize: 358278
LogPakFile: Display:     IndexHash: 446B374E63E40C781BDED78185C2EFFDDF7483D0
LogPakFile: Display:     bEncryptedIndex: 0
LogPakFile: Display:     EncryptionKeyGuid: 00000000000000000000000000000000
LogPakFile: Display:     CompressionMethods:
LogPakFile: Display:         None
LogPakFile: Display:         Oodle
LogPakFile: Display:         Zlib
LogPakFile: Display: Unreal pak executed in 0.005601 seconds
@TFWol
Copy link

TFWol commented Oct 4, 2024

Same issue here. Different game.

@Xenira I see the changelog says version 11 is supported... I'm confused why the error unsupported version: 11 would even occur.

@Xenira
Copy link
Contributor

Xenira commented Oct 7, 2024

Haven't done anything on this project for a long time, as my original need for this project was solved by mod support in the desired game. From looking at the src there seem to be checks that might cause this.

If you are comfortable with building from src try changing the version to allow 11. I know that I was able to unpack a test game using version 11. Not sure, if I tried it with an actual game though.

@Xenira
Copy link
Contributor

Xenira commented Oct 7, 2024

Also this might only affect the check command and something else fails when unpacking. Encryption, Signing and compression might cause errors.

@TFWol
Copy link

TFWol commented Oct 8, 2024

Also this might only affect the check command and something else fails when unpacking. Encryption, Signing and compression might cause errors.

Got it. I'm thinking it might be one of those since, according to an LLM I threw the check.rs file in, it looks like the code at least tries before erroring out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants