K0lb3 / UnityPy

UnityPy is python module that makes it possible to extract/unpack and edit Unity assets
MIT License
761 stars 113 forks source link

wishlist: support "bundle"/"bank"? #215

Closed hydrargyrum closed 8 months ago

hydrargyrum commented 8 months ago

In "life of delta" game, there are standard level* files and sharedassets*.assets files that contain a lot of resources of the game. However, it seems they don't contain everything, some music can't be found inside them. But the game has a StreamingAssets subfolder that contains those files:

(name_conflict)_music.bank
(name_conflict)_sfx.bank
Master Bank.bank
Master Bank.strings.bank
Master Bank_dst.bank
music.bank
sfx.bank
StreamingAssets
StreamingAssets.manifest
ui.bank

Only StreamingAssets seems to be recognized by unitypy, and contains:

<ClassIDType.AssetBundle: 142>
<ClassIDType.AssetBundleManifest: 290>

Not sure what to do from there.

K0lb3 commented 8 months ago

This is not a bug, and not a parsing problem. As a simple Google check would have told you.... .bank files are music files, usually played via FMOD by Unity, and not Unity asset files.

You can likely use: https://github.com/SamboyCoding/Fmod5Sharp or https://github.com/astral4/fsbex