Skip to content

onlyworlds 0.145.0

Choose a tag to compare

@github-actions github-actions released this 23 Nov 19:53
· 68 commits to main since this release
  • A share carries under elements/ and spatial/ only what the folder reader serves. write_world_file(include_hidden=False) and world_file_bytes now ask read_folder which files are elements, and carry those that hold no hidden mark. Every other file there is left out and listed in unread_left_out=: a file with another extension (notes.txt, a browser's swap file), one deeper than a type folder (a hidden element's file moved into old/ by hand), one directly under elements/, one in a folder that is no type and an object with no non-empty string id. Until now a share carried a file with another extension, or one not directly in a type folder, whatever it held, a hidden element's text included, and judged the other kinds by their own mark alone. A file that holds a mark and is not served as an element is listed with the unread, not the hidden.
  • An id that two files hold travels in neither file on a share. Each file was judged by its own mark, so a hidden element's second, unmarked file travelled. Both files are now left out and listed in unread_left_out=, within one layout or across elements/ and spatial/: with two files for one id, which mark is the element's cannot be said.
  • A copy never rewrites a file that was not read as an element. The default copy takes the author fields out of element files only. A file of the kinds above keeps its bytes, author fields included; before, any JSON object directly in a folder of elements/ or spatial/ was rewritten.
  • read_folder reads names as written. The extension is .json in lower case and a type folder is the type word in lower case, as the format says. elements/map/M.JSON was served as an element and is now skipped and listed (the extension is not .json in lower case: not read); elements/Character/ was read as the character folder and now lands in ignored_dirs. A folder this package wrote is read as before: its writers write both in lower case.