You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The world file, .owworld (folder format §4.7), for keel's nightly snapshots: read_world_file(path_or_bytes), write_world_file(folder, path) and world_file_bytes(folder), in onlyworlds.worldfile. The reader parses the zip's central directory itself (zip64 included: zipfile would turn a \ in a name into / on Windows and read a name without the UTF-8 flag as cp437) and checks every name, kind, method and size before it inflates anything. A refusal is a WorldFileError whose reason is one of the spec's twelve causes, named as the TypeScript SDK names them. The collision fold is NFC, then the C and S rows of the vendored CaseFolding 15.1 (_casefold.py, made by codegen/generate_casefold.py), never str.casefold(). The budget is the spec's floor, 500,000 entries and 2 GiB: declared sizes first, then each entry's bytes (more than it declares is too_big; fewer, or a failed CRC, not_openable). An api block is stripped and never returned; without one, world.json keeps its bytes. WorldFile.to_folder(dest) writes the world as a folder, every entry byte for byte, built beside dest and renamed into place as write_folder does. 80 of 80 on the vendored conformance set, the verdicts the TypeScript and Unity SDKs give.
The writer puts the mimetype marker first and stored, then world.json and elements/, spatial/, media/ and records/ (records/ whole; no dot-file or .meta in the others), and nothing else from the folder; a tool's dot-folder only when handed in (private_dir=".atlas"), which makes the file a private copy. Every entry is stamped 1980-01-01 00:00, in the UTF-8 byte order of its name, .json deflated and the rest stored (the TypeScript writer's methods, so the two writers' directories agree name for name on order, method, size and CRC). The top folder is <slug>-<id8> from world.json, as Atlas and Lantern name it (top_dir= for another), so the bytes never depend on where the folder sits. world.json travels byte for byte, producer, source and format_version included; only api is never written. One folder gives one set of bytes on one Python: the deflated bytes follow the zlib build (Python 3.14 on Windows ships zlib-ng), while names, sizes, CRCs and every entry's content hold across builds. zip64 when the archive needs it.