Comments (9)
Hm, if another program also has problems with this maybe the file is corrupted? Do you know that the file is not corrupted?
from u4pak.
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.
from u4pak.
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.
from u4pak.
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
from u4pak.
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.
from u4pak.
All of the mod pak's are giving me this now with the new version of u4pak.py
Traceback (most recent call last):
File "u4pak.py", line 1872, in <module>
main(sys.argv[1:])
File "u4pak.py", line 1794, in main
pak = read_index(stream, args.check_integrity, args.ignore_magic, args.encoding, args.force_version, args.ignore_null_checksums)
File "u4pak.py", line 917, in read_index
record = read_record(stream, filename)
File "u4pak.py", line 631, in read_record_v3
blocks_bin = st_unpack('<%dQ' % (block_count * 2), stream.read(16 * block_count))
MemoryError
The rust version gives me memory allocation of # bytes failed
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
from u4pak.
Hmmm, what happens if you try it with --force-version=7
?
from u4pak.
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.
from u4pak.
Ah yes! Took a look at that and made a new release: https://github.com/panzi/rust-u4pak/releases/tag/v1.1.0
Does that work for you?
from u4pak.
Related Issues (20)
- U4pak.py error HOT 4
- Variable referenced before assignment error in latest version HOT 1
- u4pak runs on command prompt, but does nothing when i use pack/unpack commands HOT 3
- Can't unpack Dead by Daylight Sounds - not compatible? HOT 10
- it seems that doesn't work in 4.26? HOT 2
- How to pack it again to .pak file i decrypt it now its a lot of .dat file i change some value but now i am not able to repack it HOT 3
- Fix non-ASCII path handling HOT 3
- Errno 13 while trying to unpack HOT 6
- Problem with packing the game with python script HOT 6
- [Errno 22] Invalid argument HOT 10
- Unsupported version 10 HOT 1
- [ADD FEATURE] please support to pubg mobile HOT 3
- Can't seems to pack the files HOT 1
- [ASK] do you know about paks 10 version?? HOT 4
- [Request] I am looking for a program for DeadByDaylight to extract and classify the audios. HOT 3
- pack.bat and unpack.bat is missing HOT 1
- Need help HOT 5
- Is it can pak ue5? HOT 1
- 'utf-16-le' codec can't decode bytes in position 6-7: illegal UTF-16 surrogate
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from u4pak.