Skip to content

Compressed resources have incorrect size in resource header #3

@zenzoa

Description

@zenzoa

Whoward69 (Pick'n'Mix) helped me identify an issue with how YAPE handles compressed resources. In a compressed resource's 9-byte compression header, the "compressed size" value should include the size of the header itself.

If a compressed resource is 100 bytes long, it will be 109 bytes in the .package file (9 bytes of header + 100 bytes of compressed data). So the value in the header should be 109, not 100.

While this doesn't seem to cause problems in the game, it would be good practice to stay consistent with how Maxis, SimPE, and other tools handle compression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions