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

Unpacking error some assets files #81

Open
hwiorn opened this issue May 16, 2019 · 0 comments
Open

Unpacking error some assets files #81

hwiorn opened this issue May 16, 2019 · 0 comments

Comments

@hwiorn
Copy link

hwiorn commented May 16, 2019

These assets file does not unpack by UnityPack(python-unitypack 0.9.0). Could you check these assets?

sharedassets0.zip

sharedassets2.zip

$ unityextract --all --as-asset sharedassets0.assets
Traceback (most recent call last):
  File "/Users/gglee/anaconda3/bin/unityextract", line 4, in <module>
    __import__('pkg_resources').run_script('unitypack==0.9.0', 'unityextract')
  File "/Users/gglee/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 666, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/Users/gglee/anaconda3/lib/python3.6/site-packages/pkg_resources/__init__.py", line 1453, in run_script
    exec(code, namespace, namespace)
  File "/Users/gglee/anaconda3/lib/python3.6/site-packages/unitypack-0.9.0-py3.6.egg/EGG-INFO/scripts/unityextract", line 159, in <module>
    main()
  File "/Users/gglee/anaconda3/lib/python3.6/site-packages/unitypack-0.9.0-py3.6.egg/EGG-INFO/scripts/unityextract", line 155, in main
    exit(app.run())
  File "/Users/gglee/anaconda3/lib/python3.6/site-packages/unitypack-0.9.0-py3.6.egg/EGG-INFO/scripts/unityextract", line 50, in run
    self.handle_asset(asset)
  File "/Users/gglee/anaconda3/lib/python3.6/site-packages/unitypack-0.9.0-py3.6.egg/EGG-INFO/scripts/unityextract", line 92, in handle_asset
    d = obj.read()
  File "/Users/gglee/anaconda3/lib/python3.6/site-packages/unitypack-0.9.0-py3.6.egg/unitypack/object.py", line 84, in read
    return self.read_value(self.type_tree, BinaryReader(BytesIO(object_buf)))
  File "/Users/gglee/anaconda3/lib/python3.6/site-packages/unitypack-0.9.0-py3.6.egg/unitypack/object.py", line 149, in read_value
    result[child.name] = self.read_value(child, buf)
  File "/Users/gglee/anaconda3/lib/python3.6/site-packages/unitypack-0.9.0-py3.6.egg/unitypack/object.py", line 149, in read_value
    result[child.name] = self.read_value(child, buf)
  File "/Users/gglee/anaconda3/lib/python3.6/site-packages/unitypack-0.9.0-py3.6.egg/unitypack/object.py", line 107, in read_value
    result = buf.read_uint()
  File "/Users/gglee/anaconda3/lib/python3.6/site-packages/unitypack-0.9.0-py3.6.egg/unitypack/utils.py", line 105, in read_uint
    return struct.unpack(self.endian + "I", self.read(4))[0]
struct.error: unpack requires a buffer of 4 bytes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant