Repository navigation
OnlyWorlds SDK for Godot 0.14.0
A game can write a world on onlyworlds.com as a world folder: an offline copy to ship or to open later.
OWFolderExport.export(client, path)reads the world the client's key reaches, with GET requests only, and writes it as the folder the Python package'sexport_worldwrites, file for file. Open it later withOWWorld.read_folder.- The folder's
world.jsonsays where the copy came from:source(the server, the world, when),exported_as(which part of the world the key reads) andproducer(onlyworlds-godotand this version). - A guest's copy keeps the elements it only knows of as such. The folder must not exist or must be empty; it is built beside its place and moved there last, so a refused export leaves nothing behind.
- Not in this release: Map images are not downloaded, and a whole number past 2^53 is written rounded, since Godot reads every JSON number as a double.
A minor release: it adds public API.
onlyworlds-godot-0.14.0.zip holds the addons/onlyworlds/ folder: copy it into your project. Built from the tag and proven by installing it in an empty Godot 4.7 project that reads a world through it.
sha256 db0655ab3508708a5ec4e03de3c4f4da33c9aa5a5868a2a28507eb59161bc74f