MinshuG / pyUE4Parse

ue4 asset parser/reader
MIT License
47 stars 15 forks source link

FPackageSummary unable used to unpack uasset?! #3

Closed zbx911 closed 2 years ago

zbx911 commented 2 years ago

class FPackageSummary: Name: FMappedName SourceName: FMappedName PackageFlags: int CookedHeaderSize: int NameMapNamesOffset: int NameMapNamesSize: int NameMapHashesOffset: int NameMapHashesSize: int ImportMapOffset: int ExportMapOffset: int ExportBundlesOffset: int GraphDataOffset: int GraphDataSize: int

def __init__(self, reader: BinaryStream) -> None:
    self.Name = FMappedName().read(reader)
    self.SourceName = FMappedName().read(reader)
    self.PackageFlags = reader.readUInt32()
    with suppress(ValueError):
        self.PackageFlags = EPackageFlags(self.PackageFlags)
    self.CookedHeaderSize = reader.readUInt32()
    self.NameMapNamesOffset = reader.readInt32()
    self.NameMapNamesSize = reader.readInt32()
    self.NameMapHashesOffset = reader.readInt32()
    self.NameMapHashesSize = reader.readInt32()
    self.ImportMapOffset = reader.readInt32()
    self.ExportMapOffset = reader.readInt32()
    self.ExportBundlesOffset = reader.readInt32()
    self.GraphDataOffset = reader.readInt32()
    self.GraphDataSize = reader.readInt32()
MinshuG commented 2 years ago

Can you share the traceback?