Repository navigation
OnlyWorlds Unity SDK 0.35.0
.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
.owworldfiles 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.ReadandZipArchiveEntry.Openhand a stored
entry's bytes back as they are, without creating aDeflateStream, 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 itsneedssays, 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 aneedsother thanaccountis
refused byOWOpeners.For, as the list's own check refuses both. The same rule as the TypeScript SDK 4.133.0 and
the Python package.
Changed
OWToolsrepinned at the tools list's9452529: Atlas opens a public world with no account. Its row carries
opens_public: true(itsneedsstaysaccount, 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 sha2568905defb…).- The schema pin moves to
v0.34.0-dist.108(canonical00.34.00unchanged; 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 (Worldtime_basic_unit)";Event.constructsreads "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
.owworldhalts 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.DeflateStreamtraps the moment one is created: the player stops with a WebAssembly
unreachable, which nocatchcan stop.OWWorldArchive.Readcreates one for each deflated entry. A file packed
withStoreForWebPlayershas 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_typesis refused when a word repeats, when one comes in another case, and when one isn't a string.
OWOpeners.Foralready refused all three; no code changed.