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

utf8 codec error #28

Open
iixatomxii opened this issue Sep 14, 2019 · 9 comments
Open

utf8 codec error #28

iixatomxii opened this issue Sep 14, 2019 · 9 comments

Comments

@iixatomxii
Copy link

I've used this software numerous times on tons of games. But for the first time, I've encountered an error saying " 'utf8' codec can't decode byte 0xe6 in position 96: invalid continuation byte"

@panzi
Copy link
Owner

panzi commented Sep 14, 2019 via email

@iixatomxii
Copy link
Author

I have no clue how to do that, I apologize. I'm basic with it. u4pak.py unpack -archive- and u4pak.py pack -archive- -contents- is all I use. Unless you can give some direction of where to put that, I'm willing to give it a shot. If not, I can wait until something is available in a future update to do so

@panzi
Copy link
Owner

panzi commented Sep 16, 2019 via email

@iixatomxii
Copy link
Author

Sorry for not replying after my last reply. I figured out what you were saying after your first message. I found an older reply here on the issues and tried it. This was the result:

Traceback (most recent call last):
File "F:\Steam\steamapps\common\AtomUniverse\AtomUniverse_KingPin\Content\Paks\u4pak.py", line 1720, in
main(sys.argv[1:])
File "F:\Steam\steamapps\common\AtomUniverse\AtomUniverse_KingPin\Content\Paks\u4pak.py", line 1657, in main
pak = read_index(stream,args.check_integrity)
File "F:\Steam\steamapps\common\AtomUniverse\AtomUniverse_KingPin\Content\Paks\u4pak.py", line 799, in read_index
record = read_record(stream, filename)
File "F:\Steam\steamapps\common\AtomUniverse\AtomUniverse_KingPin\Content\Paks\u4pak.py", line 573, in read_record_v4
st_unpack('<QQQI20s', stream.read(48))
struct.error: unpack requires a string argument of length 48

@iixatomxii
Copy link
Author

Again, I'm in no rush if this is an issue that would take time to fix whenever you have time. Hell, even if it can't be fixed, I'm not worried about it. Just one game that's given me issues compared to a lot of others that work fine :P

@panzi
Copy link
Owner

panzi commented Sep 17, 2019

This means either this archive is somehow damaged or of a format variant that my script isn't able to handle. To be more precise: My script thinks the archive file should go on, but it ends there. Maybe the file is truncated? Have you tried to use Steam to check the integrity of the file?

@iixatomxii
Copy link
Author

Already have and reinstalled the game to be sure. It's all good though, don't worry about it ^-^ I appreciate the help

@DevIhor
Copy link

DevIhor commented Sep 17, 2020

@iixatomxii I've tried it on Astroneer and got the same issue. Then I tried to understand the bytes unpacking and found that read_record consumes 4 extra bytes (for Astroneer) on each entry_count iterate.

@panzi
Copy link
Owner

panzi commented May 14, 2021

Do you know what pak version Astroneer is using?

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