Repository navigation
OnlyWorlds SDK for Godot 0.12.0
A game can set an element's image and attach files to it: a portrait, a screenshot, a save.
- Images:
upload_imagesends a picture's bytes to the media host and answers its URL, to set as an element'simage_url;remove_imagetakes one away.create_media_ticketandcreate_removal_ticketare their first steps, for a game that sends the bytes itself. - Files on an element:
upload_file,list_files,file_download_linkandremove_file, withcreate_file_ticketas the upload's first step, andworld_filesfor what a whole world holds against its cap.file_kind_ofandFILE_EXTENSIONSsay which kind a file name is. - Errors a game branches on:
is_not_author,is_quota_exceeded,is_file_too_largeandis_files_fullonOWApiError. - The transport now sends raw bytes (a
PackedByteArraybody, byte for byte), and a POST with no body saysContent-Length: 0.
A minor release: it adds public API. Uploads in a web export are not measured yet.
onlyworlds-godot-0.12.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 030b1d47419f07bdffd3073e85b443ff10fe04ef41b35ce631f1f2ab65f565ca