mafaca / UtinyRipper

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

Cannot read resources file #638

Closed ghost closed 4 years ago

ghost commented 4 years ago

Game name: (Kerbal Space Program 0.6.5) Engine version: 3.3.0f4 Platform: StandaloneWinPlayer File name: resources.assets resources.zip

Error message: Read 19136 but expected 44 for asset type AudioClip

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

mafaca commented 4 years ago

There is an issue with reading old audio clips and I will fix it later. But this particular issue happens because ripper requires resources.resource or resources.resS (or some similar file) to work properly.

mafaca commented 4 years ago

fixed issue I mentioned above a7a06d1c47f6fd49c6decb037acf32fb1ec3bf59