You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using python to call the pack compression method of the AssetsTools.NET, the file size of the final output is 0KB, here is my python code, looking forward to your reply
Pack will always write some bytes unless an exception is thrown. One of the common reasons pack throws is because the original bundle is compressed and pack only works on uncompressed bundles (although I'm guessing you are probably working off of a modified bundle, so I don't think this is it.)
I am certain that the asset package is in an uncompressed state, and UABEA can be compressed to a very small size. I can pack and compress it normally using the same C # syntax, but not using Python.
When using python to call the pack compression method of the AssetsTools.NET, the file size of the final output is 0KB, here is my python code, looking forward to your reply
import clr
import os
clr.AddReference(r'C:\Users\Vasen\Desktop\PYTEXT\AssetsTools.NET.dll')
from AssetsTools.NET.Extra import AssetsManager
from AssetsTools.NET import AssetBundleCompressionType, AssetsFileWriter, AssetsFileReader
def compress_bundle(bundle_file_path):
if not os.path.exists(bundle_file_path):
print("指定的文件不存在.")
return
compress_bundle(r'C:\Users\Vasen\Desktop\PYTEXT\sprite_character_fighter_equipment_avatar_skin.npk')
The text was updated successfully, but these errors were encountered: