Skip to content

OnlyWorlds Unity SDK 0.12.1

Choose a tag to compare

@tmoosting tmoosting released this 22 Oct 06:26
· 545 commits to main since this release

The world file Unity writes now carries its marker. OWWorldArchive.Pack places the mimetype entry first and
stored, as folder spec §4.7 asks of a writer and as the TypeScript and Python writers do, and writes zip64 from 65,535
entries. The schema pin moves to dist.42, whose two new conformance cases the reader already refused. A patch release:
no public API is added, and the list Pack returns now starts with mimetype.

Added

  • OWWorldArchive.Pack writes the mimetype marker (folder spec §4.7, OW-6): the first entry, stored (method 0),
    no extra field, its bytes exactly application/vnd.onlyworlds.world+zip, as the TypeScript SDK's and the Python
    package's writers place it. Pack now writes the zip itself, since Mono's ZipArchive cannot store an entry: every
    other entry is deflated (an empty one stored), each stamped 1980-01-01 00:00, in UTF-8 byte order as before; a
    non-ASCII name carries the UTF-8 flag; a classic zip below 65,535 entries and zip64 from there. The list Pack
    returns starts with mimetype. A Unity-packed world reads the same in the reference checker, the TypeScript SDK's
    readWorldFile and Windows' tar, and the reference finds no writer fault in it.

Changed

  • The schema pin moves to dist.42 (v0.32.2-dist.42; canonical 00.32.02 unchanged, and no decoded file moved).
    The .owworld conformance set gains two cases, which the package's own test now runs: a stored entry shorter than
    its declared size (fail-OW-14-stored-short, refused as not_openable) and a mimetype marker with a byte order
    mark before the media type (fail-OW-6-marker-bom, refused as marker), 81 zips. The reader already refused both
    for the cause the set names, so no read changed. The generated models changed only in their serial.