ata4 / disunity

An experimental toolset for Unity asset and asset bundle files.
The Unlicense
2.7k stars 659 forks source link

disunity extract .assets file show warning #17

Closed guobailin closed 10 years ago

guobailin commented 10 years ago

clipboard clipboard1

please help,thks

guobailin commented 10 years ago

because the .assets file isnot Standalone ??

ata4 commented 10 years ago

There are some textures that contain no actual texture data. I don't really know why, but it seems to be normal in some cases. DisUnity will simply ignore these textures on extraction.

guobailin commented 10 years ago

i extract nothing using '-c extract ' command ,it meams DisUnity cannot go through。 BUT using '-c extract-raw' i can get extracted files in .bin format . AND using '-c dump' and '-c dump-struct' ,it seems like DisUnity can Parse the .assets file totally.

like following:

MonoScript string m_Name = "iGUINumberField" SInt32 m_ExecutionOrder = 0 UInt32 m_PropertiesHash = 1407810319 string m_ClassName = "iGUINumberField" string m_Namespace = "iGUI" string m_AssemblyName = "iGUI.dll" bool m_IsEditorScript = false

Texture2D string m_Name Array Array SInt32 size char data int m_Width int m_Height int m_CompleteImageSize int m_TextureFormat bool m_MipMap bool m_IsReadable bool m_ReadAllowed int m_ImageCount int m_TextureDimension GLTextureSettings m_TextureSettings int m_FilterMode int m_Aniso float m_MipBias int m_WrapMode int m_LightmapFormat TypelessData image data SInt32 size UInt8 data

so i have 2 questions:

  1. How can i extract .assets file in this case;
  2. Can i convert the .bin file to .dds/.shader/....and others, and i check the difference bettween .bin and .dds file, only the beginning part of the file is different.

thks for you attention.

EdwardWu99 commented 10 years ago

Texture2DHandler can not handle your file and throw a runtime exception I think. u can look the line 60 in Texture2DHandler.java

addtionally, now u can find disunity support engine versions in Suport.md Tested engine versions 2.6 3.1 3.3 3.4 3.5 4.1 4.2

ÔÚ 2014-02-20 22:06:35£¬guobailin notifications@github.com дµÀ£º

please help,thks

¡ª Reply to this email directly or view it on GitHub.

guobailin commented 10 years ago

thks.. Texture2DHandler.java
try { tex.read(obj); } catch (RuntimeException ex) { L.log(Level.WARNING, "Texture2D {0}: {1}", new Object[]{tex.name, ex.getMessage()}); return; }

But REVISON in the first picture is 3.4.0f5. it was in the list of support .

guobailin commented 10 years ago

Finally, Affter reboot my system and try again , the problem has gone.

THKS all!!

ata4 commented 10 years ago

I investigated Texture2DHandler, looks like it threw an unexpected RuntimeException with no message for you, which explains why the message just says "null". I changed the code a bit so it logs more useful messages in that case.