Skip to content

OnlyWorlds Unity SDK 0.35.0

Choose a tag to compare

@tmoosting tmoosting released this 06 Nov 23:43
· 176 commits to main since this release

.owworld files a web player can read: OWWorldArchivePackOptions.StoreForWebPlayers writes every entry stored, so a
WebGL player built with DiskSizeLTO, whose zlib halts on a DeflateStream, reads the world without one. A tools-list
row can say it opens a public world with no account (OWToolOpen.OpensPublic), and OWTools is repinned at the tools
list's 9452529, where Atlas does. A minor release because it adds public API (below).

Added

  • .owworld files a web player can read: OWWorldArchive.Pack(folder, path, OWWorldArchivePackOptions). The
    options hold every choice the other overloads take (KeepApiBlock, IncludePrivateRecords, IncludeHidden,
    HiddenLeftOut) and one new one, StoreForWebPlayers: every entry is written stored (zip method 0) instead of
    deflated, so reading the file never needs an inflater. OWWorldArchive.Read and ZipArchiveEntry.Open hand a stored
    entry's bytes back as they are, without creating a DeflateStream, and every read rule still holds (sizes, CRC-32,
    names). The file is larger by about what deflate saves; a web server's own response compression wins most of it back.
    The packing is deterministic as before, and the defaults write the very bytes the other overloads write: every
    overload now packs through this one. Made for web games (see Known issues).
  • A tools-list row can say it opens a public world with no account: OWToolOpen.OpensPublic, read from the row's
    open.opens_public. On a world's public page such a row is live instead of "Needs an account"; anywhere else it
    reads as its needs says, since only the public page knows the world is public. Absent reads as false, as before. A
    value that is not true or false is refused when the row is read, and true beside a needs other than account is
    refused by OWOpeners.For, as the list's own check refuses both. The same rule as the TypeScript SDK 4.133.0 and
    the Python package.

Changed

  • OWTools repinned at the tools list's 9452529: Atlas opens a public world with no account. Its row carries
    opens_public: true (its needs stays account, for a private world), so on a world's public page the baked
    list offers Atlas live. The same list and bytes as the TypeScript SDK 4.133.1 (tools.json sha256 8905defb…).
  • The schema pin moves to v0.34.0-dist.108 (canonical 00.34.00 unchanged; descriptions only, no field, type or
    link moved, canonical PR 20): seventeen time-field descriptions on thirteen types now say one thing, "in the world's
    time unit (World time_basic_unit)"; Event.constructs reads "concepts, systems or built entities"; Map.hierarchy
    reads "an integer to order or group the maps that share a parent; how a tool reads it is the tool's own". The
    generated models changed in their serial and published stamps and in those nineteen summary lines. No code change.

Fixed

  • A web player's calls return. In a Unity web build every client call after the first answer hung: the request
    went out, the server answered, and the awaiting call never resumed. The SDK's awaits left Unity's context
    (ConfigureAwait(false)), and on the web the continuation is queued to a thread pool that never runs. In a web
    player (UNITY_WEBGL && !UNITY_EDITOR) they now keep Unity's context and resume on the main thread, where the
    transport already runs; every other platform resumes exactly as before. Found and walked in a web build that saves
    a crossing into a world from the browser.

Known issues

  • In a web player built with DiskSizeLTO, reading a deflated .owworld halts the player. In a Unity WebGL build
    whose code optimization is DiskSizeLTO (measured on Unity 6000.4.0f1, 2026-11-06), the native zlib behind
    System.IO.Compression.DeflateStream traps the moment one is created: the player stops with a WebAssembly
    unreachable, which no catch can stop. OWWorldArchive.Read creates one for each deflated entry. A file packed
    with StoreForWebPlayers has none and reads in such a player. A build with another code optimization (BuildTimes)
    reads a deflated file.

Tests

  • A stored pack: every entry method 0 in the central directory and in its local header, in the default pack's order
    with the marker first; read back equal to the folder and to the deflated pack's read; every entry opens without a
    DeflateStream (the default pack's open through one, so the check can fail); deterministic; a flipped CRC-32 still refused.
    The options' defaults give the other overloads' bytes, the share's hidden list included.
  • The openers fixture is the shared one at 103 cases (the TypeScript SDK 4.132.3 and the Python package hold the same
    bytes): element_types is refused when a word repeats, when one comes in another case, and when one isn't a string.
    OWOpeners.For already refused all three; no code changed.