HolographicWings / LethalSDK-Unity-Project

Unity Project using Lethal Company SDK
MIT License
43 stars 5 forks source link

Created AssetBundle is extremely large (~15mb of assets->283mb bundle) #78

Closed andymwat closed 7 months ago

andymwat commented 7 months ago

I'm working on a simple mod that adds a few items of scrap. I've noticed that as I've added items, the size of the generated AssetBundle has grown much faster than the size of the actual assets. My mod currently contains about 15 mb of assets, but the generated AssetBundle has reached 283mb.

I've been following the mod setup guide and normal scrap guide.

Mod Assets folder: image

Generated AssetBundle file: image

Loading both the generated templatemod asset bundle file and the file for my own mod in the Unity Asset Bundle Viewer, the only thing I can tell that's different is that the templatemod asset bundle lists the lethalexpansion.lem file as a dependency, while my own mod does not.

AssetBundle viewed in the Asset Bundle Browser: image

My mod's .lem file details: image

templatemod.lem file details: image

HolographicWings commented 7 months ago

Try to send me the lem in any way please

andymwat commented 7 months ago

I uploaded it to DropBox here: https://www.dropbox.com/scl/fi/2v18mvjj3h8akzd7t4zfj/umacompany.lem?rlkey=gtpvzcq100aa2ufhj22x7jwzu&dl=0

HolographicWings commented 7 months ago

After unpacked the LEM umacompany\items\scraps\mirako\Body.004.asset is 823 MB umacompany\items\scraps\riceshower\Body.asset is 657 MB umacompany\items\scraps\digital\Body.asset is 922 MB look at theses files, they may grow for a reason, i dunno personally

andymwat commented 7 months ago

I think I've figured it out. I created a new mod that was empty except for a single imported .fbx model. It was ~40mb until I disabled "Import BlendShapes" on the mesh's import settings. After that box was unchecked, the exported file was just 700kb.

Also, what tool did you use to unpack the LEM? I'd be interested in taking a look at it.

HolographicWings commented 7 months ago

I think I've figured it out. I created a new mod that was empty except for a single imported .fbx model. It was ~40mb until I disabled "Import BlendShapes" on the mesh's import settings. After that box was unchecked, the exported file was just 700kb.

Also, what tool did you use to unpack the LEM? I'd be interested in taking a look at it.

Unity Asset Ripper