mafaca / UtinyRipper

GUI and API library to work with Engine assets, serialized and bundle files
MIT License
2.83k stars 433 forks source link

DEADBEEF guid for materials. #49

Closed theclashingfritz closed 6 years ago

theclashingfritz commented 6 years ago

Some extracted materials will have a deadbeef guid. (Clearly not a proper guid.) The deadbeef guid looks like '0000000deadbeef15deadf00d0000000'. I'm unaware if this is because of a bug or if it's just something not implemented just yet for certain materials.

Files used: http://www.mediafire.com/file/7h6rbfocarrbqc0/toonTropolis14.unity3d_unpacked.zip/

mafaca commented 6 years ago

That means that some of dependencies hasn't been found. When you exports assets you can notice yellow messages like "Import: Dependency 'library/cache/15/157fbb10579613340adf8f8edda104c2' hasn't been found". You need all files in one place to export them properly. I'm not sure about what kind of file was mentioned above but "Import: Dependency 'library/unity default resources' hasn't been found" definitely should present in every project.

theclashingfritz commented 6 years ago

http://prntscr.com/kmguwt I get this error when trying to directly extract the .unity3d file i got the unpacked files from. http://www.mediafire.com/file/xxmgmcmaz46608e/toonTropolis14.unity3d is the link for the .unity3d file.

mafaca commented 6 years ago

Fixed reading of this bundle file in 7f5770794889746845eac9f1ad0d03eb4fb97a6d. I'm not familiar with asset bundles of such low versions, maybe it is normal to have assemblies and main scene in asset bundle and maybe it is some kind of user packed bundle . Anyway, .unity3d is asset bundle and asset bundle isn't complete game it is just additional content for it. So if you want to fix guid in materials you need to rip main game files and this bundle together.

mafaca commented 6 years ago

Well, as I understand it is a webgame so there is no any main game files :) I mean you have to find web player files for 2.6.1 Unity version and use them.

theclashingfritz commented 6 years ago

Oh i have those. However they fail to even load with another error. http://prntscr.com/kmma04 http://www.mediafire.com/file/53wf36t3tbid221/unity_default_resources/file

mafaca commented 6 years ago

You need to get this file from Web Player installer but not from Unity Editor. Same with dlls. However there is another bug so it doesn't work anyway. For now you can extract resource files but you need to use unpacked files from your first link and you need to delete dll files.

mafaca commented 6 years ago

Well, I fixed what I could in ef70915418f1c823f33f31e262a0662e0b733dcf. However, old versions are so drastically incompatible with UR that at the current state I just can't support it at 100%. Last version should be able to extract assets correctly, however some MonoBehaviours could be broken.

theclashingfritz commented 6 years ago

Well this is better then absolutely no solution. MonoBehaviours aren't much of an issue luckily. They're the least of our issues. I'm just happy to have asset extracting working right. It may be possible to fix up MonoBehaviours further but i'd have to do research in how to the old versions work compared to the new ones. I'll check out if the assets extract right on my side and be sure to let you know when i can.

theclashingfritz commented 6 years ago

This seems to be fixed in terms of materials. Thanks for that. Now i can move along much further then before. I did notice a flare did not get a good guid in a scene though. So there's that to know about. I'll close this issue as this particular one should be fixed.

mafaca commented 6 years ago

Flare export isn't supported yet. If I don't forget I'll add it later together with other missed asset types.