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

Importing TypeTree breaks MonoBehaviour #76

Closed
Thesola10 opened this issue Nov 22, 2021 · 1 comment
Closed

Importing TypeTree breaks MonoBehaviour #76

Thesola10 opened this issue Nov 22, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@Thesola10
Copy link

Thesola10 commented Nov 22, 2021

This issue occurs in asset files for Yurucamp: Have a nice day. Unsure if it may affect other games using Unity 2020.x format.

Code

env = UnityPy.load("title.unity3d")
env.objects[1].save_typetree(json.load(open("1.json")))
env.save()

Bug
The resulting asset file works in the game, but MonoBehaviours modified using save_typetree() will be broken. (e.g. if it is a text asset, its text won't show up anymore)

To Reproduce

  • a copy of the file that causes the problem (original file is copyrighted and not mine, but can be retrieved following instructions here)
  • following data:
    • Python version 3.9.7
    • UnityPy version 1.7.24
@Thesola10
Copy link
Author

Ended up being an error on my part, was using broken JSON dump of the TypeTree.

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

1 participant