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
How can you extract the package_dict from a single .uasset file?
The .uasset file lives in a path like: /SpaceTradingShooter/Content/Blueprints/AI/BB_AI_Ship.uasset
To use initialize LegacyPackageReader, you need a to pass a BinaryStream.
The first issue is that by directly initializing a BinaryStream for the LegacyPackageReader, you will not get the mappings attribute in the BinaryStream.
The second issue is although it seems like you can initialize LegacyPackageReader without a provider, it will error out because set_ar_verion uses None and has no Versions attribute.
ok also #14 could help, setting BinaryStream.mappings to None explicitly and creating provider passing the path to the uasset.
So the DefaultFileProvider acts like a generic container I guess, not only dedicated to .pak or .utoc.
How can you extract the package_dict from a single .uasset file?
The .uasset file lives in a path like:
/SpaceTradingShooter/Content/Blueprints/AI/BB_AI_Ship.uasset
This is related to #11 which writes:
Use LegacyPackageReader directly
pyUE4Parse/UE4Parse/Assets/PackageReader.py
Line 80 in 1c7b64c
To use initialize
LegacyPackageReader
, you need a to pass aBinaryStream
.The first issue is that by directly initializing a
BinaryStream
for theLegacyPackageReader
, you will not get the mappings attribute in theBinaryStream
.pyUE4Parse/UE4Parse/Assets/PackageReader.py
Line 90 in 1c7b64c
The second issue is although it seems like you can initialize
LegacyPackageReader
without a provider, it will error out becauseset_ar_verion
uses None and has no Versions attribute.pyUE4Parse/UE4Parse/Assets/PackageReader.py
Line 91 in 1c7b64c
The text was updated successfully, but these errors were encountered: