Repository navigation
OnlyWorlds Unity SDK 0.61.4
Two world folder fixes: two elements whose ids differ only in case are refused rather than written over one another,
and an id ending near a character above U+FFFF is named by its last eight code points.
Changed
- The TypeScript SDK's and the Python package's shared case-collide cases are followed at their 4.225.0 and 0.159.0
bytes: 23 cases, two new written ones among them (a final sigma beside a sigma in otherwise different ids, and the
Kelvin sign beside a k), and all pass.
Fixed
-
An element id that ends near a character above U+FFFF (an emoji) is named by its last eight code points. A world
folder's file name takes the id's last eight characters, andOWFolderWriter.IdTailcounted UTF-16 units: an emoji
counted twice, soa1234567😀was written asbob--234567😀.json, and an id such asa😀1234567cut the emoji in
half and gave a file name with a lone surrogate in it. The folder format now rules the tail in code points (its
next serial), as the Python package and the Godot and Unreal SDKs count it. -
Two elements whose ids differ only in case are no longer written over one another.
OWFolderWriter.Write,
OWFolderWriter.WriteElementandOWFolderExportwrote two elements of one type such asAb1andab1(orÄ1and
ä1,Σ1andσ1) under two file names that Windows and macOS take as one file: the second landed over the first,
and the folder held one element where two were given, with no error. For ids like these the full-id fallback of the
collision rule folds like the short name, so the rule cannot separate them. The write is now refused before anything
is written, withReasoncollisionand a message in the same words as the TypeScript and Python packages, naming
the type, both ids and their file names (character element ids "Ab1" and "ab1" give the file names "Ab1.json" and "ab1.json", which are one name once folded (NFC, then simple case folding), so a case-insensitive disk (NTFS, APFS) may keep one file for both.). Names are compared after NFC and simple case folding, the fold the.owworldreader
already uses, soDž1anddž1,K1(the Kelvin sign) andk1,ς1andσ1, and ané1written two ways (one
letter, oreand an accent) are refused too, whileß1andss1, andİ1andi1, are written as two files.
Ids that differ in more than case are written as before. The packages' shared cases (case-collide.cases.json,
TypeScript SDK 4.224.1) are held as a test.