Skip to content

OnlyWorlds Unity SDK 0.61.5

Choose a tag to compare

@tmoosting tmoosting released this 30 Nov 19:18
· 19 commits to main since this release

The writer follows serial 150's rules: an id is checked as <id>.json whatever the element's name, and folders
are stamped 0.3.26.

Changed

  • world.json is stamped format_version 0.3.26 by OWFolderExport (OWFolderExport.FormatVersion).
  • The writer's three case files are read from the vendored schema-dist (codegen/schema-dist/fixtures/folder-writer/
    at the repository's root, each held to its MANIFEST.json), the same bytes as the TypeScript SDK's and the Python
    package's: unsafe-ids.cases.json (24 refused, 5 written), case-collide.cases.json (16 and 10, the final sigma
    beside a sigma refused and a code point order pair among the new ones) and id-tail.cases.json (9, new as a test,
    OWIdTailCasesTests, in place of its hand rows). The copies under Tests/Editor/Fixtures/ are removed; in an
    installed copy of the package, which has no vendored dist, the three tests are ignored.

Fixed

  • A new element's id is checked as <id>.json, whatever the element's name (folder format 0.3.26, schema-dist
    serial 150). OWFolderWriter.Write, OWFolderWriter.WriteElement and OWFolderExport checked the file names they
    would write instead, so an element named Bob with the id con was written as bob--con.json, though con.json is
    a Windows device name; any id whose part before its first dot is a device name (con, Con.txt, lpt9) was
    written once it had a name. Such an id is now refused, named or not (OWFolderFormatException, reason name). No
    other id changes outcome: a file name made from a name holds no character its id does not. A refusal from the
    archive's name check now gives the TypeScript SDK's words, character element id "con" cannot be a file name: as "con.json" it is a Windows device name. (before, its file name "con.json" has the Windows reserved name 'con' …). An empty id keeps the writer's own no-id refusal, which says what to do. An element already written under
    such a name is refused when it is written again.