SeriousCache / UABE

Asset Bundle Extractor
3.64k stars 474 forks source link

Auto Installer Fails on Writing/Modifying Bundle File #231

Closed korvyr closed 6 years ago

korvyr commented 6 years ago

So I'm modding a game that has a compressed data bundle.

data.unity3d

All goes well with the modding itself, and generating the installer executable is fine, but when running the installing executable it simply crashes (disappears, process ends, no error) when trying to modify/write to the decompressed bundle file.

data.unity3d.decomp appears, then the exe installer moves to writing/modifying and then crashes with no error.

DerPopo commented 6 years ago

If you export the package file of the mod to a package file (emip), does UABE itself crash when saving the changes imported from this emip file (File->Load Package File)?

I suspect there may be an issue with either reading the installer package file embedded into the installer, or the package file itself.

I did find a bug that causes a crash if the bundle write function wants to print a warning or error message (forgot to check if the error logger is null). That specific bug should be fixed in this hotfix : AssetsBundleExtractor_2.2beta4_hotfix2.zip There also is a new console command that uses the same code as the installer : AssetBundleExtractor applyemip <.emip file> <base directory> (it should output the messages from the bundle writer, if there are any).

korvyr commented 6 years ago

Your hotfix seems to have fixed it. Thanks mate!