mafaca / UtinyRipper

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

Read 25988 but expected 26004 for asset type Mesh #847

Open Whitebrim opened 3 years ago

Whitebrim commented 3 years ago

Game name: miHoYo - Honkai Impact 3rd Engine version: 2017.4.18f1 Platform: StandaloneWin64Player File name: unity default resources

Error message: Read 25988 but expected 26004 for asset type Mesh

Stack trace: в uTinyRipper.SerializedFile.ReadAsset(AssetReader reader, AssetInfo assetInfo, Int64 offset, Int32 size) в uTinyRipper.SerializedFile.ReadAsset(AssetReader reader, ObjectInfo& info) в uTinyRipper.SerializedFile.ReadData(Stream stream) в uTinyRipper.GameProcessorContext.ReadFile(SerializedFile file) в uTinyRipper.GameProcessorContext.ReadFile(SerializedFile file) в uTinyRipper.GameProcessorContext.ReadFile(SerializedFile file) в uTinyRipper.GameProcessorContext.ReadSerializedFiles() в uTinyRipper.GameStructureProcessor.ProcessSchemes(GameCollection fileCollection) в uTinyRipper.GameStructure.Load(List`1 pathes, LayoutInfo layinfo) в uTinyRipper.GameStructure.Load(IEnumerable`1 pathes, LayoutInfo layinfo) в uTinyRipperGUI.MainWindow.LoadFiles(Object data)


Game name: miHoYo - Honkai Impact 3rd Engine version: 2017.4.18f1 Platform: StandaloneWin64Player File name: resources.assets

Error message: Read 12788 but expected 12804 for asset type Mesh

Stack trace: в uTinyRipper.SerializedFile.ReadAsset(AssetReader reader, AssetInfo assetInfo, Int64 offset, Int32 size) в uTinyRipper.SerializedFile.ReadAsset(AssetReader reader, ObjectInfo& info) в uTinyRipper.SerializedFile.ReadData(Stream stream) в uTinyRipper.GameProcessorContext.ReadFile(SerializedFile file) в uTinyRipper.GameProcessorContext.ReadFile(SerializedFile file) в uTinyRipper.GameProcessorContext.ReadSerializedFiles() в uTinyRipper.GameStructureProcessor.ProcessSchemes(GameCollection fileCollection) в uTinyRipper.GameStructure.Load(List`1 pathes, LayoutInfo layinfo) в uTinyRipper.GameStructure.Load(IEnumerable`1 pathes, LayoutInfo layinfo) в uTinyRipperGUI.MainWindow.LoadFiles(Object data)

BH3_Data.zip

Mawrak commented 3 years ago

yep, having the same issue with this game as well

Mawrak commented 3 years ago

It turns out most of the assets are encrypted anyway, you need a special tool (https://blog.palug.cn/2728.html) to extract them into .unity3d format, and then you can use AssetStudio to open them

ds5678 commented 3 years ago

No promises, but you can try my AssetRipper fork.