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

NameError: name 'sp' is not defined in export/ShaderConverter.py #47

Closed
martinwang2002 opened this issue May 22, 2021 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@martinwang2002
Copy link

Code

sp.append(buff.decode("utf8"))

Error
NameError: name 'sp' is not defined

Bug
I suppose this is a typo.

sb.append(buff.decode("utf8"))

After fixing this typo, I encountered AttributeError: 'memoryview' object has no attribute 'decode'.

sb.append(buff.tobytes().decode("utf8"))

And this fixes.

To Reproduce

  • An ab file from IOS platform may cause this issue.
  • following data:
    • Python version 3.8
    • UnityPy version 1.7.6
@martinwang2002 martinwang2002 added the bug Something isn't working label May 22, 2021
@K0lb3 K0lb3 closed this as completed in fac856d May 24, 2021
K0lb3 added a commit that referenced this issue May 24, 2021
@K0lb3
Copy link
Owner

K0lb3 commented May 24, 2021

Thanks for reporting the typo and the following problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants