Skip to content

export sprite error: unpack requires a buffer of 8 bytes #182

Closed

Description

@liang530

Code
UnityPy/classes/Sprite.py def init(self, reader) function bug:
AE7C16D4-9B6A-4810-802D-C7FB12C11EFF

  1. The SpriteBone() function is missing a parameter
  2. self.m_ Bones=[reader. read_vector2array() for _ in range (mBonesSize)] Some images may be error

Error
export sprite is error:
QQ20230425-100244@2x

Bug

  • AssetStudioGui export is ok!
  • The example of reproducing this bug is in Data.zip,and sharedassets15.assets/path_id=6, where you can directly execute "test_export_error.py" can be reproduced
  • I hope to fix this bug. Thank you very much

To Reproduce

  • Data.zip
  • following data:
    • Python 3.8
    • UnityPy 1.9.28

Activity

  1. K0lb3 commented on Jun 4, 2023

    @K0lb3
    Owner

    Thanks for reporting the issue,
    I will try to take a look in due time.

  2. added a commit that references this issue on Feb 29, 2024
    f311314
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions