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

MonoBehaviour template info failed to load. MonoBehaviour assets will not be fully deserialized. #296

Open
dgyst opened this issue Dec 13, 2023 · 14 comments
Labels
bug Something isn't working cpp2il Bug exists in Cpp2IL, not here question Question, not a bug report or feature request

Comments

@dgyst
Copy link

dgyst commented Dec 13, 2023

Describe the bug
When I try to read or export MonoBehaviour, i get only part of the file. Sometimes an error pops up in the window "MonoBehaviour template info failed to load. MonoBehaviour assets will not be fully deserialized."

UABEA

Game detective pikachu returns.

resources.zip

@dgyst dgyst added the bug Something isn't working label Dec 13, 2023
@nesrak1
Copy link
Owner

nesrak1 commented Dec 13, 2023

Use the command line il2cppdumper or cpp2il programs to dump the dummy dlls, put them in managed, and disable cpp2il integration in UABEA by Options > Enable/Disable Cpp2Il in the main window.

@nesrak1 nesrak1 added question Question, not a bug report or feature request cpp2il Bug exists in Cpp2IL, not here bug Something isn't working and removed bug Something isn't working labels Dec 13, 2023
@dgyst
Copy link
Author

dgyst commented Dec 14, 2023

Thanks for the answer! This is the first time I've encountered a unity game. I got the dummy dll, but I don't quite understand where to put them. To the folder with the file you want to open?

@nesrak1
Copy link
Owner

nesrak1 commented Dec 14, 2023

In the game's Managed folder (which is in GameName_Data)

@dgyst
Copy link
Author

dgyst commented Dec 14, 2023

Thx! It's works!

@dgyst
Copy link
Author

dgyst commented Dec 14, 2023

After importing MonoBehaviour, I can't read the file.
Безымянный

@nesrak1
Copy link
Owner

nesrak1 commented Dec 14, 2023

Does your dump have a managed registry by any chance? There is a bug involving those that was reported recently.

@dgyst
Copy link
Author

dgyst commented Dec 14, 2023

How it should look like managed registry? My dump is made from a game for Nintendo Switch.

@nesrak1
Copy link
Owner

nesrak1 commented Dec 14, 2023

There is a field in the dump called ManagedReferencesRegistry or something like that. If you don't see that, then something else is the issue.

@dgyst
Copy link
Author

dgyst commented Dec 15, 2023

I didn't find it in my dump ManagedReferencesRegistry. What else can I try?

@nesrak1
Copy link
Owner

nesrak1 commented Dec 15, 2023

First, make sure you're on nightly. Then double check if reimporting the original works. If it does, you may have made a mistake during the edit and broke the format (I think this can also happen if you add an array item but don't increment the length as well.)

If you have issues reimporting the original, I think the best thing at this point would be to send a minimum example of a dump not importing correctly. You could send the raw and dump before and the raw after reimporting the original dump without changes.

@dgyst
Copy link
Author

dgyst commented Dec 15, 2023

Thanks for the hint with importing the original dump! By trial and error, I found out that the problem was in the section "m_Enabled": 1,
"m_Script": {
"m_FileID": 1,
It was necessary to change "m_FileID": 0 to 1.
Thanks again for the help!

@lanboone
Copy link

lanboone commented Jan 3, 2024

Thanks for the hint with importing the original dump! By trial and error, I found out that the problem was in the section "m_Enabled": 1, "m_Script": { "m_FileID": 1, It was necessary to change "m_FileID": 0 to 1. Thanks again for the help!

I have exactly the same problem as you, but I don't quite understand what you mean by m_FileID. Where is it set?

@nesrak1
Copy link
Owner

nesrak1 commented Jan 3, 2024

@lanboone You should probably open a new issue for this. Deserialization issues occur when anything goes wrong reading an asset, so it could be many things causing it in your situation.

@albass
Copy link

albass commented Feb 21, 2024

I have the same problem. I tried the solution above (dump the dummy dlls, put them in managed, and disable cpp2il integration in UABEA by Options > Enable/Disable Cpp2Il in the main window) - it doesn't work...
What other options might there be?
The most interesting thing is that i can view the same bundles in AssetStudio

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cpp2il Bug exists in Cpp2IL, not here question Question, not a bug report or feature request
Projects
None yet
Development

No branches or pull requests

4 participants